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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x71a00c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
je 0x600734
mov eax, dword [esi + 0x1c8]
lea ecx, [esi + 0x1c8]
mov eax, dword [eax]
call eax
test al, al
je 0x600521
mov eax, dword [esi + 0x50]
mov edi, dword [esi + 0x54]
jmp 0x60053b
cmp byte [ebp + 8], 0
jne 0x600535
cmp byte [esi + 0x65], 0
je 0x600535
mov eax, dword [esi + 0x74]
mov edi, dword [esi + 0x78]
jmp 0x60053b
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x4c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], 0
nop dword [eax + eax]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esi + 0xc]
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
sub ebx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi + 0xc]
push dword [eax]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x24]
lea ecx, [esi + 0x1c8]
sub eax, dword [esp + 0x2c]
add eax, dword [esp + 0x10]
add ebx, eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x30]
add eax, edi
mov dword [esp + 0x20], ebx
mov edi, dword [esp + 0x18]
add edi, eax
mov eax, dword [ecx]
mov dword [esp + 0x18], edi
mov eax, dword [eax]
call eax
test al, al
je 0x6005c0
xor ebx, ebx
xor edi, edi
jmp 0x6005fd
cmp byte [ebp + 8], 0
jne 0x6005d4
cmp byte [esi + 0x65], 0
je 0x6005d4
mov ebx, dword [esi + 0x6c]
mov edi, dword [esi + 0x70]
jmp 0x6005f6
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, ebx
cdq
sub eax, edx
mov ebx, eax
push 1
sar ebx, 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, edi
cdq
sub eax, edx
mov edi, eax
sar edi, 1
xor eax, eax
test edi, edi
cmovs edi, eax
mov eax, dword [esi + 0x1c8]
lea ecx, [esi + 0x1c8]
mov eax, dword [eax]
call eax
push 0x40
push dword [esp + 0x1c]
xor ecx, ecx
test al, al
push dword [esp + 0x28]
mov eax, dword [esi + 0xc]
setne cl
push edi
push ebx
add ecx, 0xfffffffe
push ecx
push dword [eax]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi + 0xc]
push dword [eax]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], eax
cmp ecx, edx
jne 0x600665
cmp eax, edi
je 0x600677
mov ebx, dword [esp + 0x1c]
inc ebx
mov dword [esp + 0x1c], ebx
cmp ebx, 3
jl 0x600550
cmp byte [esi + 0x69], 0
jne 0x6006f6
cmp ecx, edx
jne 0x600685
cmp eax, edi
je 0x6006f6
push 0x65
push 0x6c1008
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
call fcn.004023e0
cmp dword [0x72f1b0], 0x10
lea eax, [esp + 0x34]
mov ecx, 0x72f19c
cmovae ecx, dword [0x72f19c]
cmp dword [esp + 0x48], 0x10
push 0x50000
cmovae eax, dword [esp + 0x38]
push ecx
push eax
push dword [0x72ec60]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esp + 0x48]
cmp edx, 0x10
jb 0x6006f6
mov ecx, dword [esp + 0x34]
inc edx
push 1
call fcn.004020c0
add esp, 4
mov eax, dword [esi + 0xc]
push dword [eax]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0xc]
push dword [eax]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp dword [esi + 0xe4], 0
mov edx, dword [esi + 0x54]
mov edi, dword [esi + 0x50]
mov dword [esi + 0x104], edi
mov dword [esi + 0x108], edx
je 0x600734
mov ecx, dword [esi + 0xe4]
push edx
push edi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0066bc45
mov esp, ebp
pop ebp
ret 4