jewalky

Untitled

Mar 22nd, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.87 KB | None | 0 0
  1.   v3 = sub_56F88(v5);
  2.   if ( v3 )
  3.   {
  4.     sub_4C67C(v3, v4, a3);
  5.     printf_((const char *)dword_3F98DC);
  6.     exit_(1);
  7.   }
  8.   sub_5711C();
  9.   result = sprintf_((int)&v14, v8, a3, v7, (int)&v14, (int)"%c:%s", byte_A09C8);
  10.   if ( !*(_DWORD *)(v7 + 4) )
  11.   {
  12.     v9 = custom_fopen((int)&v14, 0, 0, v7);
  13.     custom_fseek(v9, 0, 2);
  14.     result = custom_fclose();
  15.     *(_DWORD *)(v7 + 4) = v10;
  16.   }
  17.   if ( !*(_DWORD *)(v7 + 8) )
  18.   {
  19.     result = custom_alloc(*(_DWORD *)(v7 + 4));
  20.     *(_DWORD *)(v7 + 8) = result;
  21.   }
  22.   if ( *(_DWORD *)(v7 + 8) )
  23.   {
  24.     v11 = custom_fopen((int)&v14, 0, 0, v7);
  25.     if ( v11 == -1 )
  26.     {
  27.       sub_4C67C(-1, v12, 0);
  28.       printf_("File %s not found\n", &v14);
  29.       exit_(1);
  30.     }
  31.     custom_fread(v11, *(_DWORD *)(v13 + 8), *(_DWORD *)(v13 + 4));// handle, where, size
  32.     result = custom_fclose();
  33.   }
  34.   return result;
  35. }
Add Comment
Please, Sign In to add comment