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

Disassembly:
push 0xffffffffffffffff
push 0x10051f36
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x10066060]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10066060]
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.10008d90
lea eax, [esp + 0xbc]
push eax
call fcn.1001c590
add esp, 0x20
mov dword [esp + 0xc8], ebx
cmp dword [esp + 0xb4], ebx
jne 0x1001cbe6
push 4
mov eax, str.4lpS7h
lea esi, [esp + 0xa4]
call fcn.10009f80
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebx
je 0x1001cc24
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 0x1001cc26
xor esi, esi
push esi
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call fcn.1001b8d0
mov ebp, 8
mov byte [esp + 0xc8], 1
cmp dword [edi + 0x50], ebp
jb 0x1001cc50
mov eax, dword [edi + 0x3c]
jmp 0x1001cc53
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.1001c9c0
add esp, 0xc
push eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.1001e000
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 0x1001ccb4
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 0x1001ccd3
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x18]
push ebx
push edx
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, ebx
je 0x1001cce6
mov dword [esp + 0x1c], eax
push 4
push esi
call sub.gdiplus.dll_GdipSetTextRenderingHint
cmp eax, ebx
je 0x1001ccf6
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 0x1001cd1f
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 0x1001cd3b
mov eax, dword [eax]
jmp 0x1001cd3d
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 0x1001cd60
mov dword [esp + 0x60], eax
fldz
fcom dword [esp + 0x44]
fnstsw ax
fld dword [0x1005b6c0]
test ah, 1
jne 0x1001cd77
fst dword [esp + 0x44]
fxch st(1)
fcomp dword [esp + 0x48]
fnstsw ax
test ah, 1
jne 0x1001cd8a
fstp dword [esp + 0x48]
jmp 0x1001cd8c
fstp st(0)
fld dword [esp + 0x48]
call fcn.1004f1c0
fld dword [esp + 0x44]
mov ebx, eax
add ebx, 2
call fcn.1004f1c0
mov ebp, eax
push 0x10
add ebp, 2
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x1001cde2
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 0x1001cde4
xor esi, esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
push esi
lea eax, [esp + 0x50]
push eax
call fcn.1001b8d0
mov ebp, dword [esp + 0x4c]
xor esi, esi
mov dword [esp + 0x14], esi
test ebp, ebp
je 0x1001ce1b
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], 0x10058db8
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 0x1001cedc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
push 1
push eax
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, ebx
je 0x1001cef0
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 0x1001cf09
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 0x1001cf2a
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 0x1001cf4c
fadd dword [0x1005b6c4]
mov ecx, dword [esp + 0x2c]
fstp dword [esp + 0x98]
fild dword [esp + 0x2c]
test ecx, ecx
jge 0x1001cf65
fadd dword [0x1005b6c4]
cmp dword [esp + 0xb8], 8
fstp dword [esp + 0x9c]
mov ecx, dword [esp + 0xa4]
jae 0x1001cf84
lea ecx, [esp + 0xa4]
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x1001cf90
mov eax, dword [eax]
jmp 0x1001cf92
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 0x1001cfb2
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 0x1001d003
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1001d003
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 0x1001d003
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 0x1001d050
lea edx, [esi + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1001d050
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 0x1001d050
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 0x1001d088
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1001d088
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 0x1001d088
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
cmp dword [esp + 0xb8], 8
jb 0x1001d0a2
mov eax, dword [esp + 0xa4]
push eax
call fcn.100378fa
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.100370e4
add esp, 0xb8
ret