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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x612fc7
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
push esi
push edi
mov eax, dword [0x67f864]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
cmp eax, 2
mov dword [esp + 0x48], esi
mov dword [esp + 0x60], eax
je 0x52a9cf
mov eax, dword [esi + 0xc]
mov edi, dword [eax + 4]
mov eax, dword [esi + 8]
mov ecx, dword [edi]
push eax
push ecx
call sub.gdiplus.dll_GdipReleaseDC
test eax, eax
je 0x52a9bd
mov dword [edi + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esi + 8], 0
mov dword [esi + 4], 2
mov dword [esp + 0x4c], eax
mov dword [esp + 0x110], 0
mov cl, byte [ebx + 0xdc]
test cl, 1
je 0x52a9f2
mov edx, dword [esi + 0x78]
mov dword [esp + 0xc], edx
jmp 0x52a9f9
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0xc], eax
mov edx, dword [esi + 0x74]
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x20], edx
call fcn.00530f90
fstp dword [esp + 0x18]
fld dword [ebx + 0x18]
xor ecx, ecx
cmp dword [ebx + 0x108], ecx
fmul dword [esp + 0x18]
setg cl
test byte [ebx + 0xdc], 2
fstp dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
je 0x52aa3c
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x1c], eax
mov ecx, eax
fld dword [esp + 0x18]
neg ecx
fmul qword [0x650cb0]
sbb ecx, ecx
fnstcw word [esp + 0x10]
xor edx, edx
movzx eax, word [esp + 0x10]
or eax, 0xc00
mov dword [esp + 0x18], eax
and ecx, 0xffbfbfc0
fldcw word [esp + 0x18]
add ecx, 0xc0c0c0
xor edi, edi
mov dword [esp + 0x88], vtable.Gdiplus::SolidBrush.0
fistp dword [esp + 0x18]
mov al, byte [esp + 0x18]
mov dh, al
mov dword [esp + 0x18], edi
fldcw word [esp + 0x10]
mov byte [esp + 0x10], al
movzx eax, ch
mov dl, cl
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
mov eax, edx
lea edx, [esp + 0x18]
push edx
push eax
call sub.gdiplus.dll_GdipCreateSolidFill
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x8c], eax
fild dword [0x691460]
movzx eax, byte [esp + 0x10]
lea ecx, [esp + 0x40]
push ecx
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
push edi
push ecx
shl eax, 0x18
mov dword [esp + 0x4c], edi
fstp dword [esp]
push eax
call sub.gdiplus.dll_GdipCreatePen1
mov dword [esp + 0x44], eax
fild dword [0x691460]
movzx eax, byte [esp + 0x10]
lea edx, [esp + 0x50]
push edx
push edi
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
shl eax, 0x18
push ecx
or eax, 0xffffff
mov dword [esp + 0x5c], edi
fstp dword [esp]
push eax
call sub.gdiplus.dll_GdipCreatePen1
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x20]
fild dword [0x691460]
xor ecx, ecx
mov ch, byte [esp + 0x10]
movzx edx, ah
fstp dword [esp + 0x14]
mov cl, al
shr eax, 0x10
movzx eax, al
shl ecx, 8
or ecx, edx
shl ecx, 8
or eax, ecx
fld dword [esp + 0x14]
lea ecx, [esp + 0x58]
push ecx
push edi
push ecx
fstp dword [esp]
push eax
mov dword [esp + 0x68], edi
call sub.gdiplus.dll_GdipCreatePen1
mov dword [esp + 0x5c], eax
mov byte [esp + 0x110], 4
movsx ecx, word [ebx + 0x9e]
mov edx, dword [0x691c78]
lea eax, [ecx + edx]
add eax, dword [0x691c68]
mov edx, dword [0x691464]
mov dword [esp + 0xc8], eax
movsx eax, word [ebx + 0x9c]
lea edi, [eax + edx]
add edi, dword [0x691c74]
mov edx, dword [0x691c64]
add edi, edx
add edx, eax
add edx, dword [0x691460]
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], edx
mov edx, dword [0x691460]
fild dword [esp + 0x6c]
add ecx, edx
movsx edx, word [ebx + 0xa2]
fstp dword [esp + 0x3c]
fild dword [0x691460]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x78], eax
movsx eax, word [ebx + 0xa0]
fadd dword [esp + 0x3c]
mov dword [esp + 0x80], eax
fstp dword [esp + 0x14]
mov dword [esp + 0x84], edx
fld dword [esp + 0x14]
mov dword [esp + 0x68], ecx
fild dword [esp + 0x7c]
mov dword [esp + 0x70], edx
mov edx, dword [esi + 0xc]
mov esi, dword [edx + 4]
fstp dword [esp + 0x20]
lea ecx, [esp + 0x88]
fld dword [esp + 0x20]
push ecx
fxch st(1)
lea eax, [esp + 0x30]
fst dword [esp + 0x30]
fxch st(1)
fst dword [esp + 0x34]
fild dword [esp + 0x84]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fsubrp st(2)
fxch st(1)
fstp dword [esp + 0x38]
fild dword [esp + 0x88]
fstp dword [esp + 0x2c]
fsubr dword [esp + 0x2c]
fstp dword [esp + 0x3c]
call fcn.004cd7f0
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov ch, byte [esp + 0x10]
movzx edx, ah
mov cl, al
shr eax, 0x10
movzx eax, al
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
call sub.gdiplus.dll_GdipSetSolidFillColor
test eax, eax
je 0x52ac9a
mov dword [esp + 0x90], eax
fild dword [esp + 0x64]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov esi, dword [ecx + 4]
fstp dword [esp + 0xc]
lea edx, [esp + 0x88]
fild dword [esp + 0x68]
push edx
fld dword [esp + 0x10]
lea eax, [esp + 0x30]
fst dword [esp + 0x30]
fxch st(1)
fst dword [esp + 0x34]
fld dword [esp + 0x40]
fsubrp st(2)
fxch st(1)
fstp dword [esp + 0x38]
fisubr dword [esp + 0x74]
fstp dword [esp + 0x3c]
call fcn.004cd7f0
fild dword [0x691464]
mov edx, dword [esp + 0x40]
push ecx
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
push edx
call sub.gdiplus.dll_GdipSetPenWidth
test eax, eax
je 0x52ad06
mov dword [esp + 0x44], eax
cmp dword [esp + 0x1c], 0
fild dword [0x691460]
fstp dword [esp + 0x10]
fld dword [esp + 0x3c]
fld st(0)
fld dword [esp + 0x10]
fld st(0)
faddp st(2)
fxch st(1)
fst qword [esp + 0xd4]
fld dword [esp + 0x28]
fsub st(2)
fst qword [esp + 0xdc]
fxch st(1)
fst dword [esp + 0x10]
fld dword [esp + 0x10]
fst qword [esp + 0xe4]
fld dword [esp + 0x20]
fld st(0)
fadd st(5)
fst qword [esp + 0xec]
fld dword [esp + 0x14]
fsubrp st(6)
fxch st(5)
fst qword [esp + 0xf4]
fxch st(5)
fst dword [esp + 0x10]
fld dword [esp + 0x10]
fst qword [esp + 0xfc]
fxch st(7)
fstp qword [esp + 0x94]
fxch st(4)
fst qword [esp + 0x9c]
fxch st(5)
fst qword [esp + 0xa4]
fxch st(5)
fst dword [esp + 0x10]
fld dword [esp + 0x10]
fstp qword [esp + 0xac]
fxch st(5)
fst dword [esp + 0x10]
fld dword [esp + 0x10]
fst qword [esp + 0xb4]
fxch st(2)
fstp qword [esp + 0xbc]
je 0x52ae32
cmp dword [0x691460], 1
fstp st(3)
fstp st(3)
fstp st(0)
fstp st(3)
jle 0x52ae05
fld1
fadd st(2), st(0)
fxch st(2)
fstp qword [esp + 0x9c]
fld qword [esp + 0xac]
fadd st(2)
fstp qword [esp + 0xac]
fxch st(2)
fadd st(1)
fstp qword [esp + 0xa4]
faddp st(1)
fstp qword [esp + 0xb4]
jmp 0x52ae0b
fstp st(2)
fstp st(0)
fstp st(0)
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, 3
lea eax, [esp + 0xdc]
call fcn.004d0e80
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x4c]
push eax
jmp 0x52ae9a
cmp dword [0x691460], 1
fstp st(0)
fstp st(4)
fstp st(3)
jle 0x52ae6d
fld1
fsub st(1), st(0)
fxch st(1)
fstp qword [esp + 0xd4]
fsub st(2), st(0)
fxch st(2)
fstp qword [esp + 0xe4]
fsub st(1)
fstp qword [esp + 0xec]
fsubp st(1)
fstp qword [esp + 0xfc]
jmp 0x52ae75
fstp st(0)
fstp st(0)
fstp st(0)
fstp st(0)
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x4c]
push edx
mov ecx, 3
lea eax, [esp + 0xdc]
call fcn.004d0e80
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, 3
lea eax, [esp + 0x9c]
call fcn.004d0e80
fld dword [esp + 0x20]
fld dword [esp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
fst dword [esp + 0x2c]
mov esi, dword [ecx + 4]
fxch st(1)
fst dword [esp + 0x30]
lea edx, [esp + 0x58]
fld dword [esp + 0x14]
push edx
fsubrp st(2)
lea eax, [esp + 0x30]
fxch st(1)
fstp dword [esp + 0x38]
fsubr dword [esp + 0x2c]
fstp dword [esp + 0x3c]
call fcn.004cd740
fld dword [esp + 0x3c]
lea edx, [esp + 0x58]
fst qword [esp + 0x64]
push edx
fld dword [esp + 0x2c]
lea eax, [esp + 0x4c]
fstp qword [esp + 0x70]
push eax
lea eax, [esp + 0x34]
fstp qword [esp + 0x34]
lea ecx, [esp + 0x6c]
fld dword [esp + 0x28]
fstp qword [esp + 0x3c]
call fcn.004cfb30
cmp dword [esp + 0x1c], 0
je 0x52af30
mov eax, dword [0x691460]
add edi, eax
add dword [esp + 0xc8], eax
cmp word [ebx + 0x6e], 0
jle 0x52af5e
movzx ecx, byte [ebx + 0x72]
mov al, byte [ebx + 0x70]
sub cl, 1
xor edx, edx
mov dh, cl
movzx ecx, byte [ebx + 0x6e]
sub al, 1
sub cl, 1
mov dl, al
movzx eax, cl
shl edx, 8
or edx, eax
mov dword [esp + 0x1c], edx
jmp 0x52af66
mov dword [esp + 0x1c], 0x10000
test byte [ebx + 0xdc], 0xc
je 0x52af7b
mov eax, dword [ebp + 8]
lea esi, [esp + 0x1c]
call fcn.0052a360
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
cmp eax, 1
mov dword [esp + 0x28], eax
je 0x52afc2
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 4]
lea edx, [esp + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [eax]
push edx
push eax
mov dword [esp + 0x14], 0
call sub.gdiplus.dll_GdipGetDC
test eax, eax
je 0x52afb4
mov ecx, dword [esp + 0x20]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0xc]
mov dword [esi + 8], edx
mov dword [esi + 4], 1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebx + 0x10]
mov cl, byte [ebx + 0xdc]
call fcn.00530f90
mov edx, dword [esp + 0xc8]
push ecx
fstp dword [esp]
push 0
push edx
push edi
mov edi, dword [ebp + 8]
mov esi, ebx
call fcn.004593b0
mov eax, dword [esp + 0x38]
push eax
mov esi, edi
call fcn.004db6d0
add esp, 0x14
test byte [ebx + 0xdc], 0x41
je 0x52b140
mov eax, dword [edi + 0x78]
fld dword [0x650cb8]
lea ecx, [esp + 0x20]
push ecx
movzx edx, al
push 0
push ecx
or edx, 0xffffff00
movzx ecx, ah
fstp dword [esp]
shl edx, 8
shr eax, 0x10
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
push edx
mov dword [esp + 0x30], 0
call sub.gdiplus.dll_GdipCreatePen1
test byte [ebx + 0xdc], 1
mov ecx, 2
mov dword [esp + 0x24], eax
mov eax, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], eax
jne 0x52b0cb
mov eax, dword [edi + 0x7c]
movzx ecx, al
or ecx, 0xffffff00
movzx edx, ah
shl ecx, 8
or ecx, edx
shr eax, 0x10
movzx eax, al
shl ecx, 8
or ecx, eax
push ecx
mov ecx, dword [esp + 0x24]
push ecx
call sub.gdiplus.dll_GdipSetPenColor
test eax, eax
je 0x52b0a0
mov dword [esp + 0x24], eax
fld dword [0x62c59c]
mov edx, dword [esp + 0x20]
push ecx
fstp dword [esp]
push edx
call sub.gdiplus.dll_GdipSetPenWidth
test eax, eax
je 0x52b0bc
mov dword [esp + 0x24], eax
mov eax, 3
mov ecx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], ecx
fild dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
sub edx, ecx
mov ecx, dword [esp + 0x84]
fisub dword [esp + 0xc]
add eax, ecx
mov ecx, dword [edi + 0xc]
mov esi, dword [ecx + 4]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
lea edx, [esp + 0x20]
fxch st(1)
push edx
fst dword [esp + 0x30]
fxch st(1)
fst dword [esp + 0x34]
fild dword [esp + 0x20]
fadd dword [esp + 0x18]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
mov dword [esp + 0x10], eax
fsubrp st(2)
lea eax, [esp + 0x30]
fxch st(1)
fstp dword [esp + 0x38]
fisubr dword [esp + 0x10]
fstp dword [esp + 0x3c]
call fcn.004cd740
mov edx, dword [esp + 0x20]
push edx
call sub.gdiplus.dll_GdipDeletePen
mov eax, dword [esp + 0x58]
push eax
call sub.gdiplus.dll_GdipDeletePen
mov ecx, dword [esp + 0x50]
push ecx
call sub.gdiplus.dll_GdipDeletePen
mov edx, dword [esp + 0x40]
push edx
call sub.gdiplus.dll_GdipDeletePen
mov eax, dword [esp + 0x18]
push eax
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x60]
push ecx
mov esi, edi
call fcn.004db6d0
add esp, 4
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret