Function at 0x4077d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
push esi
mov esi, ecx
push edi
push 0
mov edi, dword [esi + 0x78]
mov dword [esp + 0xc], esi
mov ecx, edi
mov dword [esp + 0x24], edi
call fcn.00596c9a
mov dword [esi + 0x78], 0
mov eax, dword [edi + 0x1c]
push 0x1b
push 0
push 0xbffe
push eax
call dword [sym.imp.user32.dll_RegisterHotKey]
mov eax, dword [esp + 0x80]
test eax, eax
je 0x40781d
push 0
push 0
push 0xf
push eax
call dword [sym.imp.user32.dll_SendMessageA]
push ebx
push ebp
push 0x1f4
call dword [sym.imp.kernel32.dll_Sleep]
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
mov ebx, edi
sub eax, edx
sub ebx, ecx
mov dword [esp + 0x2c], eax
push ebx
push eax
push ecx
push edx
mov ecx, esi
call fcn.00407020
mov esi, eax
xor ecx, ecx
xor edx, edx
push 0x2ffffff
mov ebp, dword [esi + 0x28]
mov cx, word [esi + 0x2e]
mov dx, word [esi + 0x2c]
push 0
push ecx
mov ecx, dword [esi + 0x24]
lea eax, [ebp*4]
push edx
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x48], ebp
call fcn.004e6960
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov eax, ebx
mov ebx, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x78]
sar eax, 1
sub ebx, eax
lea eax, [edx + ecx]
cdq
sub eax, edx
mov dword [esp + 0x74], ebx
sar eax, 1
mov dword [esp + 0x40], eax
lea eax, [ebx + edi]
cdq
sub eax, edx
sub edi, ebx
sar eax, 1
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
push edi
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x44], edi
call fcn.00407020
push 1
push 0
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.004e70d0
push 0x15
mov dword [esp + 0x28], eax
call fcn.004ecb88
add eax, 4
mov dword [esp + 0x1c], 1
mov dword [esp + 0x38], eax
jmp 0x407903
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x407939
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x88]
and edx, 0xffff
shl ecx, 0x10
or ecx, edx
push ecx
push 0xff880000
push 0x20a
push eax
call dword [sym.imp.user32.dll_SendMessageA]
jmp 0x40796f
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push ecx
push edx
call dword [sym.imp.user32.dll_SetCursorPos]
push 0
push 0
push 0
push 0
push 2
call dword [sym.imp.user32.dll_mouse_event]
push 0
push 0
push 0
push 0
push 4
call dword [sym.imp.user32.dll_mouse_event]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
inc ecx
push ecx
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [esp + 0x88]
test eax, eax
je 0x4079a8
push eax
call dword [sym.imp.user32.dll_IsWindow]
test eax, eax
je 0x4079a8
mov edx, dword [esp + 0x88]
push 0
push 0
push 0xf
push edx
call dword [sym.imp.user32.dll_SendMessageA]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x70]
push edi
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00407020
mov edx, dword [esp + 0x18]
mov ebx, eax
push ebx
push edx
call fcn.004e7e80
mov edi, eax
add esp, 8
test edi, edi
jle 0x407aad
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4079e6
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esi + 0x28]
lea eax, [edi + ebp]
cmp ecx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x3c], eax
jg 0x407a76
push 0
mov ecx, esi
call fcn.004e71a0
xor ecx, ecx
push 0x2ffffff
mov cx, word [esi + 0x2e]
mov eax, dword [esi + 0x24]
push 0
xor edx, edx
mov dx, word [esi + 0x2c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
lea edx, [ebp + ecx*2]
add ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.004e6960
test eax, eax
jne 0x407a67
mov eax, dword [esi + 0x24]
xor ecx, ecx
mov cx, word [esi + 0x2e]
push 0x2ffffff
push 0
push ecx
mov ecx, dword [esp + 0x3c]
xor edx, edx
mov dx, word [esi + 0x2c]
add ecx, ebp
push edx
push ecx
push eax
mov ecx, esi
call fcn.004e6960
test eax, eax
je 0x407b81
push 1
push 0
mov ecx, esi
call fcn.004e70d0
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x28]
mov edx, dword [esp + 0x38]
sub eax, edi
xor ecx, ecx
sub eax, edx
push ecx
mov dword [esp + 0x50], eax
mov eax, ebp
sub eax, edx
lea edx, [esp + 0x4c]
push edx
push eax
mov eax, dword [esp + 0x30]
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x5c], 0
call fcn.004e6d20
mov ebp, dword [esp + 0x3c]
jmp 0x407ae8
cmp dword [esp + 0x1c], 1
jne 0x407abe
mov dword [esp + 0x1c], 0
jmp 0x407ad7
test edi, edi
jne 0x407ad7
cmp dword [esp + 0x20], 3
jge 0x407ad7
push 0x15
call fcn.004ecb88
sub dword [esp + 0x84], eax
test ebx, ebx
je 0x407ae4
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx + 4]
inc dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
xor ebx, ebx
inc ecx
mov eax, dword [edi + 0x1c]
push ebx
mov dword [esp + 0x24], ecx
push ebx
push ebx
lea ecx, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.user32.dll_PeekMessageA]
test eax, eax
je 0x407b5f
mov edx, dword [edi + 0x1c]
push 0
push 0
lea eax, [esp + 0x58]
push edx
push eax
call dword [sym.imp.user32.dll_GetMessageA]
cmp dword [esp + 0x54], 0x312
je 0x407b6e
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.user32.dll_TranslateMessage]
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.user32.dll_DispatchMessageA]
inc ebx
cmp ebx, 0x64
jg 0x407b5f
mov eax, dword [edi + 0x1c]
push 0
push 0
push 0
lea ecx, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.user32.dll_PeekMessageA]
test eax, eax
jne 0x407b0d
cmp dword [esp + 0x14], 5
jl 0x4078fb
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x407b85
push 0
mov ecx, esi
call fcn.004e71a0
jmp 0x407b85
mov edi, dword [esp + 0x28]
mov ecx, dword [esi + 0x24]
xor edx, edx
mov dx, word [esi + 0x2e]
xor eax, eax
mov ax, word [esi + 0x2c]
push 0x2ffffff
push 0
push edx
push eax
push ebp
push ecx
mov ecx, esi
call fcn.004e6960
mov edx, dword [edi + 0x1c]
push 0xbffe
push edx
call dword [sym.imp.user32.dll_UnregisterHotKey]
mov ecx, dword [esp + 0x18]
pop ebp
test ecx, ecx
pop ebx
je 0x407bd7
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esp + 8]
mov eax, esi
mov dword [ecx + 0x78], edi
pop edi
pop esi
add esp, 0x5c
ret 0x1c
mov edx, dword [esp + 8]
mov eax, esi
mov dword [edx + 0x78], edi
pop edi
pop esi
add esp, 0x5c
ret 0x1c