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

Disassembly:
push 0xffffffffffffffff
push 0x5ee5e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x4c]
call fcn.005c4d97
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.005ade10
mov ebp, dword [esp + 0x10]
cmp dword [ebp - 0xc], ebx
mov byte [esp + 0x64], 1
je 0x5ae41e
mov ecx, esi
call fcn.005ac930
push eax
lea ecx, [esp + 0x4c]
call fcn.005c503c
mov edx, dword [esp + 0x48]
push 0x420
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0xc]
push eax
push ebp
lea ecx, [esp + 0x58]
call dword [edx + 0x68]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.005ac9c0
cmp dword [esp + 0x70], ebx
je 0x5ae252
mov ecx, esi
call fcn.005bdd80
test ah, 0x20
je 0x5ae410
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
neg ecx
push ecx
neg eax
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edi, dword [sym.imp.USER32.dll_EqualRect]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov eax, dword [ebp - 0xc]
push 0x410
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x54]
push ebp
lea ecx, [esp + 0x58]
call dword [eax + 0x68]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
sub ecx, eax
mov dword [esp + 0x70], ecx
fild dword [esp + 0x70]
sub edx, ebx
mov dword [esp + 0x70], edx
fild dword [esp + 0x70]
lea eax, [esp + 0x28]
fld st(1)
push eax
lea ecx, [esp + 0x3c]
fdiv st(1)
push ecx
fstp dword [esp + 0x78]
fdiv st(1)
fstp dword [esp + 0x1c]
fstp st(0)
call edi
test eax, eax
jne 0x5ae410
fld dword [esp + 0x70]
fcomp dword [str.ff__n]
fnstsw ax
test ah, 5
jp 0x5ae1e8
fld dword [esp + 0x14]
fcomp dword [0x5f24a0]
fnstsw ax
test ah, 5
jnp 0x5ae410
fld dword [esp + 0x70]
mov eax, dword [esp + 0x2c]
fcomp dword [0x5f2484]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
fnstsw ax
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], esi
test ah, 1
mov dword [esp + 0x44], ecx
jne 0x5ae23a
mov ecx, esi
sub ecx, edx
mov eax, 0x55555555
imul ecx
sub edx, ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
add esi, eax
mov dword [esp + 0x30], esi
jmp 0x5ae160
mov eax, esi
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
add esi, eax
mov dword [esp + 0x30], esi
jmp 0x5ae160
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call dword [eax + 0x140]
mov edx, dword [eax]
mov edi, dword [esp + 0x40]
mov eax, dword [esi]
lea ecx, [esp + 0x20]
sub edi, edx
push ecx
mov ecx, esi
mov dword [esp + 0x44], edi
call dword [eax + 0x140]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x44]
mov ecx, dword [esi + 0x208]
sub eax, edx
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x20c]
push eax
push ecx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov edi, dword [esp + 0x14]
cmp edi, ebx
mov ebx, dword [esp + 0x18]
je 0x5ae337
test ebx, ebx
je 0x5ae337
mov ecx, esi
call fcn.005bdd80
and eax, 0xc00
je 0x5ae2e4
cmp eax, 0x400
je 0x5ae306
cmp eax, 0x800
je 0x5ae306
cmp eax, 0xc00
jne 0x5ae337
mov ecx, dword [esi + 0x200]
mov edx, dword [esi + 0x208]
mov eax, dword [esp + 0x40]
shl ecx, 1
sub ecx, edx
sub ecx, edi
add eax, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x40], eax
jmp 0x5ae328
mov eax, dword [esi + 0x204]
mov edx, dword [esi + 0x20c]
shl eax, 1
mov ecx, eax
mov eax, dword [esp + 0x44]
sub ecx, edx
sub ecx, ebx
add eax, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x44], eax
cmp eax, ecx
jge 0x5ae337
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, esi
call fcn.005bdd80
test ah, 0x20
je 0x5ae37d
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], ecx
push 0x410
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp - 0xc]
push eax
push ebp
lea ecx, [esp + 0x58]
call dword [edx + 0x68]
test edi, edi
je 0x5ae410
test ebx, ebx
je 0x5ae410
mov ecx, esi
call fcn.005bdd80
and eax, 0xc00
je 0x5ae3b0
cmp eax, 0x400
je 0x5ae3dc
cmp eax, 0x800
je 0x5ae3dc
cmp eax, 0xc00
jne 0x5ae406
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
sub eax, ebx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
sub eax, edi
sub ecx, esi
cmp eax, ecx
jge 0x5ae402
mov dword [esp + 0x34], eax
jmp 0x5ae406
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
sub ecx, dword [esp + 0x28]
sub eax, edi
cmp ecx, eax
mov dword [esp + 0x30], ecx
jl 0x5ae3fa
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
mov dword [esp + 0x34], ecx
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x4c]
call fcn.005c503c
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
sub ecx, esi
mov esi, dword [esp + 0x6c]
sub eax, edi
mov dword [esi + 4], eax
lea eax, [ebp - 0x10]
mov dword [esi], ecx
mov byte [esp + 0x64], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5ae45a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.005c4df2
mov ecx, dword [esp + 0x5c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 8