Hendricks266

PSound RE Bleh

Jan 16th, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.29 KB | None | 0 0
  1. //----- (0040699F) --------------------------------------------------------
  2. signed int __cdecl sub_40699F(const char *a1, int a2, int a3, char a4, int a5)
  3. {
  4.   signed int v5; // eax@1
  5.   signed int result; // eax@11
  6.   LPARAM lParam; // [sp+8h] [bp-28h]@10
  7.   int v8; // [sp+Ch] [bp-24h]@10
  8.   int v9; // [sp+10h] [bp-20h]@10
  9.   int v10; // [sp+1Ch] [bp-14h]@10
  10.   int v11; // [sp+28h] [bp-8h]@10
  11.  
  12.   v5 = sub_4133D0(0x20Du);
  13.   if ( v5 &&
  14.         (
  15.             a2
  16.             ?
  17.             (
  18.                 *(_BYTE *)a2
  19.                 ?
  20.                     strcpy((char *)(v5 + 256), (const char *)a2)
  21.                 :
  22.                     (*(_DWORD *)(v5 + 256) = *(_DWORD *)a2, *(_BYTE *)(v5 + 260) = *(_BYTE *)(a2 + 4))
  23.             )
  24.             :
  25.                 (*(_BYTE *)(v5 + 256) = 0),
  26.                 (a1 ? strcpy((char *)v5, a1) : (*(_BYTE *)v5 = 0)),
  27.                 v9 = 0,
  28.                 *(_DWORD *)(v5 + 516) = a3,
  29.                 *(_BYTE *)(v5 + 520) = a4,
  30.                 *(_DWORD *)(v5 + 521) = a5,
  31.                 v8 = dword_4199F0,
  32.                 v10 = -1,
  33.                 lParam = 5,
  34.                 v11 = v5,
  35.                 SendMessageA(hWnd, 0x1007u, 0, (LPARAM)&lParam) != -1
  36.         )
  37.      )
  38.   {
  39.     ++dword_4199F0;
  40.     result = 1;
  41.   }
  42.   else
  43.   {
  44.     result = 0;
  45.   }
  46.   return result;
  47. }
  48. // 4199F0: using guessed type int dword_4199F0;
  49.  
  50. /*
  51. PSound.c: In function 'sub_40699F':
  52. PSound.c:1277:75: warning: pointer/integer type mismatch in conditional expression [enabled by default]
  53.      && (a2 ? (*(_BYTE *)a2 ? strcpy((char *)(v5 + 256), (const char *)a2) : (*(_DWORD *)(v5 + 256) = *(_DWORD *)a2,
  54.                                                                            ^
  55. PSound.c:1278:122: warning: pointer/integer type mismatch in conditional expression [enabled by default]
  56.                                                                               *(_BYTE *)(v5 + 260) = *(_BYTE *)(a2 + 4))) : (*(_BYTE *)(v5 + 256) = 0),
  57.                                                                                                                           ^
  58. PSound.c:1279:37: warning: pointer/integer type mismatch in conditional expression [enabled by default]
  59.          a1 ? strcpy((char *)v5, a1) : (*(_BYTE *)v5 = 0),
  60.                                      ^
  61. */
Advertisement
Add Comment
Please, Sign In to add comment