Function at 0x499888
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x499ba4
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00470ef4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x57], 0
jne 0x4998db
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4998db
mov eax, dword [ebp - 4]
test byte [eax + 0x2f4], 8
jne 0x4998db
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22f], 1
jne 0x4998fc
lea edx, [ebp - 0x20]
mov eax, dword [0x5692a0]
call fcn.00406e84
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x41b1d0]
call fcn.004105d4
call fcn.004042f0
call sub.user32.dll_GetCapture
test eax, eax
je 0x499916
push 0
push 0
push 0x1f
call sub.user32.dll_GetCapture
push eax
call sub.user32.dll_SendMessageA
call sub.user32.dll_ReleaseCapture
mov eax, dword [0x56e8dc]
call fcn.0049bf10
xor edx, edx
push ebp
push 0x499b82
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
or byte [eax + 0x2f4], 8
call sub.user32.dll_GetActiveWindow
mov dword [ebp - 0x1c], eax
call fcn.0048f444
push eax
push 0xfffffffffffffff8
mov eax, dword [ebp - 4]
call fcn.00479390
push eax
call sub.user32.dll_SetWindowLongA
mov eax, dword [ebp - 0x1c]
push eax
push 0xfffffffffffffffa
mov eax, dword [ebp - 4]
call fcn.00479390
push eax
call sub.user32.dll_SetWindowLongA
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x24]
mov eax, 8
call fcn.0040b018
mov eax, dword [ebp - 0x24]
call fcn.00404e60
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [0x565680]
mov dword [ebp - 0x10], eax
mov eax, dword [0x56e8e0]
mov ecx, dword [eax + 0x78]
mov eax, dword [0x56e8e0]
mov eax, dword [eax + 0x7c]
xor edx, edx
call fcn.0041dc30
mov eax, dword [0x56e8e0]
mov edx, dword [ebp - 4]
mov dword [eax + 0x78], edx
mov eax, dword [0x56e8e0]
mov ax, word [eax + 0x44]
mov word [ebp - 0x12], ax
xor edx, edx
mov eax, dword [0x56e8e0]
call fcn.0049aea4
mov eax, dword [0x56e8e0]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x18], eax
xor eax, eax
call fcn.00493904
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x499b60
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.004997d8
xor edx, edx
push ebp
push 0x499abf
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0xb000
mov eax, dword [ebp - 4]
call fcn.00479390
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x24c], edx
mov eax, dword [0x56e8dc]
call fcn.0049cdd4
mov eax, dword [0x56e8dc]
cmp byte [eax + 0x9c], 0
je 0x499a56
mov eax, dword [ebp - 4]
mov dword [eax + 0x24c], 2
jmp 0x499a6a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24c], 0
je 0x499a6a
mov eax, dword [ebp - 4]
call fcn.00499738
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24c]
test eax, eax
je 0x499a2f
mov dword [ebp - 8], eax
push 0
push 0
push 0xb001
mov eax, dword [ebp - 4]
call fcn.00479390
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [ebp - 4]
call fcn.00479390
mov ebx, eax
call sub.user32.dll_GetActiveWindow
cmp ebx, eax
je 0x499aa9
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499ac6
mov eax, dword [ebp - 4]
call fcn.004997d0
ret