Function at 0x4012b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x418d58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov ecx, dword [esp + 0x30]
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x18], ebx
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
push 2
push eax
mov dword [esp + 0x40], ebx
call sub.gdiplus.dll_GdipSetPageUnit
cmp eax, ebx
je 0x401301
mov dword [esp + 0x1c], eax
mov ebp, dword [esp + 0x4c]
cmp ebp, 0xa
jne 0x40143b
mov esi, dword [esp + 0x48]
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x50], ebx
mov eax, dword [esi + 4]
push eax
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40132b
mov dword [esi + 8], eax
mov edi, dword [esp + 0x44]
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x4c], ebx
mov eax, dword [edi + 4]
mov ebp, dword [edi + 0xc]
mov ecx, dword [edi]
mov dword [esp + 0x18], eax
sub ebp, eax
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x28], ecx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x40135a
mov dword [esi + 8], eax
mov edx, dword [esi + 4]
lea ecx, [esp + 0x44]
push ecx
push edx
mov dword [esp + 0x4c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x401373
mov dword [esi + 8], eax
cmp esi, ebx
je 0x40137c
mov eax, dword [esi + 4]
jmp 0x40137e
xor eax, eax
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push ebx
push ebx
push ebx
push 2
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x2c]
push ebx
push ebx
push ebp
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x44]
push ecx
push eax
push edx
call sub.gdiplus.dll_GdipDrawImageRectRectI
cmp eax, ebx
je 0x4013b2
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 4]
lea eax, [esp + 0x48]
push eax
push ecx
mov dword [esp + 0x50], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x4013cb
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x44]
push edx
push eax
mov dword [esp + 0x4c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x4013e4
mov dword [esi + 8], eax
mov edx, dword [esi + 4]
lea ecx, [esp + 0x4c]
push ecx
push edx
mov dword [esp + 0x54], ebx
call sub.gdiplus.dll_GdipGetImageWidth
push eax
mov ecx, esi
call fcn.004017d0
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0xc]
mov esi, dword [esp + 0x48]
mov edx, dword [edi]
sub ecx, eax
push 0xcc0020
push ecx
mov ebp, dword [esp + 0x4c]
push esi
mov esi, dword [esp + 0x4c]
push eax
push edx
push esi
push ecx
mov ecx, dword [edi + 8]
sub ecx, edx
sub ecx, ebp
push ecx
push eax
mov eax, dword [esp + 0x70]
add edx, eax
push edx
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x40179f
cmp ebp, 0xb
jne 0x401578
mov esi, dword [esp + 0x48]
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x50], ebx
mov edx, dword [esi + 4]
push edx
call sub.gdiplus.dll_GdipGetImageHeight
push eax
mov ecx, esi
call fcn.004017d0
mov edi, dword [esp + 0x44]
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x4c], ebx
mov eax, dword [edi]
mov ebp, dword [edi + 8]
mov ecx, dword [edi + 4]
mov dword [esp + 0x18], eax
sub ebp, eax
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x2c], ecx
call sub.gdiplus.dll_GdipGetImageHeight
push eax
mov ecx, esi
call fcn.004017d0
mov edx, dword [esi + 4]
lea ecx, [esp + 0x44]
push ecx
push edx
mov dword [esp + 0x4c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
push eax
mov ecx, esi
call fcn.004017d0
cmp esi, ebx
je 0x4014b5
mov eax, dword [esi + 4]
jmp 0x4014b7
xor eax, eax
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push ebx
push ebx
push ebx
push 2
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x3c]
push ebx
push ebx
push ecx
mov ecx, dword [esp + 0x38]
push ebp
push edx
mov edx, dword [esp + 0x44]
push ecx
push eax
push edx
call sub.gdiplus.dll_GdipDrawImageRectRectI
push eax
lea ecx, [esp + 0x1c]
call fcn.00401880
mov ecx, dword [esi + 4]
lea eax, [esp + 0x48]
push eax
push ecx
mov dword [esp + 0x50], ebx
call sub.gdiplus.dll_GdipGetImageHeight
push eax
mov ecx, esi
call fcn.004017d0
mov eax, dword [esi + 4]
lea edx, [esp + 0x44]
push edx
push eax
mov dword [esp + 0x4c], ebx
call sub.gdiplus.dll_GdipGetImageHeight
push eax
mov ecx, esi
call fcn.004017d0
mov edx, dword [esi + 4]
lea ecx, [esp + 0x4c]
push ecx
push edx
mov dword [esp + 0x54], ebx
call sub.gdiplus.dll_GdipGetImageHeight
push eax
mov ecx, esi
call fcn.004017d0
mov eax, dword [edi]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
mov esi, dword [esp + 0x48]
mov edi, dword [edi + 0xc]
mov ebx, dword [esp + 0x44]
sub ecx, eax
push 0xcc0020
push esi
mov esi, dword [esp + 0x48]
push ecx
sub edi, edx
push edx
push eax
sub edi, ebx
push esi
push edi
push ecx
mov ecx, dword [esp + 0x6c]
add edx, ecx
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x40179f
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
cmp ebp, 9
jne 0x4015a0
mov edx, dword [esp + 0x18]
push 7
push edx
call sub.gdiplus.dll_GdipSetInterpolationMode
push eax
lea ecx, [esp + 0x1c]
call fcn.00401880
jmp 0x40172c
cmp ebp, 1
je 0x4015e5
cmp ebp, 5
je 0x4015e5
cmp ebp, 7
je 0x4015e5
cmp ebp, 2
je 0x4015be
cmp ebp, 6
je 0x4015be
cmp ebp, 8
jne 0x40160a
mov ecx, dword [edi + 4]
lea eax, [esp + 0x40]
push eax
push ecx
mov dword [esp + 0x48], ebx
call sub.gdiplus.dll_GdipGetImageWidth
push eax
mov ecx, edi
call fcn.004017d0
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x40]
sub edx, eax
mov dword [esi], edx
jmp 0x40160a
mov ecx, dword [edi + 4]
lea eax, [esp + 0x40]
push eax
push ecx
mov dword [esp + 0x48], ebx
call sub.gdiplus.dll_GdipGetImageWidth
push eax
mov ecx, edi
call fcn.004017d0
mov edx, dword [esi]
mov eax, dword [esp + 0x40]
add edx, eax
mov dword [esi + 8], edx
cmp ebp, 3
je 0x401650
cmp ebp, 5
je 0x401650
cmp ebp, 6
je 0x401650
cmp ebp, 4
je 0x401628
cmp ebp, 7
je 0x401628
cmp ebp, 8
jne 0x401676
mov ecx, dword [edi + 4]
lea eax, [esp + 0x40]
push eax
push ecx
mov dword [esp + 0x48], ebx
call sub.gdiplus.dll_GdipGetImageHeight
push eax
mov ecx, edi
call fcn.004017d0
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x40]
sub edx, eax
mov dword [esi + 4], edx
jmp 0x401676
mov ecx, dword [edi + 4]
lea eax, [esp + 0x40]
push eax
push ecx
mov dword [esp + 0x48], ebx
call sub.gdiplus.dll_GdipGetImageHeight
push eax
mov ecx, edi
call fcn.004017d0
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x40]
add edx, eax
mov dword [esi + 0xc], edx
cmp ebp, 0xc
jne 0x40172c
mov ecx, dword [edi + 4]
lea eax, [esp + 0x40]
push eax
push ecx
mov dword [esp + 0x48], ebx
call sub.gdiplus.dll_GdipGetImageWidth
push eax
mov ecx, edi
call fcn.004017d0
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x40]
sub eax, ecx
sub eax, edx
mov dword [esp + 0x40], ebx
cdq
sub eax, edx
lea edx, [esp + 0x40]
sar eax, 1
add eax, ecx
push edx
mov dword [esi], eax
mov eax, dword [edi + 4]
push eax
call sub.gdiplus.dll_GdipGetImageWidth
push eax
mov ecx, edi
call fcn.004017d0
mov ecx, dword [esi]
mov eax, dword [esp + 0x40]
add ecx, eax
lea edx, [esp + 0x40]
mov dword [esi + 8], ecx
mov eax, dword [edi + 4]
push edx
push eax
mov dword [esp + 0x48], ebx
call sub.gdiplus.dll_GdipGetImageHeight
push eax
mov ecx, edi
call fcn.004017d0
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x40]
sub eax, ecx
sub eax, edx
mov dword [esp + 0x40], ebx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
lea ecx, [esp + 0x40]
mov dword [esi + 4], eax
mov edx, dword [edi + 4]
push ecx
push edx
call sub.gdiplus.dll_GdipGetImageHeight
push eax
mov ecx, edi
call fcn.004017d0
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 4]
add eax, ecx
mov dword [esi + 0xc], eax
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dword [esp + 0x20], eax
sub edx, eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x24], ecx
sub eax, ecx
mov dword [esp + 0x28], edx
mov edx, dword [edi + 4]
lea ecx, [esp + 0x40]
mov dword [esp + 0x2c], eax
push ecx
push edx
mov dword [esp + 0x48], ebx
call sub.gdiplus.dll_GdipGetImageHeight
push eax
mov ecx, edi
call fcn.004017d0
mov ecx, dword [edi + 4]
lea eax, [esp + 0x48]
push eax
push ecx
mov dword [esp + 0x50], ebx
call sub.gdiplus.dll_GdipGetImageWidth
push eax
mov ecx, edi
call fcn.004017d0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
push ebx
push ebx
push ebx
push 2
push edx
push eax
push ebx
lea ecx, [esp + 0x3c]
push ebx
push ecx
push edi
lea ecx, [esp + 0x40]
call fcn.00401800
mov edx, dword [esp + 0x18]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret