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

Disassembly:
sub esp, 0x40
push ebx
push ebp
mov ebp, dword [esp + 0x54]
push esi
push edi
mov edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov esi, dword [esp + 0x60]
lea eax, [edi + ebp]
cdq
sub eax, edx
mov ecx, eax
lea eax, [ebx + esi]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x54]
sar ecx, 1
sar edx, 1
test eax, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
jne 0x4e2883
push edx
push ecx
call dword [sym.imp.user32.dll_WindowFromPoint]
test eax, eax
mov dword [esp + 0x54], eax
jne 0x4e2883
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push eax
call dword [sym.imp.user32.dll_SetForegroundWindow]
mov eax, dword [0x648134]
test eax, eax
je 0x4e29e5
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4e29e5
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4e29e5
mov eax, dword [esp + 0x54]
push eax
call fcn.004e1690
add esp, 4
test eax, eax
je 0x4e29e5
mov eax, dword [esp + 0x54]
mov ecx, dword [0x648134]
cdq
mov dword [ecx + 0x10], eax
mov eax, dword [0x648134]
push 1
push 7
mov dword [eax + 0x14], edx
mov ecx, dword [0x648134]
add ecx, 0x18
mov eax, dword [esp + 0x60]
mov dword [ecx], ebp
xor ebp, ebp
mov dword [ecx + 4], esi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], ebx
mov edx, dword [0x648134]
mov ecx, dword [esp + 0x74]
mov ebx, 0xff
mov dword [edx + 0x28], eax
mov edx, dword [0x648134]
mov eax, dword [esp + 0x78]
mov dword [edx + 0x2c], ecx
mov ecx, dword [0x648134]
mov dword [ecx + 0x30], eax
mov edx, dword [0x648134]
mov dword [edx + 0x38], ebp
mov eax, dword [0x648134]
mov dword [eax + 0x34], ebx
mov ecx, dword [0x648128]
mov eax, dword [0x648134]
mov edx, dword [ecx + 0xc]
mov ecx, dword [eax + 8]
push edx
push ecx
call dword [sym.imp.user32.dll_PostThreadMessageA]
mov edi, dword [sym.imp.kernel32.dll_Sleep]
xor esi, esi
mov eax, dword [0x648134]
cmp dword [eax + 0x34], ebx
jne 0x4e2969
push 0x32
call edi
inc esi
cmp esi, 0x64
jl 0x4e2950
mov eax, dword [0x648134]
mov ecx, dword [eax + 0x34]
cmp ecx, ebx
je 0x4e2982
cmp ecx, ebp
jne 0x4e2982
push 0x64
call edi
mov eax, dword [0x648134]
cmp dword [eax + 0x34], ebp
je 0x4e2974
mov edx, dword [eax + 0x38]
mov eax, dword [0x648128]
mov dword [eax + 0x20], edx
mov ecx, dword [0x648128]
mov dword [ecx + 0x38], ebp
mov edx, dword [0x648134]
mov ecx, dword [0x648128]
mov eax, dword [edx + 0x34]
mov dword [ecx + 0x48], eax
mov eax, dword [0x648138]
cmp eax, ebp
je 0x4e29cd
mov edx, dword [0x648128]
cmp dword [edx + 0x20], ebp
jle 0x4e29cd
mov ecx, dword [0x648110]
push ebp
push 4
push ecx
push eax
call dword [sym.imp.user32.dll_PostMessageA]
mov edx, dword [0x648128]
xor eax, eax
pop edi
pop esi
mov ecx, dword [edx + 0x20]
cmp ecx, ebp
pop ebp
setg al
pop ebx
add esp, 0x40
ret
push 0x1b
push 0
push 0xbffe
push 0
call dword [sym.imp.user32.dll_RegisterHotKey]
push ebx
push edi
push esi
lea eax, [esp + 0x60]
push ebp
push eax
call fcn.004e2780
mov edx, dword [esp + 0x68]
xor ebp, ebp
lea ecx, [esp + 0x34]
push ebp
push ecx
push edx
mov edi, eax
mov dword [esp + 0x40], ebp
call fcn.004e2190
add esp, 0x20
cmp edi, ebp
jne 0x4e2a2d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
mov eax, dword [0x648128]
cmp dword [eax + 0x20], ebp
jne 0x4e2a80
mov eax, dword [eax + 4]
mov edi, dword [sym.imp.user32.dll_GetParent]
push eax
call edi
test eax, eax
je 0x4e2a6c
mov ecx, dword [0x648128]
mov edx, dword [ecx + 4]
push edx
call edi
mov ecx, dword [0x648128]
mov dword [ecx + 4], eax
mov edx, dword [0x648128]
mov eax, dword [edx + 4]
push eax
call edi
test eax, eax
jne 0x4e2a47
mov ecx, dword [0x648128]
push ebp
push ebp
mov edx, dword [ecx + 4]
push edx
call fcn.004e2190
add esp, 0xc
mov eax, ebx
mov edi, dword [esp + 0x64]
sub eax, esi
mov dword [esp + 0x18], ebp
cdq
sub eax, edx
mov dword [esp + 0x1c], ebp
sar eax, 1
mov ebp, ebx
mov esi, ebx
sub ebp, eax
mov eax, dword [esp + 0x5c]
push 1
sub esi, ebp
push 0
sub edi, eax
push 0
push esi
push edi
push ebp
push eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
call fcn.004e7a80
add esp, 0x1c
mov dword [esp + 0x14], eax
push 0x15
call dword [sym.imp.user32.dll_GetSystemMetrics]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], 1
add eax, 0x32
mov dword [esp + 0x58], eax
jmp 0x4e2ae6
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e2b19
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x54]
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 0x4e2b49
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
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 + 0x58]
push eax
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4e2b89
push eax
call dword [sym.imp.user32.dll_IsWindow]
test eax, eax
je 0x4e2b89
mov ecx, dword [esp + 0x54]
push 0
push 0
push 0xf
push ecx
call dword [sym.imp.user32.dll_SendMessageA]
mov edx, dword [esp + 0x54]
push edx
call dword [sym.imp.user32.dll_UpdateWindow]
call dword [sym.imp.gdi32.dll_GdiFlush]
mov eax, dword [esp + 0x5c]
push 1
push 0
push 0
push esi
push edi
push ebp
push eax
call fcn.004e7a80
mov ecx, dword [esp + 0x30]
mov edi, eax
push edi
push ecx
call fcn.004e7e80
mov esi, eax
add esp, 0x24
test esi, esi
jle 0x4e2c5f
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4e2bc5
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [0x648128]
mov ecx, dword [esp + 0x5c]
mov edx, ebx
mov dword [esp + 0x14], edi
mov dword [eax + 0x10], ecx
mov eax, dword [0x648128]
sub edx, esi
mov dword [esp + 0x18], 0
sub edx, 0x14
mov dword [eax + 0x14], edx
mov ecx, dword [0x648128]
mov edx, dword [esp + 0x64]
mov dword [ecx + 0x18], edx
mov eax, dword [0x648128]
mov dword [eax + 0x1c], ebx
mov eax, dword [0x648128]
mov ecx, dword [eax + 0x38]
add ecx, esi
mov dword [eax + 0x38], ecx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4e2c23
mov ecx, dword [esp + 0x54]
push ecx
call dword [0x64813c]
jmp 0x4e2c3a
mov eax, dword [0x648128]
push 0
push 6
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 4]
push edx
push eax
call dword [sym.imp.user32.dll_SendMessageA]
mov ecx, dword [0x648128]
cmp dword [ecx + 0x48], 0xff
je 0x4e2d11
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e2c98
mov dword [esp + 0x10], 2
jmp 0x4e2c98
cmp dword [esp + 0x10], 1
jne 0x4e2c70
mov dword [esp + 0x10], 0
jmp 0x4e2c87
test esi, esi
jne 0x4e2c87
cmp dword [esp + 0x1c], 3
jge 0x4e2c87
push 0x15
call dword [sym.imp.user32.dll_GetSystemMetrics]
sub dword [esp + 0x70], eax
test edi, edi
je 0x4e2c94
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
inc dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.user32.dll_PeekMessageA]
inc esi
lea eax, [esp + 0x34]
mov dword [esp + 0x1c], esi
xor esi, esi
push esi
push esi
push esi
push esi
push eax
call edi
test eax, eax
je 0x4e2d02
push 0
push 0
lea ecx, [esp + 0x3c]
push 0
push ecx
call dword [sym.imp.user32.dll_GetMessageA]
cmp dword [esp + 0x38], 0x312
je 0x4e2d0d
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.user32.dll_TranslateMessage]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.user32.dll_DispatchMessageA]
inc esi
cmp esi, 0x64
jg 0x4e2d02
push 0
push 0
push 0
lea ecx, [esp + 0x40]
push 0
push ecx
call edi
test eax, eax
jne 0x4e2cb8
cmp dword [esp + 0x18], 5
jl 0x4e2ade
mov edi, dword [esp + 0x14]
push 0xbffe
push 0
call dword [sym.imp.user32.dll_UnregisterHotKey]
test edi, edi
je 0x4e2d2b
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
call fcn.004e23d0
mov ecx, dword [0x648128]
xor eax, eax
pop edi
pop esi
mov edx, dword [ecx + 0x20]
pop ebp
test edx, edx
setg al
pop ebx
add esp, 0x40
ret