Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //----- (0040699F) --------------------------------------------------------
- signed int __cdecl sub_40699F(const char *a1, int a2, int a3, char a4, int a5)
- {
- signed int v5; // eax@1
- signed int result; // eax@11
- LPARAM lParam; // [sp+8h] [bp-28h]@10
- int v8; // [sp+Ch] [bp-24h]@10
- int v9; // [sp+10h] [bp-20h]@10
- int v10; // [sp+1Ch] [bp-14h]@10
- int v11; // [sp+28h] [bp-8h]@10
- v5 = sub_4133D0(0x20Du);
- if ( v5 &&
- (
- a2
- ?
- (
- *(_BYTE *)a2
- ?
- strcpy((char *)(v5 + 256), (const char *)a2)
- :
- (*(_DWORD *)(v5 + 256) = *(_DWORD *)a2, *(_BYTE *)(v5 + 260) = *(_BYTE *)(a2 + 4))
- )
- :
- (*(_BYTE *)(v5 + 256) = 0),
- (a1 ? strcpy((char *)v5, a1) : (*(_BYTE *)v5 = 0)),
- v9 = 0,
- *(_DWORD *)(v5 + 516) = a3,
- *(_BYTE *)(v5 + 520) = a4,
- *(_DWORD *)(v5 + 521) = a5,
- v8 = dword_4199F0,
- v10 = -1,
- lParam = 5,
- v11 = v5,
- SendMessageA(hWnd, 0x1007u, 0, (LPARAM)&lParam) != -1
- )
- )
- {
- ++dword_4199F0;
- result = 1;
- }
- else
- {
- result = 0;
- }
- return result;
- }
- // 4199F0: using guessed type int dword_4199F0;
- /*
- PSound.c: In function 'sub_40699F':
- PSound.c:1277:75: warning: pointer/integer type mismatch in conditional expression [enabled by default]
- && (a2 ? (*(_BYTE *)a2 ? strcpy((char *)(v5 + 256), (const char *)a2) : (*(_DWORD *)(v5 + 256) = *(_DWORD *)a2,
- ^
- PSound.c:1278:122: warning: pointer/integer type mismatch in conditional expression [enabled by default]
- *(_BYTE *)(v5 + 260) = *(_BYTE *)(a2 + 4))) : (*(_BYTE *)(v5 + 256) = 0),
- ^
- PSound.c:1279:37: warning: pointer/integer type mismatch in conditional expression [enabled by default]
- a1 ? strcpy((char *)v5, a1) : (*(_BYTE *)v5 = 0),
- ^
- */
Advertisement
Add Comment
Please, Sign In to add comment