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

Disassembly:
sub esp, 0x3c
push esi
mov esi, ecx
lea eax, [esp + 0x1c]
push edi
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x18], esi
call fcn.0045aa30
mov eax, dword [esi + 0xd4]
cmp eax, 0xe81b
je 0x45aebd
cmp eax, 0xe81e
mov dword [esp + 8], 0
jne 0x45aec5
mov dword [esp + 8], 1
mov edi, dword [esp + 8]
mov ecx, dword [esi + 0x70]
neg edi
mov edx, dword [ecx + 0x1c]
lea eax, [esp + 0x34]
sbb edi, edi
push eax
push edx
mov dword [esp + 0x20], 0
and edi, 0xfffffffe
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, eax
cmp eax, edx
mov dword [esp + 0x10], ecx
jg 0x45b07e
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x70]
mov edx, dword [eax + 0x80]
mov ebx, dword [edx + ecx*4]
mov eax, ebx
shr eax, 0x10
je 0x45b055
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xc8]
test eax, eax
je 0x45b055
mov ecx, dword [ebx + 0x1c]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
neg ecx
neg eax
push ecx
lea edx, [esp + 0x30]
push eax
push edx
call ebp
mov edx, dword [esi + 0x90]
xor eax, eax
mov ecx, dword [edx + 8]
test ecx, ecx
jle 0x45afc3
mov edx, dword [edx + 4]
mov esi, edx
cmp dword [esi], ebx
je 0x45af7f
inc eax
add esi, 4
cmp eax, ecx
jl 0x45af69
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
jmp 0x45afc7
test eax, eax
jl 0x45afbf
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + eax*4]
test ecx, ecx
je 0x45af93
add eax, 0x78
jmp 0x45af98
add eax, 0x80
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c]
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x30]
add ecx, edx
add eax, esi
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
jmp 0x45afc7
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov eax, edx
test ecx, ecx
jne 0x45afd5
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x45b03b
test ecx, ecx
jne 0x45afec
mov edx, dword [esp + 0x30]
mov eax, edi
sub eax, edx
sub eax, 2
push eax
push ecx
jmp 0x45b003
cmp dword [esi + 0xd4], 0xe81b
jne 0x45affc
push 0xfffffffffffffffe
jmp 0x45affe
push 0
mov eax, edi
sub eax, edx
push eax
lea ecx, [esp + 0x34]
push ecx
call ebp
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
sub edx, eax
push 1
push edx
mov edx, dword [esp + 0x3c]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, ebx
call fcn.004c0784
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], 1
test ecx, ecx
je 0x45b047
mov eax, dword [esp + 0x34]
sub eax, edx
jmp 0x45b051
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
sub eax, ecx
lea edi, [edi + eax - 2]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc ecx
cmp ecx, eax
mov dword [esp + 0x18], ecx
jle 0x45af08
mov eax, dword [esp + 0x20]
pop ebp
test eax, eax
pop ebx
je 0x45b07e
mov eax, dword [esi + 0x6c]
or dword [eax + 0xb8], 0xc
pop edi
pop esi
add esp, 0x3c
ret