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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x16c
mov eax, dword [0x4a6c10]
mov dword [esp + 0x28], eax
mov al, byte [ecx + 1]
push ebx
mov dl, 1
cmp dl, al
sbb ebx, ebx
and ebx, dword [0x4a6c14]
push esi
mov cl, 2
cmp cl, al
push edi
sbb edi, edi
and edi, dword [0x4a6c18]
mov dl, 3
cmp dl, al
sbb eax, eax
and eax, dword [0x4a6c1c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [0x4a3440]
movzx esi, word [ecx + 0xcc]
shr esi, 2
xor eax, eax
and esi, 3
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
cmp esi, 2
je 0x4397bf
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4397bf
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4397bf
cmp esi, eax
jne 0x439793
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x4397bf
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
add dword [esp + 0x10], ecx
add dword [esp + 0x14], edx
jmp 0x4397bf
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x4397bf
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], edx
add dword [esp + 0x14], eax
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4397db
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
push 0x18
cdq
push edx
push eax
mov eax, ecx
call fcn.004010d0
test ebx, ebx
je 0x4397f3
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push 0x18
cdq
push edx
push eax
mov eax, ebx
call fcn.004010d0
mov esi, dword [esp + 0xc]
test edi, edi
jne 0x4397ff
test esi, esi
je 0x43982b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov ebx, eax
test ebx, ebx
jne 0x439839
test edi, edi
je 0x439820
mov ecx, edi
call fcn.00412600
test esi, esi
je 0x43982b
mov ecx, esi
call fcn.00412600
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, ebx
call fcn.00473480
mov esi, eax
test edi, edi
je 0x43985b
push edi
mov ecx, esi
call fcn.00470e20
test eax, eax
jne 0x43985b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0xc], 0
je 0x43982b
test byte [ebp + 8], 1
mov edi, dword [sym.imp.USER32.dll_EnumChildWindows]
jne 0x4398bb
mov ecx, dword [esp + 0x1c]
xor eax, eax
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x1c]
push 0x439970
push esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
call edi
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4398bb
mov ebx, eax
cmp esi, ebx
jne 0x4398d1
mov ecx, dword [esp + 0xc]
call fcn.00412600
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test byte [ebp + 8], 2
je 0x4398ec
mov eax, dword [esp + 0xc]
push eax
mov ecx, ebx
call fcn.00470e20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x70]
push 0xfc
mov edx, ecx
push edx
push ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], ecx
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x4398bf
lea eax, [esp + 0x38]
push eax
push 0x433600
push esi
mov dword [esp + 0x4c], 0
mov byte [esp + 0x48], 0
call edi
cmp byte [esp + 0x3c], 0
je 0x4398bf
mov ecx, dword [esp + 0x40]
push ecx
push 0x495840
mov eax, 0x101
lea ecx, [esp + 0x78]
call fcn.0046eb00
mov eax, dword [esp + 0x14]
add esp, 8
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x7c]
push edx
push eax
call fcn.004715e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4