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

Disassembly:
sub esp, 0x1e8
push ebx
push ebp
mov ebp, dword [esp + 0x1f4]
push esi
push edi
mov esi, eax
xor edi, edi
cmp dword [esi + 0xb0], edi
jne 0x5a5853
push esi
call fcn.005c0310
mov eax, dword [esi + 0xb0]
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x5a5caa
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], edi
call sub.gdiplus.dll_GdipGetPointCount
cmp eax, edi
je 0x5a587e
mov dword [ebp + 0x10], eax
cmp dword [esp + 0x14], edi
setne al
test al, al
mov byte [esp + 0x13], al
je 0x5a5894
mov eax, ebp
call fcn.004dfa90
mov edx, dword [ebp + 0x4d7]
push edx
lea eax, [esi + 4]
push eax
lea eax, [ebp + 0x3c3]
push eax
call fcn.004dfb00
fld dword [ebp + 0x3ab]
mov eax, dword [ebp + 0x3af]
fstp dword [esp + 0xd8]
fldz
mov ecx, dword [ebp + 0x3a7]
mov dword [esp + 0xbc], eax
fstp dword [esp + 0xdc]
mov dword [esp + 0xc0], eax
mov eax, dword [ebp + 0x3b3]
cmp eax, 5
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], edi
mov dword [esp + 0xd4], edi
jne 0x5a5973
mov edi, dword [ebp + 0x3bb]
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0069c0de
mov ebx, eax
add esp, 4
xor eax, eax
test edi, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
jbe 0x5a595a
lea ebx, [ebx]
mov ecx, dword [ebp + 0x3b7]
fld dword [ecx + eax*4]
add eax, 1
cmp eax, edi
fdiv dword [ebp + 0x3a2]
fstp dword [ebx + eax*4 - 4]
jb 0x5a5940
lea eax, [esp + 0x20]
lea ecx, [esp + 0xbc]
call fcn.00498600
push ebx
call fcn.0069c8fa
add esp, 4
mov edx, dword [ebp + 0x4d7]
push edx
lea eax, [esi + 8]
push eax
lea eax, [ebp + 0x28e]
push eax
call fcn.004dfb00
mov ecx, dword [esi + 0x5c]
lea ebx, [ebp + 0x4e7]
push ecx
mov eax, ebx
call fcn.00407030
mov edi, dword [esp + 0x18]
add edi, 0xc
push edi
mov eax, ebx
mov dword [esp + 0x6c], edi
call fcn.00407030
fldz
fst dword [esp + 0x85]
xor eax, eax
fst dword [esp + 0x9c]
push ebx
fst dword [esp + 0xa4]
mov dword [esp + 0x74], eax
fld dword [0x723e00]
mov dword [esp + 0x78], eax
fst dword [esp + 0xa8]
mov dword [esp + 0x7c], eax
fstp dword [esp + 0xac]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov byte [esp + 0x88], al
fst dword [esp + 0x1c]
fstp dword [esp + 0x18]
call fcn.004eecf0
mov ebx, dword [ebp + 0x703]
fstp dword [esp + 0x6c]
test ebx, ebx
je 0x5a5c7a
mov dword [esp + 0x20], 0
mov byte [esp + 0x24], 0xff
jmp 0x5a5a34
mov edi, dword [esp + 0x68]
lea eax, [esi + 0x1c]
push eax
mov eax, dword [esi + 0x5c]
call fcn.0049d480
mov ecx, dword [esi + 0x5c]
lea eax, [ebp + 0x24c]
call fcn.0049d500
lea eax, [ebx + 0x4e7]
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push edi
lea edi, [esp + 0x80]
lea eax, [esp + 0xac]
call fcn.005103c0
fld dword [ebx + 0x6ef]
mov eax, dword [ebp + 0x6ff]
fld dword [esp + 0x14]
sub eax, 1
je 0x5a5a91
sub eax, 1
jne 0x5a5a9b
fsubp st(1)
jmp 0x5a5a9d
fmul dword [0x6bf9f0]
fsubp st(1)
jmp 0x5a5a9d
fstp st(0)
fld1
mov ecx, dword [esi + 0x5c]
fst dword [esp + 0x28]
lea eax, [esp + 0x28]
fldz
fst dword [esp + 0x2c]
fst dword [esp + 0x30]
fst dword [esp + 0x34]
fst dword [esp + 0x38]
fst dword [esp + 0x40]
fst dword [esp + 0x44]
fst dword [esp + 0x48]
fst dword [esp + 0x4c]
fst dword [esp + 0x54]
fstp dword [esp + 0x60]
fst dword [esp + 0x3c]
fst dword [esp + 0x50]
fstp dword [esp + 0x64]
fstp dword [esp + 0x58]
fld dword [esp + 0x18]
fsub dword [esp + 0x6c]
fadd dword [ebx + 0x6f3]
fstp dword [esp + 0x5c]
call fcn.0049d500
fld1
push ecx
fst dword [esp + 0x2c]
lea eax, [esp + 0x2c]
fldz
fst dword [esp + 0x30]
fst dword [esp + 0x34]
fst dword [esp + 0x38]
fst dword [esp + 0x3c]
fst dword [esp + 0x44]
fst dword [esp + 0x48]
fst dword [esp + 0x4c]
fst dword [esp + 0x50]
fst dword [esp + 0x58]
fst dword [esp + 0x5c]
fst dword [esp + 0x60]
fstp dword [esp + 0x64]
fst dword [esp + 0x40]
fst dword [esp + 0x54]
fstp dword [esp + 0x68]
fld dword [ebx + 0x6f7]
fmul dword [0x723778]
fstp dword [esp]
call fcn.00555570
mov ecx, dword [esi + 0x5c]
lea eax, [esp + 0x28]
call fcn.0049d500
lea ecx, [esp + 0x20]
lea eax, [esp + 0xe0]
mov dword [esp + 0x1c], 0
call fcn.0049e5d0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xe8]
push edx
call fcn.004dfb00
mov eax, dword [esi + 8]
test eax, eax
je 0x5a5bfd
mov ecx, dword [esi + 4]
test ecx, ecx
mov edi, dword [esp + 0x1c]
jne 0x5a5ba4
mov ecx, edi
fldz
mov edx, dword [esi + 0x5c]
fstp dword [esp + 0xac]
push ecx
fld dword [esp + 0x1c]
fchs
fstp dword [esp + 0xb4]
fld dword [esp + 0x18]
fstp dword [esp + 0xb8]
fld dword [0x723dfc]
fstp dword [esp + 0xbc]
fld dword [ebp + 0x3a2]
fstp dword [esp]
push ecx
push eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0xbc]
push ecx
lea eax, [ebx + 0x4e7]
push eax
push edx
call fcn.0050f830
jmp 0x5a5c56
mov eax, dword [esi + 4]
test eax, eax
jne 0x5a5c08
mov eax, dword [esp + 0x1c]
fldz
push eax
fstp dword [esp + 0x90]
lea eax, [ebx + 0x4e7]
fld dword [esp + 0x1c]
push eax
mov eax, dword [esi + 0x5c]
fchs
fstp dword [esp + 0x98]
push eax
fld dword [esp + 0x20]
lea edi, [esp + 0x7c]
fstp dword [esp + 0xa0]
lea eax, [esp + 0x98]
fld dword [0x723dfc]
fstp dword [esp + 0xa4]
call fcn.0050f6a0
mov edi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x5c]
lea eax, [esi + 0x1c]
call fcn.0049d410
test edi, edi
je 0x5a5c6f
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x5a5a30
cmp byte [esp + 0x13], 0
je 0x5a5c9a
mov esi, dword [esi + 0x5c]
mov esi, dword [esi + 0x48]
test esi, esi
je 0x5a5c9a
mov ecx, dword [esi]
push ecx
call sub.gdiplus.dll_GdipResetClip
test eax, eax
je 0x5a5c9a
mov dword [esi + 4], eax
mov edx, dword [esp + 0xd0]
push edx
call fcn.0069c8fa
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1e8
ret 4