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

Disassembly:
sub esp, 0x5c
push edi
mov edi, dword [esp + 0x68]
cmp edi, 0xff000000
je 0x45c177
push ebx
push ebp
push esi
lea eax, [esp + 0x24]
xor ebx, ebx
push eax
push ebx
mov dword [esp + 0x2c], ebx
call sub.gdiplus.dll_GdipCreatePath
mov ecx, dword [esp + 0x88]
mov esi, dword [esp + 0x84]
push ebx
lea edx, [ecx + ecx]
push edx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.0045a950
fild dword [esi]
mov edx, dword [esp + 0x88]
add esp, 0x10
fstp dword [esp + 0x4c]
lea ecx, [esp + 0x74]
fild dword [esi + 4]
push ecx
push ebx
push 1
fsub qword [0x4c9e10]
push edx
push edi
lea eax, [esp + 0x60]
fstp dword [esp + 0x64]
push eax
fild dword [esi + 8]
mov dword [esp + 0x8c], ebx
fstp dword [esp + 0x6c]
fild dword [esi + 0xc]
fadd qword [0x4bf628]
fstp dword [esp + 0x70]
call sub.gdiplus.dll_GdipCreateLineBrushFromRect
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
mov edx, dword [ebp]
push ecx
push eax
mov edi, eax
push edx
mov dword [esp + 0x50], edi
call sub.gdiplus.dll_GdipFillPath
cmp eax, ebx
je 0x45bf3a
mov dword [ebp + 4], eax
cmp byte [esp + 0x90], bl
jne 0x45bf81
fld1
lea eax, [esp + 0x2c]
push eax
push ebx
push ecx
fstp dword [esp]
push edi
mov dword [esp + 0x3c], ebx
call sub.gdiplus.dll_GdipCreatePen2
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push ecx
mov dword [esp + 0x34], eax
mov eax, dword [ebp]
push edx
push eax
call sub.gdiplus.dll_GdipDrawPath
cmp eax, ebx
je 0x45bf77
mov dword [ebp + 4], eax
mov ecx, dword [esp + 0x2c]
push ecx
call sub.gdiplus.dll_GdipDeletePen
mov al, byte [esp + 0x8c]
cmp al, bl
je 0x45c0f7
movzx ecx, byte [esp + 0x94]
mov edx, dword [esp + 0x7c]
movzx eax, al
shl ecx, 0x18
and edx, 0xffffff
mov dword [esp + 0x20], eax
shr eax, 1
or ecx, edx
cmp eax, ebx
lea edi, [eax - 1]
jg 0x45bfb9
mov edi, eax
fild dword [esi]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 4]
sub ecx, eax
fstp dword [esp + 0x5c]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
lea eax, [edx + eax*2]
push 1
fstp dword [esp + 0x64]
lea ecx, [esp + 0x1c]
fild dword [esi + 8]
push ecx
mov dword [esp + 0x18], eax
lea edx, [esp + 0x24]
fstp dword [esp + 0x6c]
push edx
fild dword [esp + 0x1c]
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x44]
fstp dword [esp + 0x78]
mov dword [esp + 0x28], ebx
call fcn.004589a0
fld1
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push ecx
push ebx
push ecx
fstp dword [esp]
push edx
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipCreatePen2
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
push eax
push ebx
mov dword [esp + 0x34], ebx
call sub.gdiplus.dll_GdipCreatePath
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add edx, edi
add ecx, edi
mov dword [esp + 0x30], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], ecx
lea ecx, [edi + edi]
mov edx, eax
sub edx, ecx
push 1
mov dword [esp + 0x68], edx
mov edx, dword [esi + 0xc]
push eax
sub edx, ecx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x78], edx
call fcn.0045a950
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp]
add esp, 0x10
push edx
push eax
push ecx
call sub.gdiplus.dll_GdipDrawPath
cmp eax, ebx
je 0x45c097
mov dword [ebp + 4], eax
cmp byte [esp + 0x8c], 1
jbe 0x45c0d5
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
dec edx
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
push ecx
fstp dword [esp]
push eax
call sub.gdiplus.dll_GdipSetPenWidth
cmp eax, ebx
je 0x45c0c4
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
call fcn.00452760
mov eax, dword [esp + 0x2c]
push eax
call sub.gdiplus.dll_GdipDeletePath
mov ecx, dword [esp + 0x10]
push ecx
call sub.gdiplus.dll_GdipDeletePen
mov edx, dword [esp + 0x38]
push edx
call sub.gdiplus.dll_GdipDeleteBrush
mov edi, dword [esp + 0x44]
mov cl, byte [esp + 0x90]
cmp cl, bl
je 0x45c128
movzx edx, byte [esp + 0x94]
mov eax, dword [esp + 0x7c]
and eax, 0xffffff
shl edx, 0x18
or edx, eax
push edx
push esi
movzx eax, cl
push ebx
push eax
push ebp
call fcn.0045ae10
add esp, 0x14
mov eax, dword [esp + 0x80]
cmp eax, ebx
je 0x45c164
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x18], ebx
call sub.gdiplus.dll_GdipCreateSolidFill
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
push edx
push eax
mov esi, eax
mov eax, dword [ebp]
push eax
call sub.gdiplus.dll_GdipFillPath
cmp eax, ebx
je 0x45c15e
mov dword [ebp + 4], eax
push esi
call sub.gdiplus.dll_GdipDeleteBrush
push edi
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x24]
push ecx
call sub.gdiplus.dll_GdipDeletePath
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x5c
ret