Function at 0x4173d0
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 0x417400
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea esi, [esp + 0x18]
call fcn.00409700
cmp eax, edi
jge 0x41741a
cmp eax, 0x80004002
je 0x41741a
push eax
call fcn.004a91a0
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x41742c
push 0x80004003
call fcn.004a91a0
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 0x41749f
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x20], edi
cmp eax, edi
jne 0x417485
push 0x80004003
call fcn.004a91a0
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 0x4174d2
mov edx, dword [esp + 0x38]
push 1
push edx
call sub.gdiplus.dll_GdipSetPenDashStyle
cmp eax, edi
je 0x4174d2
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 0x41755b
lea edi, [esi + 1]
cmp ecx, edi
je 0x41755b
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.00417b40
jmp 0x417588
lea edi, [edx + 1]
cmp eax, edi
jne 0x417564
mov eax, edx
lea edi, [esi + 1]
cmp ecx, edi
jne 0x41756d
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 0x417588
mov dword [esp + 0x44], eax
cmp dword [ebx + 0x10], 0
je 0x41783b
mov ecx, dword [ebx + 0xc]
cmp dword [ecx - 0xc], 0
je 0x41783b
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4175b0
push 0x80004003
call fcn.004a91a0
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.00417ab0
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 0x417606
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
push 0
push eax
call sub.gdiplus.dll_GdipSetStringFormatAlign
test eax, eax
je 0x41761a
mov dword [esp + 0x34], eax
fldz
mov eax, dword [ebx + 0xc]
fst dword [esp + 0x8c]
lea ecx, [esp + 0x80]
fst dword [esp + 0x88]
push ecx
fst dword [esp + 0x88]
lea ecx, [esp + 0x34]
fstp dword [esp + 0x84]
lea esi, [esp + 0x44]
mov edx, dword [eax - 0xc]
push edx
push eax
lea eax, [esp + 0x30]
lea edx, [esp + 0x54]
call fcn.00417a10
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edx, 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], ecx
fstp dword [esp + 0x50]
xor esi, esi
fild dword [esp + 0x74]
mov dword [esp + 0x78], edx
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 0x54]
fld dword [esp + 0x88]
fadd qword [0x4c54d8]
fstp dword [esp + 0x58]
fld dword [esp + 0x8c]
fstp dword [esp + 0x5c]
cmp eax, esi
jne 0x4176c7
push 0x80004003
call fcn.004a91a0
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0x20], esi
call eax
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x2c], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x18], esi
call sub.gdiplus.dll_GdipCreateSolidFill
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], eax
push ecx
lea eax, [esp + 0x54]
lea esi, [esp + 0x44]
call fcn.00409870
mov edx, dword [esp + 0x28]
push edx
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [ebx + 0x10]
xor esi, esi
cmp eax, esi
jne 0x41772e
push 0x80004003
call fcn.004a91a0
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0x20], esi
call eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
cmp eax, esi
jne 0x417758
push 0x80004003
call fcn.004a91a0
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x18], esi
call edx
mov eax, dword [ebx + 0x10]
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x41777e
push 0x80004003
call fcn.004a91a0
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