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

Disassembly:
sub esp, 0x204
push ebx
mov ebx, dword [esp + 0x20c]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
lea esi, [esp + 0x170]
mov edi, eax
call fcn.004062c0
mov eax, esi
mov dword [esp + 0x174], ebx
call fcn.0050f040
mov eax, dword [edi + 0x291]
mov ecx, dword [edi + 0x295]
mov edx, dword [edi + 0x299]
mov dword [esp + 0x180], eax
mov eax, dword [edi + 0x29d]
lea esi, [esp + 0xc8]
mov dword [esp + 0x184], ecx
mov dword [esp + 0x188], edx
mov dword [esp + 0x18c], eax
mov dword [esp + 0x178], ebx
call fcn.004062c0
lea ecx, [esp + 0x170]
push ecx
mov edx, esi
xor ebx, ebx
push edx
mov dword [esp + 0xd0], 0x6dc040
mov dword [esp + 0x16e], ebx
mov dword [esp + 0x172], ebx
call fcn.0050edf0
mov eax, esi
call fcn.0050f040
mov esi, dword [esp + 0x110]
add dword [0x7b728c], 0x21
cmp esi, ebx
je 0x513531
mov eax, dword [esi]
push 3
push eax
call sub.gdiplus.dll_GdipSetSmoothingMode
cmp eax, ebx
je 0x513520
mov dword [esi + 4], eax
mov ecx, dword [esi]
push 1
push ecx
call sub.gdiplus.dll_GdipSetTextRenderingHint
cmp eax, ebx
je 0x513531
mov dword [esi + 4], eax
mov eax, dword [edi + 0x295]
mov edx, dword [edi + 0x29d]
mov ecx, dword [edi + 0x299]
sub edx, eax
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x291]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
sub esp, 0x14
sub ecx, eax
mov dword [esp + 0x2c], ecx
fstp dword [esp + 0x10]
mov dword [esp + 0x28], eax
fild dword [esp + 0x2c]
mov eax, esp
lea edx, [esp + 0xdc]
mov dword [eax], 0xd6ff
fstp dword [esp + 0xc]
fild dword [esp + 0x30]
fstp dword [esp + 8]
fild dword [esp + 0x28]
fstp dword [esp + 4]
push edx
call fcn.004064b0
cmp esi, ebx
je 0x5135bb
mov eax, dword [esi]
push 4
push eax
call sub.gdiplus.dll_GdipSetSmoothingMode
cmp eax, ebx
je 0x5135aa
mov dword [esi + 4], eax
mov ecx, dword [esi]
push 4
push ecx
call sub.gdiplus.dll_GdipSetTextRenderingHint
cmp eax, ebx
je 0x5135bb
mov dword [esi + 4], eax
fild dword [edi + 0x291]
lea edx, [esp + 0x40]
mov eax, 0xf9ff
push edx
fstp dword [esp + 0x54]
push ebx
fldz
mov dword [esp + 0x3c], eax
fst dword [esp + 0x5c]
mov byte [esp + 0x40], bl
fild dword [edi + 0x299]
mov dword [esp + 0x24], eax
mov dword [esp + 0x48], ebx
fstp dword [esp + 0x50]
fstp dword [esp + 0x54]
call sub.gdiplus.dll_GdipCreatePath
fld dword [ebp]
mov dword [esp + 0x44], eax
fmul dword [0x6b9390]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x40]
fst dword [esp + 0x5c]
mov dword [esp + 0x40], 0x6dc03c
fld dword [ebp + 4]
fmul dword [0x723d0c]
fst dword [esp + 0x60]
fst dword [esp + 0x2c]
fxch st(1)
fst dword [esp + 0x28]
fld dword [ebp]
fmul dword [0x723d08]
faddp st(1)
fstp dword [esp + 0x30]
fld dword [ebp + 4]
fmul dword [0x723ce4]
faddp st(1)
fstp dword [esp + 0x34]
call fcn.005132f0
mov eax, 0x1f4
xor edx, edx
call fcn.00513400
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x14], eax
push ebx
lea edx, [esp + 0x4c]
fldcw word [esp + 0x18]
push edx
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x28]
lea edi, [esp + 0x8c]
fistp dword [esp + 0x20]
mov cl, byte [esp + 0x20]
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x40]
fldcw word [esp + 0x24]
call fcn.00505c60
cmp esi, ebx
je 0x5136c9
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x88]
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [esi]
push eax
push ecx
call sub.gdiplus.dll_GdipFillPath
cmp eax, ebx
je 0x5136c9
mov dword [esi + 4], eax
fld dword [ebp]
lea edx, [esp + 0x24]
fmul dword [0x723bbc]
push edx
lea eax, [esp + 0x40]
fst dword [esp + 0x64]
fld dword [esp + 0x5c]
fadd st(1)
fstp dword [esp + 0x28]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x60]
fstp dword [esp + 0x2c]
fld dword [esp + 0x34]
fstp dword [esp + 0x34]
call fcn.005132f0
mov eax, 0x3e8
mov edx, 0x1f4
call fcn.00513400
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x14], eax
push ebx
lea ecx, [esp + 0x4c]
fldcw word [esp + 0x18]
push ecx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x40]
lea edi, [esp + 0x74]
fistp dword [esp + 0x20]
mov al, byte [esp + 0x20]
mov byte [esp + 0x2c], al
lea eax, [esp + 0x28]
fldcw word [esp + 0x24]
call fcn.00505c60
cmp esi, ebx
je 0x513777
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 4]
push eax
mov eax, dword [esi]
push edx
push eax
call sub.gdiplus.dll_GdipFillPath
cmp eax, ebx
je 0x513777
mov dword [esi + 4], eax
fld dword [esp + 0x24]
lea ecx, [esp + 0x24]
fld dword [esp + 0x60]
push ecx
fadd st(1), st(0)
lea eax, [esp + 0x40]
fxch st(1)
fstp dword [esp + 0x28]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x34]
fstp dword [esp + 0x34]
call fcn.005132f0
mov eax, 0x5dc
mov edx, 0x3e8
call fcn.00513400
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x14], eax
push ebx
lea eax, [esp + 0x4c]
fldcw word [esp + 0x18]
push eax
lea ecx, [esp + 0x58]
push ecx
lea eax, [esp + 0x28]
lea ecx, [esp + 0x40]
fistp dword [esp + 0x20]
lea edi, [esp + 0xa4]
mov dl, byte [esp + 0x20]
mov byte [esp + 0x2c], dl
fldcw word [esp + 0x24]
call fcn.00505c60
cmp esi, ebx
je 0x513824
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [esi]
push ecx
push edx
call sub.gdiplus.dll_GdipFillPath
cmp eax, ebx
je 0x513824
mov dword [esi + 4], eax
fld dword [esp + 0x24]
lea eax, [esp + 0x24]
fld dword [esp + 0x60]
push eax
fadd st(1), st(0)
lea eax, [esp + 0x40]
fxch st(1)
fstp dword [esp + 0x28]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x34]
fstp dword [esp + 0x34]
call fcn.005132f0
mov eax, 0x7d0
mov edx, 0x5dc
call fcn.00513400
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x14], eax
push ebx
lea edx, [esp + 0x4c]
fldcw word [esp + 0x18]
push edx
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x28]
lea edi, [esp + 0xbc]
fistp dword [esp + 0x20]
mov cl, byte [esp + 0x20]
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x40]
fldcw word [esp + 0x24]
call fcn.00505c60
cmp esi, ebx
je 0x5138d1
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0xb8]
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [esi]
push eax
push ecx
call sub.gdiplus.dll_GdipFillPath
cmp eax, ebx
je 0x5138d1
mov dword [esi + 4], eax
lea esi, [esp + 0xc8]
call fcn.0050f0d0
lea esi, [esp + 0x170]
call fcn.0050f0d0
mov edx, dword [esp + 0xc0]
mov ebp, 0x70c650
push edx
mov dword [esp + 0xc0], ebp
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0xb4]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, 0x6dbd38
push eax
mov dword [esp + 0xb4], edi
call esi
mov ecx, dword [esp + 0xa8]
push ecx
mov dword [esp + 0xa8], ebp
call sub.gdiplus.dll_GdipDeleteBrush
mov edx, dword [esp + 0x9c]
push edx
mov dword [esp + 0x9c], edi
call esi
mov eax, dword [esp + 0x78]
push eax
mov dword [esp + 0x78], ebp
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x6c]
push ecx
mov dword [esp + 0x6c], edi
call esi
mov edx, dword [esp + 0x90]
push edx
mov dword [esp + 0x90], ebp
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x84]
push eax
mov dword [esp + 0x84], edi
call esi
mov ecx, dword [esp + 0x40]
push ecx
mov dword [esp + 0x40], 0x6dc03c
call sub.gdiplus.dll_GdipDeletePath
lea eax, [esp + 0xc8]
mov dword [esp + 0xc8], 0x6dc040
call fcn.0050ee60
lea eax, [esp + 0xc8]
call fcn.00406370
lea eax, [esp + 0x170]
call fcn.00406370
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret 8