Function at 0x413d50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454598
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x46a850]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
cmp dword [ebp + 8], 0
jne 0x413d87
mov dword [ebp - 0x4c], 0
jmp 0x413d90
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp - 0x2c], eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x413dc9
xor eax, eax
jmp 0x413fd2
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x28]
sub ecx, 0x64
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x24]
sub edx, 0x64
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x30]
call fcn.00406890
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0x458a5c
lea ecx, [ebp - 0x30]
push ecx
call fcn.00409590
add esp, 0x18
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0x10]
add eax, dword [ebp + 0x18]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x18]
jle 0x413e90
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
push 2
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.00413ae0
push 2
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x48]
call fcn.00413c10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x18]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov dword [ebp + 0x10], ecx
jmp 0x413ea0
mov eax, dword [ebp + 0x18]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp + 0x10]
sub edx, eax
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x14]
jle 0x413edd
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.00413ae0
push 1
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.00413c10
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0x10]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp + 0xc]
push eax
push 0x458a40
lea ecx, [ebp - 0x30]
push ecx
call fcn.00409590
add esp, 0x10
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0x14]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp + 0xc]
and eax, 0xffff
movzx eax, ax
mov ecx, dword [ebp + 0x10]
and ecx, 0xffff
movzx edx, cx
shl edx, 0x10
or eax, edx
push eax
push 1
push 0x200
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x14]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp + 0xc]
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp + 0x10]
and edx, 0xffff
movzx eax, dx
shl eax, 0x10
or ecx, eax
push ecx
push 1
push 0x201
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x14]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp + 0xc]
and eax, 0xffff
movzx edx, ax
mov eax, dword [ebp + 0x10]
and eax, 0xffff
movzx ecx, ax
shl ecx, 0x10
or edx, ecx
push edx
push 1
push 0x202
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [ebp - 0x34], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004077e0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14