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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5714d0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5c3678]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 4]
mov eax, dword [ebp + 0xc]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x459092
mov eax, dword [ebx + 0x4c]
xor esi, esi
xor edi, edi
cmp eax, esi
jne 0x4590a0
cmp byte [ebx + 0x48], 0
jne 0x459099
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ecx - 0xc]
mov edx, dword [ebx + 0x30]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [edx - 0xc]
neg ecx
sbb ecx, ecx
and ecx, edx
test dword [ebp + 0x14], 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
lea edx, [esi + 1]
je 0x45902e
xor edx, edx
mov edi, dword [ebx + 0x28]
lea ecx, [ebx + 0x74]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [esp + 0x20]
push ecx
push edx
mov edx, dword [esp + 0x24]
lea eax, [ebx + 0x70]
lea esi, [ebx + 0x38]
push edi
mov edi, eax
mov ecx, esi
call fcn.00458a40
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4591e8
cmp byte [ebx + 0x48], al
jne 0x4591e8
mov eax, dword [ebx + 0x3c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x459092
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x459092
mov ecx, dword [ebx + 0x74]
mov edx, dword [ebx + 0x3c]
push ecx
push eax
push 0x4cc
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
xor al, al
jmp 0x459394
mov edi, 2
jmp 0x4590bc
cmp eax, 1
jne 0x4590bc
mov eax, dword [ebx + 0x38]
lea esi, [ebx + 0x38]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4591f1
xor esi, esi
mov byte [esp + 0x13], 0
cmp edi, 2
je 0x4590d0
cmp byte [ebx + 0x48], 0
je 0x459390
lea eax, [ebx + 0x58]
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x78], esi
cmp edi, 2
jne 0x4590ed
mov edx, dword [ebp + 0x14]
mov dword [ebx + 0x50], edx
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x20]
push edx
mov edx, dword [eax + 0x10]
push ecx
mov ecx, ebx
mov byte [ebx + 0x48], 1
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], esi
call edx
cmp al, 1
jne 0x459309
cmp dword [esp + 0x1c], esi
jne 0x459128
cmp dword [esp + 0x14], esi
je 0x459309
lea edi, [ebx + 0x78]
lea esi, [esp + 0x34]
mov dword [esp + 0x18], edi
call fcn.00459840
lea esi, [esp + 0x28]
call fcn.00426420
mov edi, dword [esp + 0x28]
test edi, edi
je 0x45914f
cmp edi, dword [esp + 0x34]
je 0x459154
call fcn.0053d6a6
mov esi, dword [esp + 0x2c]
cmp esi, dword [esp + 0x38]
je 0x459307
test edi, edi
jne 0x4592de
call fcn.0053d6a6
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x45917b
call fcn.0053d6a6
mov eax, dword [esp + 0x20]
cmp dword [esi], eax
jne 0x4591c3
test edi, edi
jne 0x4592e5
call fcn.0053d6a6
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x45919c
call fcn.0053d6a6
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esi + 4]
je 0x4592f3
lea esi, [esp + 0x28]
call fcn.00472080
mov edx, dword [esp + 0x14]
cmp edx, dword [eax + 4]
je 0x459385
mov esi, dword [esp + 0x2c]
test edi, edi
jne 0x4592ec
call fcn.0053d6a6
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4591dc
call fcn.0053d6a6
add esi, 0x24
mov dword [esp + 0x2c], esi
jmp 0x459145
cmp edi, 1
jne 0x4590ba
test byte [ebp + 0x14], 2
je 0x459249
mov edx, dword [esi]
xor eax, eax
lea ecx, [esp + 0x3c]
push ecx
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
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 + 0x44], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
cmp dword [esp + 0x44], 2
jne 0x459249
mov eax, dword [esi]
push 9
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
jb 0x45925b
mov eax, dword [eax + 4]
jmp 0x45925e
add eax, 4
mov edi, dword [ebp + 0x10]
mov esi, dword [esi]
push 0xbb8
push ecx
push eax
push edi
call fcn.004677c0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x459294
mov edx, dword [ebx]
mov eax, dword [esp + 0x20]
mov edx, dword [edx + 0x14]
push edi
push eax
mov ecx, ebx
call edx
xor eax, eax
test esi, esi
setne al
jmp 0x459394
mov eax, dword [ebx + 0x28]
cmp dword [eax - 0xc], 0
je 0x4592d2
mov dword [ebx + 0x70], 0x69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x3c]
push ecx
mov dword [ebx + 0x74], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4592d2
mov edx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x3c]
push edx
push eax
push 0x4cc
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
test esi, esi
setne al
jmp 0x459394
mov eax, dword [edi]
jmp 0x459171
mov eax, dword [edi]
jmp 0x459192
mov eax, dword [edi]
jmp 0x4591d2
push esi
mov esi, dword [esp + 0x1c]
push edi
lea edi, [esp + 0x3c]
call fcn.00459900
jmp 0x459385
xor esi, esi
mov byte [esp + 0x13], 1
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], esi
mov byte [esp + 0x48], 0
mov ecx, dword [esp + 0x24]
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ecx
mov byte [esp + 0x84], 1
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], eax
call fcn.00423020
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x3c]
push eax
lea edi, [ebx + 0x78]
mov dword [esp + 0x40], edx
call fcn.00459860
cmp dword [ebx + 0x44], esi
jne 0x459371
mov ecx, dword [ebx + 4]
push esi
push 0x1f4
push 0x64
push ecx
mov dword [ebx + 0x40], esi
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x44], eax
cmp dword [esp + 0x5c], 0x10
jb 0x459385
mov edx, dword [esp + 0x48]
push edx
call fcn.0053c152
add esp, 4
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret 0x10