Function at 0x10002c20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10081f23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [esp + 0x48]
push ebp
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 8]
xor ebp, ebp
mov dword [esp + 0x44], ebp
cmp dword [ecx - 8], ebp
jne 0x10002c79
lea ecx, [esp + 8]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::AllocSysString
lea edx, [esp + 0x4c]
mov dword [esp + 0x2c], 0x1008a950
push edx
push eax
mov dword [esp + 0x54], ebp
call sub.gdiplus.dll_GdipCreateBitmapFromFile
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], ebp
push ecx
push eax
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebp
je 0x10002cbc
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 4]
push edx
push eax
mov dword [esp + 0xc], ebp
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebp
je 0x10002cd7
mov dword [esp + 0x34], eax
push esi
mov esi, dword [esp + 0x54]
cmp esi, ebp
jg 0x10002cff
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebp
je 0x10002cfb
mov dword [esp + 0x38], eax
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x58]
cmp eax, ebp
jg 0x10002d26
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x54]
push eax
push ecx
mov dword [esp + 0x5c], ebp
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebp
je 0x10002d22
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x54]
cmp esi, ebp
jg 0x10002d34
mov edx, dword [esp + 0x50]
mov dword [esp + 0x20], edx
jmp 0x10002d38
mov dword [esp + 0x20], esi
cmp eax, ebp
jg 0x10002d40
mov eax, dword [esp + 8]
fild dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ebp
fstp dword [esp + 0x18]
fild dword [esp + 0x50]
fld dword [esp + 0x18]
fdiv st(1)
fstp dword [esp + 0x10]
fild dword [esp + 0x24]
fstp dword [esp + 0x1c]
fild dword [esp + 8]
fld dword [esp + 0x1c]
fdiv st(1)
fst dword [esp + 0x54]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
je 0x10002d9e
fld dword [esp + 0x54]
fld st(2)
fmul dword [esp + 0x54]
fsubr dword [esp + 0x18]
fmul dword [0x1008a94c]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x14], eax
jmp 0x10002db9
fld dword [esp + 0x10]
fld st(1)
fmul dword [esp + 0x10]
fsubr dword [esp + 0x1c]
fmul dword [0x1008a94c]
call sub.MSVCRT.dll__ftol
mov ebp, eax
fxch st(2)
fmul st(2)
push ebx
push edi
call sub.MSVCRT.dll__ftol
fmul st(1)
mov edi, eax
call sub.MSVCRT.dll__ftol
push 0x10
mov ebx, eax
fstp st(0)
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x10002e15
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x5c]
push ecx
push eax
push 0x26200a
mov dword [esp + 0x68], eax
push eax
mov eax, dword [esp + 0x38]
push edx
push eax
mov dword [esi], 0x1008a950
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov ecx, dword [esp + 0x5c]
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
mov dword [esp + 0x5c], esi
jmp 0x10002e1b
mov dword [esp + 0x5c], eax
mov esi, eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 0
call sub.gdiplus.dll_GdipGetImageVerticalResolution
test eax, eax
je 0x10002e3a
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x28], 0
call sub.gdiplus.dll_GdipGetImageHorizontalResolution
test eax, eax
je 0x10002e59
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call sub.gdiplus.dll_GdipBitmapSetResolution
test eax, eax
je 0x10002e73
mov dword [esi + 8], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
call sub.gdiplus.dll_GdipCreateImageAttributes
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x30]
push 0xffffff
push 0xfefefe
push 1
push 0
push ecx
call sub.gdiplus.dll_GdipSetImageAttributesColorKeys
test eax, eax
je 0x10002ea9
mov dword [esp + 0x34], eax
push 8
call sub.gdiplus.dll_GdipAlloc
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x50], 3
je 0x10002ec9
push esi
mov ecx, eax
call fcn.100036a0
mov esi, eax
jmp 0x10002ecb
xor esi, esi
mov edx, dword [esi]
push 7
push edx
mov byte [esp + 0x58], 2
call sub.gdiplus.dll_GdipSetInterpolationMode
test eax, eax
je 0x10002ee1
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x30]
neg eax
mov edx, dword [esp + 0x3c]
push 0
sbb eax, eax
push 0
and eax, ecx
lea ecx, [esp + 0x40]
neg ecx
sbb ecx, ecx
push eax
mov eax, dword [esp + 0x1c]
and ecx, edx
mov edx, dword [esp + 0x64]
push 2
push eax
mov eax, dword [esp + 0x30]
push edx
push 0
push 0
push ebx
push edi
push ebp
push eax
push ecx
mov ecx, dword [esi]
push ecx
call sub.gdiplus.dll_GdipDrawImageRectRectI
push eax
mov ecx, esi
call fcn.10003720
mov edx, dword [esp + 0x1c]
push ebx
push edi
push ebp
lea eax, [esp + 0x44]
push edx
push eax
mov ecx, esi
call fcn.100036e0
pop edi
pop ebx
test esi, esi
je 0x10002f53
mov ecx, dword [esi]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
push esi
call sub.gdiplus.dll_GdipFree
push 0x18
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x10002f6c
mov ecx, eax
call fcn.10002af0
mov esi, eax
jmp 0x10002f6e
xor esi, esi
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10002f82
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 4], 0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 8]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], edx
mov dword [esi + 0x14], ecx
mov edx, dword [esp + 0x28]
push edx
call sub.gdiplus.dll_GdipDisposeImageAttributes
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], 0x1008a944
push eax
call sub.gdiplus.dll_GdipDisposeImage
lea ecx, [esp + 0xc]
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x44
ret