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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
test dword [ebp + 0xc], 0x1000
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
je 0x1006f444
push 3
push edi
lea ecx, [esp + 0x28]
call fcn.100640ef
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0x24], edx
test eax, eax
jne 0x1006f34c
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0x1c]
je 0x1006f2b7
fild dword [edi]
lea ecx, [esp + 0xc]
push ecx
push edx
push dword [ebp + 0x1c]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fst dword [esp + 0x5c]
fild dword [edi + 4]
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0x1c], edx
push eax
lea eax, [esp + 0x64]
fstp dword [esp + 0x68]
push eax
fstp dword [esp + 0x60]
fild dword [edi + 0xc]
fstp dword [esp + 0x64]
call dword [sym.imp.gdiplus.dll_GdipCreateLineBrush]
fld1
mov eax, dword [esp + 0xc]
push ecx
push ecx
fst dword [esp + 4]
fstp dword [esp]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.gdiplus.dll_GdipSetLineSigmaBlend]
push dword [esp + 0x20]
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.gdiplus.dll_GdipFillPath]
test eax, eax
je 0x1006f237
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + 2]
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 0xc]
sub ecx, eax
mov eax, dword [ebp + 0x18]
sub ecx, 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], ecx
push eax
lea ecx, [esp + 0x5c]
call fcn.100475bb
push dword [esp + 0x10]
mov eax, dword [edi]
push 1
push dword [esp + 0x1c]
inc eax
push eax
push dword [esp + 0x6c]
push dword [esi]
call dword [sym.imp.gdiplus.dll_GdipFillRectangleI]
test eax, eax
je 0x1006f283
mov dword [esi + 4], eax
push dword [esp + 0x10]
mov eax, dword [edi + 8]
push 1
push dword [esp + 0x1c]
sub eax, 2
push eax
push dword [esp + 0x6c]
push dword [esi]
call dword [sym.imp.gdiplus.dll_GdipFillRectangleI]
test eax, eax
je 0x1006f2a7
mov dword [esi + 4], eax
push dword [esp + 0x5c]
call dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
push dword [esp + 0x18]
jmp 0x1006f2e4
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x64]
lea eax, [esp + 0x14]
push eax
call fcn.100475bb
push dword [esp + 0x20]
push dword [esp + 0x6c]
push dword [esi]
call dword [sym.imp.gdiplus.dll_GdipFillPath]
test eax, eax
je 0x1006f2e0
mov dword [esi + 4], eax
push dword [esp + 0x68]
call dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
test dword [ebp + 0xc], 0x100
je 0x1006f3a7
push 4
push esi
lea ecx, [esp + 0x40]
call fcn.10046e08
fld dword [0x10011210]
lea eax, [esp + 0x28]
and dword [esp + 0x28], 0
push eax
push 0
push ecx
fstp dword [esp]
push dword [ebp + 0x20]
call dword [sym.imp.gdiplus.dll_GdipCreatePen1]
and dword [esp + 0x2c], 0
test eax, eax
je 0x1006f35b
push dword [esp + 0x28]
call dword [sym.imp.gdiplus.dll_GdipDeletePen]
push dword [esp + 0x3c]
mov esi, dword [esp + 0x3c]
push dword [esi]
call dword [sym.imp.gdiplus.dll_GdipSetSmoothingMode]
test eax, eax
je 0x1006f34c
mov dword [esi + 4], eax
push dword [esp + 0x20]
call dword [sym.imp.gdiplus.dll_GdipDeletePath]
jmp 0x1006f4cf
push 1
push dword [esp + 0x2c]
call dword [sym.imp.gdiplus.dll_GdipSetPenMode]
test eax, eax
je 0x1006f36f
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
mov ecx, esi
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.100474aa
push dword [esp + 0x28]
call dword [sym.imp.gdiplus.dll_GdipDeletePen]
mov eax, dword [esp + 0x38]
push dword [esp + 0x3c]
push dword [eax]
call dword [sym.imp.gdiplus.dll_GdipSetSmoothingMode]
mov ecx, eax
test ecx, ecx
je 0x1006f3a7
mov eax, dword [esp + 0x38]
mov dword [eax + 4], ecx
push 4
push esi
lea ecx, [esp + 0x48]
call fcn.10046e08
fld1
lea eax, [esp + 0x30]
and dword [esp + 0x30], 0
push eax
push 0
push ecx
fstp dword [esp]
push dword [ebp + 0x14]
call dword [sym.imp.gdiplus.dll_GdipCreatePen1]
and dword [esp + 0x34], 0
test eax, eax
je 0x1006f3ee
push dword [esp + 0x30]
call dword [sym.imp.gdiplus.dll_GdipDeletePen]
push dword [esp + 0x44]
mov esi, dword [esp + 0x44]
jmp 0x1006f33d
push 1
push dword [esp + 0x34]
call dword [sym.imp.gdiplus.dll_GdipSetPenMode]
test eax, eax
je 0x1006f402
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
mov ecx, esi
push eax
lea eax, [esp + 0x34]
push eax
call fcn.100474aa
push dword [esp + 0x30]
call dword [sym.imp.gdiplus.dll_GdipDeletePen]
mov eax, dword [esp + 0x40]
push dword [esp + 0x44]
push dword [eax]
call dword [sym.imp.gdiplus.dll_GdipSetSmoothingMode]
mov ecx, eax
test ecx, ecx
je 0x1006f43a
mov eax, dword [esp + 0x40]
mov dword [eax + 4], ecx
push dword [esp + 0x20]
call dword [sym.imp.gdiplus.dll_GdipDeletePath]
test byte [ebp + 0xc], 0x80
je 0x1006f4cf
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov edx, dword [edi + 0xc]
mov dword [esp + 0x74], ecx
mov ecx, dword [edi + 8]
mov edi, dword [edi + 4]
sub ecx, eax
sub edx, edi
mov dword [esp + 0x70], eax
test byte [ebp + 0xc], 0x40
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
jne 0x1006f492
add eax, 3
mov dword [esp + 0x70], eax
lea eax, [edi + 3]
mov dword [esp + 0x74], eax
lea eax, [ecx - 6]
mov dword [esp + 0x78], eax
lea eax, [edx - 6]
mov dword [esp + 0x7c], eax
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
movzx edx, al
mov ecx, eax
or edx, 0xffffff00
shr ecx, 8
shl edx, 8
movzx ecx, cl
or edx, ecx
shr eax, 0x10
movzx eax, al
mov ecx, esi
shl edx, 8
or edx, eax
mov eax, edx
and eax, 0xffffff
push eax
push edx
lea edx, [esp + 0x78]
call fcn.100658f9
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c