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

Disassembly:
sub esp, 0x4c
mov eax, dword [esp + 0x60]
push ebx
mov ebx, dword [esp + 0x5c]
add eax, ebx
cdq
push ebp
mov ebp, dword [esp + 0x6c]
sub eax, edx
push esi
mov esi, dword [esp + 0x5c]
mov ecx, eax
push edi
mov edi, dword [esp + 0x6c]
lea eax, [edi + ebp]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
test esi, esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
jne 0x4afe74
push eax
push ecx
call dword [sym.imp.user32.dll_WindowFromPoint]
mov esi, eax
test esi, esi
mov dword [esp + 0x60], esi
jne 0x4afe74
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov eax, dword [0x6bcef4]
test eax, eax
je 0x4aff88
cmp dword [eax + 4], 0
je 0x4aff88
cmp dword [eax + 8], 0
je 0x4aff88
mov ecx, esi
call fcn.004aee10
test eax, eax
je 0x4aff88
mov ecx, dword [0x6bcef4]
mov eax, esi
cdq
mov dword [ecx + 0x14], edx
mov edx, dword [esp + 0x70]
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x64]
mov dword [ecx + 0x1c], edi
mov dword [ecx + 0x20], edx
mov edx, dword [esp + 0x78]
mov dword [ecx + 0x24], ebp
mov dword [ecx + 0x28], eax
mov eax, dword [esp + 0x7c]
mov dword [ecx + 0x2c], edx
mov edx, dword [0x6bcee8]
push 1
mov dword [ecx + 0x30], eax
xor ebp, ebp
mov dword [ecx + 0x3c], ebp
mov ebx, 0xff
mov dword [ecx + 0x34], ebx
mov eax, dword [edx + 0xc]
mov ecx, dword [ecx + 8]
push 7
push eax
push ecx
call dword [sym.imp.user32.dll_PostThreadMessageA]
mov edi, dword [sym.imp.kernel32.dll_Sleep]
xor esi, esi
mov eax, dword [0x6bcef4]
cmp dword [eax + 0x34], ebx
jne 0x4aff20
push 0x32
call edi
add esi, 1
cmp esi, 0x64
jl 0x4aff05
mov eax, dword [0x6bcef4]
mov ecx, dword [eax + 0x34]
cmp ecx, ebx
je 0x4aff3e
cmp ecx, ebp
jne 0x4aff3e
jmp 0x4aff30
push 0x64
call edi
mov eax, dword [0x6bcef4]
cmp dword [eax + 0x34], ebp
je 0x4aff30
mov edx, dword [eax + 0x3c]
mov ecx, dword [0x6bcee8]
mov dword [ecx + 0x24], edx
mov dword [ecx + 0x3c], ebp
mov eax, dword [eax + 0x34]
mov dword [ecx + 0x4c], eax
mov eax, dword [0x6bcef8]
cmp eax, ebp
je 0x4aff77
cmp edx, ebp
jbe 0x4aff77
mov ecx, dword [0x6be184]
push ebp
push 4
push ecx
push eax
call dword [sym.imp.user32.dll_PostMessageA]
mov ecx, dword [0x6bcee8]
xor edx, edx
cmp edx, dword [ecx + 0x24]
sbb eax, eax
neg eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
push 0x1b
push 0
push 0xbffe
push 0
call dword [sym.imp.user32.dll_RegisterHotKey]
mov eax, dword [esp + 0x70]
push ebp
push eax
push edi
push ebx
lea esi, [esp + 0x70]
call fcn.004afdb0
mov ecx, dword [esp + 0x70]
push ecx
lea ecx, [esp + 0x38]
mov esi, eax
mov dword [esp + 0x38], 0
call fcn.004af8e0
add esp, 0x14
test esi, esi
je 0x4afe6a
mov eax, dword [0x6bcee8]
cmp dword [eax + 0x24], 0
jne 0x4b0021
mov edx, dword [eax + 4]
mov ebx, dword [sym.imp.user32.dll_GetParent]
push edx
call ebx
test eax, eax
je 0x4b0009
jmp 0x4afff0
mov eax, dword [0x6bcee8]
lea esi, [eax + 4]
mov eax, dword [eax + 4]
push eax
call ebx
mov ecx, eax
push ecx
mov dword [esi], eax
call ebx
test eax, eax
jne 0x4afff0
mov edx, dword [0x6bcee8]
mov eax, dword [edx + 4]
push eax
xor ecx, ecx
call fcn.004af8e0
mov ebx, dword [esp + 0x6c]
add esp, 4
mov ecx, dword [esp + 0x70]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov eax, ebp
sub eax, edi
cdq
sub eax, edx
sar eax, 1
push 1
mov edi, ebp
sub edi, eax
push 0
mov eax, ebp
sub eax, edi
push eax
sub ecx, ebx
push ecx
push edi
push ebx
mov dword [esp + 0x84], edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
call fcn.004ec640
add esp, 0x18
push 0x15
mov dword [esp + 0x18], eax
call fcn.0056572d
mov esi, dword [sym.imp.user32.dll_SystemParametersInfoA]
xor eax, eax
push eax
lea ecx, [esp + 0x2c]
push ecx
push eax
push 0x68
mov dword [esp + 0x20], 3
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], eax
call esi
test eax, eax
je 0x4b00a8
push 3
lea edx, [esp + 0x30]
push edx
push 3
push 0x69
mov dword [esp + 0x3c], 3
call esi
mov eax, dword [esp + 0x64]
add eax, 0x32
mov dword [esp + 0x2c], eax
jmp 0x4b00b9
mov edi, dword [esp + 0x6c]
cmp dword [esp + 0x10], 0
je 0x4b00eb
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x60]
shl ecx, 0x10
and edx, 0xffff
or ecx, edx
push ecx
push 0xffc40000
push 0x20a
push esi
call dword [sym.imp.user32.dll_SendMessageA]
jmp 0x4b0124
cmp dword [esp + 0x1c], 1
jae 0x4b0120
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
push eax
push ecx
call dword [sym.imp.user32.dll_SetCursorPos]
mov esi, dword [sym.imp.user32.dll_mouse_event]
push 0
push 0
push 0
push 0
push 2
call esi
push 0
push 0
push 0
push 0
push 4
call esi
mov esi, dword [esp + 0x60]
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.kernel32.dll_Sleep]
test esi, esi
je 0x4b0158
push esi
call dword [sym.imp.user32.dll_IsWindow]
test eax, eax
je 0x4b0158
push 0
push 0
push 0xf
push esi
call dword [sym.imp.user32.dll_SendMessageA]
push esi
call dword [sym.imp.user32.dll_UpdateWindow]
call dword [sym.imp.gdi32.dll_GdiFlush]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push 1
push 0
push eax
push ecx
push edi
push ebx
call fcn.004ec640
mov edx, dword [esp + 0x2c]
mov edi, eax
push edi
push edx
call fcn.004eca40
mov esi, eax
add esp, 0x20
test esi, esi
jle 0x4b0211
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4b0198
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov eax, dword [0x6bcee8]
mov edx, dword [esp + 0x70]
add dword [eax + 0x3c], esi
mov ecx, ebp
sub ecx, esi
sub ecx, 0x14
cmp dword [esp + 0x24], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], ebp
je 0x4b01d7
mov eax, dword [esp + 0x60]
push eax
call dword [0x6bcefc]
jmp 0x4b01e9
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
push 0
push 6
push ecx
push edx
call dword [sym.imp.user32.dll_SendMessageA]
mov eax, dword [0x6bcee8]
cmp dword [eax + 0x4c], 0xff
je 0x4b02c0
cmp dword [esp + 0x10], 0
je 0x4b020a
mov dword [esp + 0x10], 2
add dword [esp + 0x1c], 1
jmp 0x4b0249
cmp dword [esp + 0x10], 0
jle 0x4b021f
sub dword [esp + 0x10], 1
jmp 0x4b0235
test esi, esi
jne 0x4b0235
cmp dword [esp + 0x20], 3
jge 0x4b0235
push 0x15
call fcn.0056572d
sub dword [esp + 0x7c], eax
test edi, edi
je 0x4b0244
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
add dword [esp + 0x18], 1
mov edi, dword [sym.imp.user32.dll_PeekMessageA]
add dword [esp + 0x20], 1
xor esi, esi
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x50]
push ecx
call edi
test eax, eax
je 0x4b02b1
push 0
push 0
push 0
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.user32.dll_GetMessageA]
cmp dword [esp + 0x44], 0x312
je 0x4b02bc
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.user32.dll_TranslateMessage]
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.user32.dll_DispatchMessageA]
add esi, 1
cmp esi, 0x64
jg 0x4b02b1
push 0
push 0
push 0
push 0
lea edx, [esp + 0x50]
push edx
call edi
test eax, eax
jne 0x4b0265
cmp dword [esp + 0x18], 5
jl 0x4b00b5
mov edi, dword [esp + 0x14]
push 0xbffe
push 0
call dword [sym.imp.user32.dll_UnregisterHotKey]
test edi, edi
je 0x4b02dc
mov eax, dword [edi]
mov edx, dword [eax + 4]
push 1
mov ecx, edi
call edx
call fcn.004afa70
mov ecx, dword [0x6bcee8]
xor eax, eax
cmp eax, dword [ecx + 0x24]
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x4c
ret