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

Disassembly:
push 0xffffffffffffffff
push 0x100524f9
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
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 + 0xc4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xd4]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x90], esp
xor edi, edi
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], edi
lea eax, [ebp + 0xc]
push edi
mov word [ecx + 4], dx
call fcn.100091f0
lea eax, [esp + 0xbc]
push eax
call fcn.1001ca00
add esp, 0x20
mov dword [esp + 0xcc], edi
cmp dword [esp + 0xb4], edi
jne 0x1001d5de
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, edi
je 0x1001d61c
lea ecx, [esp + 0x20]
push ecx
push edi
push 0x30803
push edi
push 0x7d0
push 0x7d0
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x38], edi
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov edx, dword [esp + 0x20]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
jmp 0x1001d61e
xor esi, esi
push esi
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
call fcn.1001bd50
mov eax, dword [esp + 0x4c]
xor esi, esi
mov dword [esp + 0x70], esi
cmp eax, edi
je 0x1001d655
mov edx, dword [eax + 4]
lea ecx, [esp + 0x70]
push ecx
push edx
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov esi, dword [esp + 0x70]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], esi
mov byte [esp + 0xcc], 2
cmp dword [ebp + 0x50], 8
jb 0x1001d66c
mov eax, dword [ebp + 0x3c]
jmp 0x1001d66f
lea eax, [ebp + 0x3c]
movzx ecx, byte [ebp + 0x55]
movzx edx, byte [ebp + 0x54]
push ecx
push edx
push eax
mov al, byte [ebp + 0x56]
call fcn.1001ce30
add esp, 0xc
push eax
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
call fcn.1001e470
lea ecx, [esp + 0x34]
push ecx
push edi
push edi
mov dword [esp + 0x40], edi
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x34]
push edi
push edx
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, edi
je 0x1001d6c5
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
push edi
push eax
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, edi
je 0x1001d6d8
mov dword [esp + 0x38], eax
push 4
push esi
call sub.gdiplus.dll_GdipSetTextRenderingHint
cmp eax, edi
je 0x1001d6e8
mov dword [esp + 0x30], eax
push 0xffffff
push esi
call sub.gdiplus.dll_GdipGraphicsClear
cmp eax, edi
je 0x1001d6fb
mov dword [esp + 0x30], eax
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 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 + 0x20]
push edx
push ebx
push eax
push ecx
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x98]
push ecx
mov dword [esp + 0xa4], 0x80
mov dword [esp + 0xa8], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xac], 0x10059de8
mov dword [esp + 0x38], ebx
call sub.gdiplus.dll_GdipCreateLineBrushI
mov edx, dword [esp + 0x20]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], edx
mov byte [esp + 0xcc], 5
fldz
cmp dword [esp + 0xb8], 8
fst dword [esp + 0x3c]
mov ecx, dword [esp + 0xa4]
fst dword [esp + 0x40]
fst dword [esp + 0x44]
fst dword [esp + 0x48]
jae 0x1001d7d4
lea ecx, [esp + 0xa4]
mov edi, dword [esp + 0x78]
fst dword [esp + 0x54]
fst dword [esp + 0x58]
fst dword [esp + 0x5c]
fstp dword [esp + 0x60]
cmp edi, ebx
je 0x1001d7f0
mov eax, dword [edi]
jmp 0x1001d7f2
xor eax, eax
push ebx
push ebx
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x40]
push edx
lea edx, [esp + 0x64]
push edx
push eax
push 0xffffffffffffffff
push ecx
push esi
call sub.gdiplus.dll_GdipMeasureString
cmp eax, ebx
je 0x1001d815
mov dword [esp + 0x30], eax
fldz
fld dword [esp + 0x44]
fcom st(1)
fnstsw ax
fld dword [0x1005c738]
test ah, 0x41
jp 0x1001d836
fstp st(1)
fst dword [esp + 0x44]
fld dword [esp + 0x44]
fxch st(1)
fld dword [esp + 0x48]
fcom st(3)
fnstsw ax
fstp st(3)
test ah, 0x41
jp 0x1001d860
fstp st(2)
fxch st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fxch st(1)
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x1001d864
fstp st(1)
jmp 0x1001d866
fstp st(0)
jmp 0x1001d853
fstp st(0)
cmp dword [esp + 0xb8], 8
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
mov eax, dword [esp + 0xa4]
fmul qword [0x1005c730]
fadd qword [0x1005c728]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fst dword [esp + 0x54]
fstp dword [esp + 0x58]
jae 0x1001d8a2
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x9c]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x5c]
call fcn.1001c800
fld dword [esp + 0x44]
fld qword [0x1005c700]
mov edi, dword [esp + 0x2c]
fmul st(1), st(0)
push ebx
fld dword [esp + 0x20]
sub esp, 8
fld st(0)
faddp st(3)
fxch st(2)
fstp dword [esp + 0x24]
fmul dword [esp + 0x54]
faddp st(1)
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp + 4]
fld dword [esp + 0x24]
fstp dword [esp]
push edi
call sub.gdiplus.dll_GdipTranslateWorldTransform
cmp eax, ebx
je 0x1001d905
mov dword [esp + 0x30], eax
movsx ecx, word [ebp + 0x2a]
mov dword [esp + 0x14], ecx
push ebx
push ecx
fild dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
push edi
call sub.gdiplus.dll_GdipRotateWorldTransform
cmp eax, ebx
je 0x1001d92c
mov dword [esp + 0x30], eax
fld dword [esp + 0x18]
push ebx
fchs
sub esp, 8
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fchs
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp + 4]
fld dword [esp + 0x30]
fstp dword [esp]
push edi
call sub.gdiplus.dll_GdipTranslateWorldTransform
cmp eax, ebx
je 0x1001d961
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
push 0xffffff
push edi
mov esi, eax
call sub.gdiplus.dll_GdipGraphicsClear
cmp eax, ebx
je 0x1001d981
mov dword [esp + 0x30], eax
cmp esi, ebx
je 0x1001d98a
mov eax, dword [esi + 4]
jmp 0x1001d98c
xor eax, eax
push ebx
push ebx
push eax
push edi
call sub.gdiplus.dll_GdipDrawImageI
cmp eax, ebx
je 0x1001d99d
mov dword [esp + 0x30], eax
cmp esi, ebx
je 0x1001d9ab
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
movsx eax, word [ebp + 0x2a]
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x1005c720]
fdiv qword [0x1005c718]
fst qword [esp + 0x54]
call fcn.1004f9c0
fstp qword [esp + 0x64]
fld qword [esp + 0x54]
call fcn.1004f890
fld dword [esp + 0x44]
fld st(0)
fmul st(2)
fld dword [esp + 0x48]
fld st(0)
fld qword [esp + 0x64]
fmul st(1), st(0)
fxch st(3)
faddp st(1)
fstp dword [esp + 0x18]
fld st(0)
fmulp st(4)
fld st(2)
fmulp st(2)
fxch st(3)
faddp st(1)
fstp dword [esp + 0x28]
fld qword [0x1005c700]
fmul st(1), st(0)
fld dword [esp + 0x1c]
fld st(0)
faddp st(3)
fld dword [esp + 0x18]
fld st(0)
fmul st(3)
fsubp st(4)
fxch st(3)
fstp dword [esp + 0x74]
fxch st(3)
fmul st(1)
faddp st(3)
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(3)
fsubrp st(1)
fstp dword [esp + 0x80]
fld qword [0x1005c710]
fdiv st(1), st(0)
fdiv st(2), st(0)
fxch st(1)
fcom st(2)
fnstsw ax
test ah, 5
jp 0x1001da5c
fld st(0)
jmp 0x1001da5e
fld st(2)
fcomp st(2)
fnstsw ax
test ah, 5
jp 0x1001da76
fstp st(1)
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x1001da78
fstp st(0)
jmp 0x1001da7a
fstp st(0)
fstp st(1)
movzx ecx, byte [ebp + 0x29]
fstp dword [esp + 0x24]
mov edx, 0x10
sub edx, ecx
mov dword [esp + 0x14], edx
push 0x10
fild dword [esp + 0x18]
fmul dword [esp + 0x28]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esp + 0x18]
fstp dword [esp + 0x28]
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebx
je 0x1001db01
fld dword [esp + 0x24]
lea eax, [esp + 0x1c]
fld qword [0x1005c708]
push eax
fmul st(1), st(0)
push ebx
fld dword [esp + 0x30]
push 0x30803
push ebx
faddp st(2)
mov dword [esi], vtable.Gdiplus::Bitmap.0
fxch st(1)
mov dword [esp + 0x2c], ebx
call fcn.1004f7a0
fmul dword [esp + 0x24]
push eax
fadd dword [esp + 0x2c]
call fcn.1004f7a0
push eax
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov ecx, dword [esp + 0x1c]
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
jmp 0x1001db03
xor esi, esi
push esi
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call fcn.1001bd50
mov ebp, dword [esp + 0x64]
xor esi, esi
mov dword [esp + 0x1c], esi
cmp ebp, ebx
je 0x1001db3a
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x1c]
push eax
push ecx
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], esi
push 0xffffff
push esi
mov byte [esp + 0xd4], 7
call sub.gdiplus.dll_GdipGraphicsClear
cmp eax, ebx
je 0x1001db59
mov dword [esp + 0x58], eax
fld dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 4]
push 2
sub esp, 0x18
fstp dword [esp + 0x14]
fld dword [esp + 0x34]
fstp dword [esp + 0x10]
fld dword [esp + 0x9c]
fstp dword [esp + 0xc]
fld dword [esp + 0x90]
fstp dword [esp + 8]
fld dword [esp + 0x40]
fstp dword [esp + 4]
fld dword [esp + 0x30]
fstp dword [esp]
push eax
push esi
call sub.gdiplus.dll_GdipDrawImagePointRect
cmp eax, ebx
je 0x1001dba9
mov dword [esp + 0x58], eax
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
push esi
mov ebp, eax
call sub.gdiplus.dll_GdipDeleteGraphics
mov byte [esp + 0xcc], 5
mov esi, dword [esp + 0x68]
cmp esi, ebx
je 0x1001dbf4
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1001dbf4
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1001dbf4
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x20]
push ecx
call sub.gdiplus.dll_GdipDeleteBrush
mov edx, dword [esp + 0x34]
push edx
call sub.gdiplus.dll_GdipDeleteStringFormat
mov byte [esp + 0xcc], 2
mov esi, dword [esp + 0x7c]
cmp esi, ebx
je 0x1001dc41
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1001dc41
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 0x1001dc41
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
push edi
call sub.gdiplus.dll_GdipDeleteGraphics
mov byte [esp + 0xcc], bl
mov esi, dword [esp + 0x50]
cmp esi, ebx
je 0x1001dc7f
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1001dc7f
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 0x1001dc7f
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
cmp dword [esp + 0xb8], 8
jb 0x1001dc99
mov eax, dword [esp + 0xa4]
push eax
call fcn.10038093
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0xc4]
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, 0xbc
ret