Function at 0x451791
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]
push esi
push edi
lea eax, [ebx + 8]
lea edi, [esp + 0x54]
call fcn.00451b64
mov eax, dword [esp + 0x54]
xor edi, edi
cmp eax, edi
jne 0x4517c3
push 0x80004003
call fcn.004f1760
mov ecx, dword [eax]
lea edx, [esp + 0x80]
push edx
push eax
call dword [ecx + 0x40]
push dword [ebp + 0xc]
lea esi, [esp + 0x38]
call fcn.00451f54
fldz
mov eax, dword [ebx + 0x2c]
fst dword [esp + 0x48]
fst dword [esp + 0x44]
fst dword [esp + 0x40]
fstp dword [esp + 0x3c]
cmp eax, edi
jne 0x451819
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x18], edi
cmp eax, edi
je 0x4517b9
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x28], edi
call dword [ecx + 0x34]
mov eax, dword [esp + 0x1c]
fld1
mov dword [esp + 0x18], eax
push ecx
fstp dword [esp]
lea eax, [esp + 0x1c]
lea esi, [esp + 0x50]
call fcn.00451f2b
cmp dword [ebx + 0x24], edi
jne 0x451848
push 1
push dword [esp + 0x50]
call sub.gdiplus.dll_GdipSetPenDashStyle
cmp eax, edi
je 0x451848
mov dword [esp + 0x50], eax
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x14]
add eax, dword [esp + 0x80]
lea esi, [esp + 0x80]
lea edi, [esp + 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x28]
add ecx, dword [ebx + 0x18]
mov edx, dword [esp + 0x30]
add edx, dword [ebx + 0x20]
lea esi, [ecx + 1]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
cmp edx, esi
je 0x4518b7
lea edi, [eax + 1]
cmp dword [esp + 0x2c], edi
je 0x4518b3
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x24]
call fcn.00451755
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x40]
lea esi, [esp + 0x38]
call fcn.00451eae
jmp 0x4518da
cmp edx, esi
jne 0x4518b9
mov edx, ecx
lea esi, [eax + 1]
cmp dword [esp + 0x2c], esi
jne 0x4518c6
mov dword [esp + 0x2c], eax
push edx
push dword [esp + 0x30]
lea esi, [esp + 0x3c]
push ecx
push eax
lea eax, [esp + 0x5c]
call fcn.00451f04
cmp dword [ebx + 0x10], 0
je 0x451aeb
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], 0
je 0x451aeb
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4517b9
call fcn.00451e3d
mov edi, dword [ebp + 0xc]
push eax
lea esi, [esp + 0x7c]
call fcn.00451e50
lea eax, [esp + 0x1c]
xor esi, esi
push eax
push esi
push esi
mov dword [esp + 0x28], esi
call sub.gdiplus.dll_GdipCreateStringFormat
push esi
push dword [esp + 0x20]
mov dword [esp + 0x28], eax
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, esi
je 0x451936
mov dword [esp + 0x20], eax
push esi
push dword [esp + 0x20]
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, esi
je 0x451948
mov dword [esp + 0x20], eax
fldz
mov eax, dword [ebx + 0xc]
push esi
fst dword [esp + 0x78]
push esi
fst dword [esp + 0x78]
lea edx, [esp + 0x70]
fst dword [esp + 0x74]
push edx
fst dword [esp + 0x74]
push dword [esp + 0x28]
fst dword [esp + 0x68]
mov ecx, dword [eax - 0xc]
fst dword [esp + 0x6c]
lea edx, [esp + 0x68]
fst dword [esp + 0x70]
push edx
fstp dword [esp + 0x78]
push dword [esp + 0x8c]
push ecx
push eax
push dword [esp + 0x54]
call sub.gdiplus.dll_GdipMeasureString
cmp eax, esi
je 0x45199a
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x80]
lea esi, [esp + 0x80]
lea edi, [esp + 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add eax, 9
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x58]
call fcn.00451755
mov eax, dword [ebx + 0x10]
fld dword [esp + 0x70]
fadd qword [0x55a1a8]
fstp dword [esp + 0x44]
fld dword [esp + 0x74]
fstp dword [esp + 0x48]
test eax, eax
je 0x4517b9
call fcn.00451d3f
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
lea esi, [esp + 0x24]
call fcn.00451da8
push eax
lea eax, [esp + 0x40]
lea esi, [esp + 0x38]
call fcn.00451dd6
push dword [esp + 0x28]
mov dword [esp + 0x28], vtable.Gdiplus::Brush.0
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4517b9
mov edi, eax
test edi, edi
je 0x4517b9
mov esi, edi
test esi, esi
je 0x4517b9
call fcn.00451d19
shr eax, 0x10
mov byte [esp + 0xc], al
mov eax, edi
call fcn.00451d19
shr eax, 8
mov byte [esp + 0x10], al
mov eax, esi
call fcn.00451d19
add dword [esp + 0x58], 3
mov byte [esp + 0x14], al
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x58]
call fcn.00451755
fld dword [esp + 0x70]
movzx eax, byte [esp + 0x14]
fstp dword [esp + 0x44]
movzx ecx, byte [esp + 0x10]
mov ebx, dword [ebx + 0xc]
mov edi, dword [ebx - 0xc]
or eax, 0xffffff00
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0xc]
shl eax, 8
or eax, ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
lea esi, [esp + 0x24]
call fcn.00451da8
lea ecx, [esp + 0x3c]
push ecx
push edi
push ebx
lea ecx, [esp + 0x28]
lea edi, [esp + 0x84]
lea esi, [esp + 0x40]
call fcn.00451cd5
push dword [esp + 0x28]
mov dword [esp + 0x28], vtable.Gdiplus::Brush.0
call sub.gdiplus.dll_GdipDeleteBrush
push dword [esp + 0x1c]
call sub.gdiplus.dll_GdipDeleteStringFormat
push dword [esp + 0x78]
call sub.gdiplus.dll_GdipDeleteFont
push dword [esp + 0x4c]
call sub.gdiplus.dll_GdipDeletePen
push dword [esp + 0x34]
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc