Function at 0x5116a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58d2c8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5deba8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
call fcn.00416be0
cmp eax, 0x13
jl 0x5116ed
call fcn.00417050
test eax, eax
je 0x5116ed
lea eax, [ebp - 0x48]
push eax
call fcn.005115e0
add esp, 4
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x7c]
call fcn.005119c0
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov dword [ebp - 0x34], 0
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x7c]
cmp dword [ecx + 0x16e8], 0
je 0x511762
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x16e8]
call fcn.00436260
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x16e8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x511797
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x511797
mov dword [ebp - 0x80], 0
jmp 0x51179e
mov dword [ebp - 0x80], 1
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x44], edx
lea ecx, [ebp - 0x58]
call fcn.004207e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x7c]
add ecx, 0x16c0
call fcn.0041ea80
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x60], 0
jmp 0x5117d6
mov eax, dword [ebp - 0x60]
add eax, 1
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp - 0x24]
jge 0x511922
mov edx, dword [ebp - 0x60]
push edx
mov ecx, dword [ebp - 0x7c]
add ecx, 0x16c0
call fcn.0041ec20
push eax
lea ecx, [ebp - 0x64]
call fcn.0041d990
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 4]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x6c], esp
lea edx, [ebp - 0x64]
push edx
call fcn.0041d990
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x1818]
push ecx
call fcn.0041a9c0
add esp, 0xc
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x68], edx
cmp dword [ebp - 0x68], 0
jne 0x511855
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0041dab0
jmp 0x5117cd
cmp dword [ebp - 0x44], 0
je 0x511872
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00420880
jmp 0x511911
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x74], esp
push 0
call fcn.00416280
push 0
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x78], esp
push 0
call fcn.00416260
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x68]
call fcn.0041efc0
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [eax + 0x10]
call edx
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ecx + 0xc]
call eax
mov ecx, dword [ebp - 0x68]
push ecx
push 0
call fcn.0042b280
add esp, 8
push 4
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x7c]
add eax, 0x167c
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x167c]
push eax
mov eax, dword [edx + 0xc]
call eax
push 3
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0041dab0
jmp 0x5117cd
cmp dword [ebp - 0x44], 0
je 0x51194a
push 0
lea ecx, [ebp - 0x58]
push ecx
push 0x7fe
mov edx, dword [ebp - 0x7c]
mov ecx, dword [edx + 0x16e8]
call fcn.00436260
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x511960
push 0
push 0
push 0x7fc
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x1870], 0
call fcn.00416be0
cmp eax, 0x13
jl 0x511992
call fcn.00417050
test eax, eax
je 0x511992
cmp dword [ebp - 0x38], 0
je 0x511992
mov eax, dword [ebp - 0x48]
push eax
call fcn.00511640
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0041f2a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055338c
mov esp, ebp
pop ebp
ret