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

Disassembly:
push 0xffffffffffffffff
push 0x10052576
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x10067060]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10067060]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
sub esp, 0x1c
mov edi, ecx
mov ecx, esp
mov dword [esp + 0x48], esp
xor ebx, ebx
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
lea eax, [edi + 0xc]
push ebx
mov word [ecx + 4], dx
call fcn.100091f0
lea eax, [esp + 0xbc]
push eax
call fcn.1001ca00
add esp, 0x20
mov dword [esp + 0xc8], ebx
cmp dword [esp + 0xb4], ebx
jne 0x1001d056
push 4
mov eax, str.4lpS7h
lea esi, [esp + 0xa4]
call fcn.1000a400
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebx
je 0x1001d094
lea ecx, [esp + 0x28]
push ecx
push ebx
push 0x30803
push ebx
push 0x3e8
push 0x3e8
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x40], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov edx, dword [esp + 0x28]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
jmp 0x1001d096
xor esi, esi
push esi
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call fcn.1001bd50
mov ebp, 8
mov byte [esp + 0xc8], 1
cmp dword [edi + 0x50], ebp
jb 0x1001d0c0
mov eax, dword [edi + 0x3c]
jmp 0x1001d0c3
lea eax, [edi + 0x3c]
movzx ecx, byte [edi + 0x55]
movzx edx, byte [edi + 0x54]
push ecx
push edx
push eax
mov al, byte [edi + 0x56]
call fcn.1001ce30
add esp, 0xc
push eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.1001e470
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
mov dword [esp + 0x24], ebx
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x54]
xor esi, esi
mov dword [esp + 0x20], esi
cmp eax, ebx
je 0x1001d124
mov eax, dword [eax + 4]
lea edx, [esp + 0x20]
push edx
push eax
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov esi, dword [esp + 0x20]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], esi
mov byte [esp + 0xc8], 4
mov ecx, dword [esp + 0x18]
push ebx
push ecx
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, ebx
je 0x1001d143
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x18]
push ebx
push edx
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, ebx
je 0x1001d156
mov dword [esp + 0x1c], eax
push 4
push esi
call sub.gdiplus.dll_GdipSetTextRenderingHint
cmp eax, ebx
je 0x1001d166
mov dword [esp + 0x60], eax
fldz
mov ecx, dword [esp + 0xa4]
fst dword [esp + 0x3c]
fst dword [esp + 0x40]
fst dword [esp + 0x44]
fst dword [esp + 0x48]
cmp dword [esp + 0xb8], ebp
jae 0x1001d18f
lea ecx, [esp + 0xa4]
mov eax, dword [esp + 0x34]
fst dword [esp + 0x68]
fst dword [esp + 0x6c]
fst dword [esp + 0x70]
fstp dword [esp + 0x74]
cmp eax, ebx
je 0x1001d1ab
mov eax, dword [eax]
jmp 0x1001d1ad
xor eax, eax
push ebx
push ebx
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x24]
push edx
lea edx, [esp + 0x78]
push edx
push eax
push 0xffffffffffffffff
push ecx
push esi
call sub.gdiplus.dll_GdipMeasureString
cmp eax, ebx
je 0x1001d1d0
mov dword [esp + 0x60], eax
fldz
fcom dword [esp + 0x44]
fnstsw ax
fld dword [0x1005c738]
test ah, 1
jne 0x1001d1e7
fst dword [esp + 0x44]
fxch st(1)
fcomp dword [esp + 0x48]
fnstsw ax
test ah, 1
jne 0x1001d1fa
fstp dword [esp + 0x48]
jmp 0x1001d1fc
fstp st(0)
fld dword [esp + 0x48]
call fcn.1004f7a0
fld dword [esp + 0x44]
mov ebx, eax
add ebx, 2
call fcn.1004f7a0
mov ebp, eax
push 0x10
add ebp, 2
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x1001d252
lea ecx, [esp + 0x14]
push ecx
push eax
push 0x30803
push eax
push ebx
push ebp
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x2c], eax
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov edx, dword [esp + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
xor eax, eax
jmp 0x1001d254
xor esi, esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
push esi
lea eax, [esp + 0x50]
push eax
call fcn.1001bd50
mov ebp, dword [esp + 0x4c]
xor esi, esi
mov dword [esp + 0x14], esi
test ebp, ebp
je 0x1001d28b
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov esi, dword [esp + 0x14]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], esi
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 0x2c]
movzx eax, cl
mov ebx, ecx
shr ecx, 0x10
or eax, 0xffffff00
shr ebx, 8
movzx edi, bl
movzx ecx, cl
shl eax, 8
or eax, edi
shl eax, 8
or eax, ecx
movzx ecx, dl
mov ebx, edx
or ecx, 0xffffff00
shr ebx, 8
shl ecx, 8
movzx edi, bl
shr edx, 0x10
or ecx, edi
movzx edx, dl
shl ecx, 8
or ecx, edx
xor ebx, ebx
lea edx, [esp + 0x14]
push edx
push ebx
push eax
push ecx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov dword [esp + 0x98], 0x80
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x80], 0x10059de8
mov dword [esp + 0x2c], ebx
call sub.gdiplus.dll_GdipCreateLineBrushI
mov edi, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], edi
mov byte [esp + 0xc8], 7
mov edx, dword [esp + 0x18]
push 1
push edx
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, ebx
je 0x1001d34c
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
push 1
push eax
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, ebx
je 0x1001d360
mov dword [esp + 0x1c], eax
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x38], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x1001d379
mov dword [ebp + 8], eax
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x1001d39a
mov dword [ebp + 8], eax
fldz
mov eax, dword [esp + 0x24]
fst dword [esp + 0x90]
fstp dword [esp + 0x94]
fild dword [esp + 0x24]
test eax, eax
jge 0x1001d3bc
fadd dword [0x1005c73c]
mov ecx, dword [esp + 0x2c]
fstp dword [esp + 0x98]
fild dword [esp + 0x2c]
test ecx, ecx
jge 0x1001d3d5
fadd dword [0x1005c73c]
cmp dword [esp + 0xb8], 8
fstp dword [esp + 0x9c]
mov ecx, dword [esp + 0xa4]
jae 0x1001d3f4
lea ecx, [esp + 0xa4]
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x1001d400
mov eax, dword [eax]
jmp 0x1001d402
xor eax, eax
mov edx, dword [esp + 0x18]
push edi
push edx
lea edx, [esp + 0x98]
push edx
push eax
push 0xffffffffffffffff
push ecx
push esi
call sub.gdiplus.dll_GdipDrawString
cmp eax, ebx
je 0x1001d422
mov dword [esp + 0x7c], eax
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, ebp
call edx
push edi
mov ebp, eax
call sub.gdiplus.dll_GdipDeleteBrush
push esi
call sub.gdiplus.dll_GdipDeleteGraphics
mov byte [esp + 0xc8], 4
mov esi, dword [esp + 0x50]
cmp esi, ebx
je 0x1001d473
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1001d473
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1001d473
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov eax, dword [esp + 0x20]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x18]
push ecx
call sub.gdiplus.dll_GdipDeleteStringFormat
mov byte [esp + 0xc8], 1
mov esi, dword [esp + 0x38]
cmp esi, ebx
je 0x1001d4c0
lea edx, [esi + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1001d4c0
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1001d4c0
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov byte [esp + 0xc8], bl
mov esi, dword [esp + 0x58]
cmp esi, ebx
je 0x1001d4f8
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1001d4f8
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1001d4f8
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
cmp dword [esp + 0xb8], 8
jb 0x1001d512
mov eax, dword [esp + 0xa4]
push eax
call fcn.10038093
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.10037693
add esp, 0xb8
ret