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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a0690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
mov ebx, ecx
push esi
lea eax, [esp + 0x54]
mov ecx, dword [ebx + 0x1c]
push edi
push eax
push ecx
call dword [0x5e91ac]
mov edi, dword [esp + 0x64]
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
sub edi, esi
lea esi, [ebx + 0x68]
sub eax, edx
mov dword [esp + 0x1c], edi
test esi, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], esi
je 0x5286b4
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x528894
lea ecx, [esp + 0x48]
call fcn.0055ad94
mov ebx, dword [ebp + 8]
mov dword [esp + 0x80], 0
test ebx, ebx
jne 0x5286d3
xor eax, eax
jmp 0x5286d6
mov eax, dword [ebx + 4]
push eax
call dword [0x5e9528]
push eax
lea ecx, [esp + 0x4c]
call fcn.0055ae4b
test eax, eax
je 0x52887a
mov edx, dword [esp + 0xc]
mov eax, dword [ebx + 4]
push edi
push edx
push eax
call dword [0x5e954c]
push eax
mov ecx, esi
call fcn.0055ba92
test eax, eax
je 0x52887a
test esi, esi
jne 0x528717
xor eax, eax
jmp 0x52871a
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
call fcn.0055afc4
mov ecx, dword [0x603868]
xor ebx, ebx
cmp ecx, 8
mov dword [esp + 0x28], eax
setle bl
dec ebx
mov dword [esp + 0x10], 0
and ebx, 0xfffffffd
add ebx, 4
test edi, edi
jle 0x528865
mov eax, ebx
mov dword [esp + 0x14], edi
neg eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0xc]
xor esi, esi
test ecx, ecx
mov dword [esp + 0x18], esi
jle 0x528841
fild dword [esp + 0x10]
mov edi, dword [esp + 0x14]
sub edi, ebx
fidiv dword [esp + 0x1c]
fstp qword [esp + 0x34]
fild dword [esp + 0xc]
fstp qword [esp + 0x3c]
fild dword [esp + 0x18]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
push eax
fdiv qword [esp + 0x44]
push 0x3fe00000
push 0
sub esp, 8
fstp qword [esp]
call fcn.00505b50
mov ecx, dword [0x603868]
add esp, 0x18
cmp ecx, 8
push eax
jle 0x5287c8
mov ecx, dword [esp + 0x50]
push edi
push esi
push ecx
call dword [0x5e9630]
jmp 0x528827
lea ecx, [esp + 0x30]
call fcn.0055bb4f
lea eax, [edi + ebx]
lea edx, [esi + ebx]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x2c]
neg eax
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x30]
sbb eax, eax
lea ecx, [esp + 0x68]
and eax, edx
mov edx, dword [esp + 0x4c]
push eax
push ecx
push edx
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], edi
call dword [0x5e926c]
mov dword [esp + 0x2c], vtable.CGdiObject.0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 1
call fcn.0055bae9
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0xc]
add esi, ebx
cmp esi, eax
mov dword [esp + 0x18], esi
jl 0x528786
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
add ecx, ebx
add esi, eax
cmp ecx, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
jl 0x52875a
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x52886c
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x50]
push eax
call fcn.0055afc4
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x48]
mov dword [esp + 0x80], 0xffffffff
call fcn.0055aec9
mov eax, dword [esp + 0xc]
jmp 0x528897
mov ebx, dword [ebp + 8]
test esi, esi
je 0x52889e
mov esi, dword [esi + 4]
mov ecx, dword [ebx + 4]
push 4
push edi
push eax
push 0
push 0
push 0
push esi
push 0
push 0
push ecx
call dword [0x5e943c]
mov ecx, dword [esp + 0x78]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4