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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
push esi
push edi
push ecx
xor edi, edi
mov ecx, esp
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], esp
mov dword [ecx], eax
cmp eax, edi
je 0x481f60
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea esi, [esp + 0x18]
call fcn.00474ad0
cmp eax, edi
jge 0x481f7a
cmp eax, 0x80004002
je 0x481f7a
push eax
call fcn.0053d640
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x481f8c
push 0x80004003
call fcn.0053d640
mov ecx, dword [eax]
lea edx, [esp + 0x60]
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], edi
call sub.gdiplus.dll_GdipCreateFromHDC
fldz
mov dword [esp + 0x44], eax
fst dword [esp + 0x5c]
mov eax, dword [esp + 0x10]
fst dword [esp + 0x58]
mov dword [esp + 0x40], eax
fst dword [esp + 0x54]
mov eax, dword [ebx + 0x2c]
fstp dword [esp + 0x50]
cmp eax, edi
jne 0x481fff
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x20], edi
cmp eax, edi
jne 0x481fe5
push 0x80004003
call fcn.0053d640
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x24], edi
call eax
mov eax, dword [esp + 0x18]
fld1
lea ecx, [esp + 0x38]
push ecx
push edi
push ecx
fstp dword [esp]
push eax
mov dword [esp + 0x48], edi
call sub.gdiplus.dll_GdipCreatePen1
mov dword [esp + 0x3c], eax
cmp dword [ebx + 0x24], edi
jne 0x482032
mov edx, dword [esp + 0x38]
push 1
push edx
call sub.gdiplus.dll_GdipSetPenDashStyle
cmp eax, edi
je 0x482032
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
add edx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x14]
mov ecx, dword [esp + 0x68]
add esi, dword [esp + 0x60]
add ecx, dword [ebx + 0x1c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x6c]
add eax, dword [ebx + 0x20]
lea edi, [edx + 1]
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], edx
cmp eax, edi
je 0x4820bb
lea edi, [esi + 1]
cmp ecx, edi
je 0x4820bb
fild dword [esp + 0x80]
sub ecx, esi
mov dword [esp + 0x20], ecx
sub eax, edx
fstp dword [esp + 0x50]
lea ecx, [esp + 0x38]
fild dword [esp + 0x84]
push ecx
lea esi, [esp + 0x44]
fstp dword [esp + 0x58]
fild dword [esp + 0x24]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x54]
fstp dword [esp + 0x5c]
fild dword [esp + 0x24]
fstp dword [esp + 0x60]
call fcn.00482730
jmp 0x4820e8
lea edi, [edx + 1]
cmp eax, edi
jne 0x4820c4
mov eax, edx
lea edi, [esi + 1]
cmp ecx, edi
jne 0x4820cd
mov ecx, esi
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
mov edx, dword [esp + 0x44]
push esi
push edx
push eax
call sub.gdiplus.dll_GdipDrawLineI
test eax, eax
je 0x4820e8
mov dword [esp + 0x44], eax
cmp dword [ebx + 0x10], 0
je 0x48239c
mov ecx, dword [ebx + 0xc]
cmp dword [ecx - 0xc], 0
je 0x48239c
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x482110
push 0x80004003
call fcn.0053d640
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
lea ecx, [esp + 0x20]
push ecx
push eax
call edx
mov eax, dword [esp + 0x20]
mov edi, dword [ebp + 0xc]
push eax
lea esi, [esp + 0x4c]
call fcn.004826a0
fldz
lea ecx, [esp + 0x30]
fst dword [esp + 0x24]
push ecx
fstp dword [esp + 0x2c]
push 0
push 0
mov dword [esp + 0x3c], 0
call sub.gdiplus.dll_GdipCreateStringFormat
mov edx, dword [esp + 0x30]
push 0
push edx
mov dword [esp + 0x3c], eax
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
test eax, eax
je 0x482166
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
push 0
push eax
call sub.gdiplus.dll_GdipSetStringFormatAlign
test eax, eax
je 0x48217a
mov dword [esp + 0x34], eax
fldz
mov eax, dword [ebx + 0xc]
fst dword [esp + 0x8c]
lea ecx, [esp + 0x80]
push ecx
fst dword [esp + 0x8c]
fst dword [esp + 0x88]
lea edx, [esp + 0x4c]
fstp dword [esp + 0x84]
push edx
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x40]
lea eax, [esp + 0x34]
lea esi, [esp + 0x50]
call fcn.004825f0
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
add eax, 9
mov dword [esp + 0x70], eax
fild dword [esp + 0x70]
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x74], edx
fstp dword [esp + 0x50]
xor esi, esi
fild dword [esp + 0x74]
mov dword [esp + 0x78], ecx
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 0x54]
fld dword [esp + 0x88]
fadd qword [0x59a478]
fstp dword [esp + 0x58]
fld dword [esp + 0x8c]
fstp dword [esp + 0x5c]
cmp eax, esi
jne 0x482228
push 0x80004003
call fcn.0053d640
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], esi
call edx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x2c], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x18], esi
call sub.gdiplus.dll_GdipCreateSolidFill
mov edx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x54]
lea esi, [esp + 0x44]
mov dword [esp + 0x2c], edx
call fcn.00474db0
mov ecx, dword [esp + 0x28]
push ecx
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [ebx + 0x10]
xor esi, esi
cmp eax, esi
jne 0x48228f
push 0x80004003
call fcn.0053d640
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], esi
call edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x10]
cmp eax, esi
jne 0x4822b9
push 0x80004003
call fcn.0053d640
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0x18], esi
call eax
mov eax, dword [ebx + 0x10]
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x4822df
push 0x80004003
call fcn.0053d640
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0x28], 0
call eax
add dword [esp + 0x70], 3
fild dword [esp + 0x70]
movzx edx, byte [esp + 0x20]
sub edi, dword [esp + 0x74]
fstp dword [esp + 0x50]
lea ecx, [esp + 0x1c]
fld dword [esp + 0x1c]
push ecx
or edx, 0xffffff00
fstp dword [esp + 0x58]
mov eax, esi
shr eax, 8
movzx ecx, al
mov eax, dword [esp + 0x28]
shl edx, 8
or edx, ecx
mov dword [esp + 0x20], edi
shr eax, 0x10
fild dword [esp + 0x20]
movzx ecx, al
shl edx, 8
fstp dword [esp + 0x60]
fld dword [esp + 0x8c]
or edx, ecx
push edx
fstp dword [esp + 0x60]
mov dword [esp + 0x24], 0
call sub.gdiplus.dll_GdipCreateSolidFill
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
mov ebx, dword [ebx + 0xc]
mov ecx, dword [ebx - 0xc]
mov edi, dword [esp + 0x48]
push eax
push edx
mov esi, eax
lea eax, [esp + 0x58]
push eax
push edi
push ecx
mov ecx, dword [esp + 0x54]
push ebx
push ecx
call sub.gdiplus.dll_GdipDrawString
push esi
call sub.gdiplus.dll_GdipDeleteBrush
mov edx, dword [esp + 0x30]
push edx
call sub.gdiplus.dll_GdipDeleteStringFormat
push edi
call sub.gdiplus.dll_GdipDeleteFont
mov eax, dword [esp + 0x38]
push eax
call sub.gdiplus.dll_GdipDeletePen
mov ecx, dword [esp + 0x40]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc