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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d5028
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x517050]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x20]
xor ebp, ebp
cmp eax, ebp
je 0x45a345
push eax
call dword [sym.imp.user32.dll_IsWindowVisible]
test eax, eax
je 0x45a345
cmp dword [esi + 0xb4], ebp
je 0x45a345
cmp dword [esi + 0x78], ebp
jne 0x45a345
mov eax, dword [esi + 0x6c]
cmp eax, ebp
mov dword [esp + 0x24], eax
je 0x45a345
cmp dword [esi + 0xbc], ebp
jne 0x45a345
mov eax, dword [esi]
mov edx, dword [eax + 0x138]
mov ecx, esi
call edx
mov eax, 1
mov ecx, esi
mov dword [esi + 0xbc], eax
mov dword [esi + 0x74], eax
call fcn.00457ac0
mov ecx, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
xor ebx, ebx
call fcn.00458350
test eax, eax
jle 0x45a122
push ebx
mov ecx, esi
xor edi, edi
call fcn.00458d20
cmp dword [eax + 0x68], ebp
jle 0x45a114
push ebx
mov ecx, esi
call fcn.00458d20
cmp edi, ebp
jl 0x45a0ff
cmp edi, dword [eax + 0x68]
jge 0x45a0ff
mov eax, dword [eax + 0x64]
lea eax, [eax + edi*4]
mov eax, dword [eax]
jmp 0x45a101
xor eax, eax
push ebx
mov ecx, esi
mov dword [eax + 0x2c], ebp
add edi, 1
call fcn.00458d20
cmp edi, dword [eax + 0x68]
jl 0x45a0e4
mov ecx, esi
add ebx, 1
call fcn.00458350
cmp ebx, eax
jl 0x45a0d5
mov ecx, dword [esi + 0x20]
push 5
push ecx
call dword [sym.imp.user32.dll_GetWindow]
push eax
call fcn.00420356
mov ebx, eax
cmp ebx, ebp
je 0x45a21a
mov eax, dword [ebx + 0x20]
push eax
mov ecx, esi
call fcn.00459e90
mov ecx, ebx
mov edi, eax
call fcn.00425d38
cmp edi, ebp
je 0x45a1b0
test eax, 0x10000000
je 0x45a1a7
mov edx, dword [esi]
mov edx, dword [edx + 0x13c]
push ebx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call edx
mov eax, dword [eax]
push eax
mov ecx, edi
mov dword [esp + 0x3c], ebp
call fcn.0046e240
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a1ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x45a1ed
mov ecx, edi
call fcn.0046e230
jmp 0x45a1fe
test eax, 0x10000000
je 0x45a1fe
mov edx, dword [esi]
mov eax, dword [edx + 0x14c]
push ebx
mov ecx, esi
call eax
cmp ebx, ebp
mov edi, eax
mov dword [esp + 0x1c], edi
jne 0x45a1d2
xor eax, eax
jmp 0x45a1d5
mov eax, dword [ebx + 0x20]
mov ecx, dword [esp + 0x24]
push ebp
push edi
mov dword [edi + 0x38], eax
mov edx, dword [ecx + 0x20]
push 0x488
push edx
call dword [fcn.005210f8]
cmp ebx, dword [esp + 0x28]
mov dword [edi + 0x2c], 1
jne 0x45a1fe
mov dword [esp + 0x18], edi
mov eax, dword [ebx + 0x20]
push 2
push eax
call dword [sym.imp.user32.dll_GetWindow]
push eax
call fcn.00420356
mov ebx, eax
cmp ebx, ebp
jne 0x45a13e
mov ecx, esi
call fcn.00458350
mov ebp, eax
sub ebp, 1
js 0x45a2d6
lea esp, [esp]
push ebp
mov ecx, esi
call fcn.00458d20
mov ebx, eax
mov edi, dword [ebx + 0x68]
sub edi, 1
js 0x45a265
test edi, edi
jl 0x45a253
cmp edi, dword [ebx + 0x68]
jge 0x45a253
mov ecx, dword [ebx + 0x64]
mov ecx, dword [ecx + edi*4]
jmp 0x45a255
xor ecx, ecx
cmp dword [ecx + 0x2c], 0
jne 0x45a260
call fcn.0046e230
sub edi, 1
jns 0x45a242
cmp dword [ebx + 0x68], 0
jne 0x45a2cd
cmp ebx, dword [esi + 0x8c]
jne 0x45a27d
mov dword [esi + 0x8c], 0
test ebp, ebp
mov ecx, esi
jne 0x45a291
call fcn.00458350
cmp eax, 1
jle 0x45a2b0
push 1
jmp 0x45a295
lea edx, [ebp - 1]
push edx
call fcn.00458d20
test eax, eax
je 0x45a2b0
fld qword [ebx + 0xa0]
fadd qword [eax + 0xa0]
fstp qword [eax + 0xa0]
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 1
mov ecx, ebx
call edx
push 1
push ebp
lea ecx, [esi + 0x58]
call fcn.004823a0
mov dword [esi + 0x70], 1
sub ebp, 1
jns 0x45a230
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp edi, ebx
je 0x45a2fb
mov ecx, dword [edi + 0x60]
cmp dword [ecx + 4], edi
je 0x45a2f0
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
push edi
call edx
mov eax, dword [edi + 0x60]
push eax
mov ecx, esi
call fcn.00457b20
cmp dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
je 0x45a33f
mov eax, dword [esi + 0x6c]
cmp eax, ebx
jne 0x45a30e
xor eax, eax
jmp 0x45a311
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.user32.dll_IsWindow]
test eax, eax
je 0x45a32b
mov ecx, dword [esi + 0x6c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x148]
push 1
call eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x45a33c
mov ecx, dword [eax + 0x60]
push eax
call fcn.0046cbc0
mov dword [esi + 0x70], ebx
mov dword [esi + 0xbc], ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret