Function at 0x10018570
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018b132
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x101f7004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x44c], esi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x418]
push eax
mov dword [ebp - 0x448], ebx
push dword [ebx + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImagePixelFormat]
test eax, eax
je 0x100185c6
mov dword [ebx + 8], eax
mov edi, dword [ebp - 0x418]
mov dword [ebp - 0x41c], 0x20
mov dword [ebp - 0x420], 0x22009
test edi, 0x20000
je 0x100185fc
mov eax, edi
mov dword [ebp - 0x420], edi
sar eax, 8
movzx eax, al
mov dword [ebp - 0x41c], eax
mov eax, edi
shr eax, 0x12
and eax, 1
mov dword [ebp - 0x428], eax
je 0x10018620
mov dword [ebp - 0x41c], 0x20
mov dword [ebp - 0x420], 0x26200a
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0
push eax
push dword [ebx + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x10018641
mov dword [ebx + 8], eax
lea eax, [ebp - 0x460]
mov dword [ebp - 0x460], 0
push eax
push dword [ebx + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x10018662
mov dword [ebx + 8], eax
push dword [ebp - 0x428]
mov ecx, esi
sub esp, 8
push dword [ebp - 0x41c]
push dword [ebp - 0x460]
push dword [ebp - 0x424]
call fcn.10018c60
test eax, eax
je 0x10018c34
mov dword [ebp - method.CWString.virtual_0], 0x101cfc20
mov dword [ebp - method.CWString.virtual_0], vtable.CVolObject.0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0
mov dword [ebp - 4], 0
mov dword [ebp - method.CWString.virtual_0], vtable.CVolMem.0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x42c], 0x40
mov dword [ebp - 4], 1
test edi, 0x10000
je 0x1001892a
lea eax, [ebp - 0x450]
mov dword [ebp - 0x450], 0
push eax
push dword [ebx + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImagePaletteSize]
test eax, eax
je 0x10018721
mov dword [ebx + 8], eax
mov edi, dword [ebp - 0x438]
mov ebx, dword [ebp - 0x450]
test edi, edi
je 0x100187f4
cmp ebx, dword [ebp - 0x430]
je 0x10018863
test ebx, ebx
jne 0x1001878f
mov eax, dword [ebp - 0x444]
push edi
mov eax, dword [eax + 0xc]
cmp eax, method.CWString.virtual_12
jne 0x10018762
mov ecx, 0x102007a8
call fcn.1001d170
jmp 0x1001876a
lea ecx, [ebp - 0x444]
call eax
mov dword [ebp - 0x438], 0
xor edi, edi
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x434], 0
jmp 0x10018863
mov ecx, dword [ebp - 0x42c]
mov eax, 0x40
test ecx, ecx
cmovle ecx, eax
mov eax, dword [ebp - 0x434]
cmp eax, ebx
jl 0x100187b3
sub eax, ebx
cmp eax, ecx
jle 0x1001885d
mov eax, ebx
cdq
idiv ecx
mov eax, dword [ebp - 0x444]
sub ecx, edx
add ecx, ebx
push ecx
mov eax, dword [eax + 8]
mov dword [ebp - 0x450], ecx
push edi
cmp eax, method.CWString.virtual_8
jne 0x100187ea
mov ecx, 0x102007a8
call fcn.1001d0e0
mov edi, eax
test edi, edi
je 0x10018c52
jmp 0x1001884b
lea ecx, [ebp - 0x444]
call eax
jmp 0x10018849
test ebx, ebx
jne 0x100187fc
xor edi, edi
jmp 0x10018863
mov ecx, dword [ebp - 0x42c]
mov eax, 0x40
test ecx, ecx
cmovle ecx, eax
mov eax, ebx
cdq
idiv ecx
mov eax, dword [ebp - 0x444]
sub ecx, edx
add ecx, ebx
mov dword [ebp - 0x450], ecx
mov eax, dword [eax]
push ecx
cmp eax, method.CWString.virtual_0
jne 0x10018841
mov ecx, 0x102007a8
call fcn.1001d080
mov edi, eax
test edi, edi
je 0x10018c52
jmp 0x1001884b
lea ecx, [ebp - 0x444]
call eax
mov edi, eax
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x430], ebx
push ebx
mov ebx, dword [ebp - 0x448]
push edi
push dword [ebx + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImagePalette]
test eax, eax
je 0x1001887b
mov dword [ebx + 8], eax
mov ecx, dword [edi + 4]
mov dword [ebp - 0x450], ecx
lea eax, [ecx - 1]
cmp eax, 0xff
ja 0x1001897d
xor edx, edx
test ecx, ecx
je 0x100188e0
lea ebx, [edi + 8]
nop dword [eax + eax]
mov ecx, dword [ebx]
lea ebx, [ebx + 4]
mov eax, ecx
mov byte [ebp + edx*4 - 0x414], cl
shr eax, 0x10
mov byte [ebp + edx*4 - 0x412], al
mov eax, ecx
shr eax, 8
mov byte [ebp + edx*4 - 0x413], al
mov byte [ebp + edx*4 - 0x411], 0
inc edx
mov esi, dword [edi + 4]
mov dword [ebp - 0x450], esi
cmp edx, esi
jb 0x100188a0
mov esi, dword [ebp - 0x44c]
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esi]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
push ebx
call edi
mov esi, eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x450]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetDIBColorTable]
push esi
push ebx
call edi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [ebp - 0x44c]
mov ebx, dword [ebp - 0x448]
mov edi, dword [ebp - 0x418]
cmp dword [ebp - 0x420], edi
jne 0x10018a31
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x488]
push eax
push edi
push 1
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x45c], 0
push eax
push dword [ebx + 4]
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x450], ecx
call dword [sym.imp.gdiplus.dll_GdipBitmapLockBits]
test eax, eax
je 0x10018984
mov dword [ebx + 8], eax
xor esi, esi
jmp 0x10018bbc
mov ebx, dword [esi + 8]
xor ecx, ecx
imul ebx, dword [ebp - 0x41c]
mov eax, dword [ebp - 0x478]
mov edi, dword [esi + 4]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x420], ecx
add ebx, 7
shr ebx, 3
cmp dword [esi + 0xc], ecx
jle 0x10018a0b
test ebx, ebx
je 0x100189f0
test edi, edi
je 0x100189d4
push ebx
test eax, eax
je 0x100189c9
push eax
push edi
call fcn.1016a0f0
add esp, 0xc
jmp 0x100189e4
push 0
push edi
call fcn.1016abf0
add esp, 0xc
call fcn.1016f0b7
mov dword [eax], 0x16
call fcn.1016effa
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x420]
add eax, dword [ebp - 0x480]
inc ecx
add edi, dword [esi + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x420], ecx
cmp ecx, dword [esi + 0xc]
jl 0x100189b0
mov ebx, dword [ebp - 0x448]
lea eax, [ebp - 0x488]
push eax
push dword [ebx + 4]
call dword [sym.imp.gdiplus.dll_GdipBitmapUnlockBits]
test eax, eax
je 0x10018b21
mov dword [ebx + 8], eax
jmp 0x10018b21
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
mov esi, dword [esi + 8]
mov dword [ebp - method.Gdiplus::Image.virtual_0], vtable.Gdiplus::Image.0
mov byte [ebp - 4], 4
lea edi, [ebp - 0x418]
push edi
push eax
push dword [ebp - 0x420]
mov dword [ebp - method.Gdiplus::Bitmap.virtual_0], vtable.Gdiplus::Bitmap.0
push ecx
push edx
push esi
mov dword [ebp - 0x418], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromScan0]
mov ebx, dword [ebp - 0x418]
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x46c], ebx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x418]
push eax
push ebx
mov dword [ebp - 0x418], 0
call dword [sym.imp.gdiplus.dll_GdipGetImageGraphicsContext]
mov edi, eax
mov dword [ebp - 0x450], edi
mov esi, dword [ebp - 0x418]
mov dword [ebp - 0x454], esi
mov byte [ebp - 4], 6
push 1
push esi
call dword [sym.imp.gdiplus.dll_GdipSetCompositingMode]
test eax, eax
cmovne edi, eax
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x450], edi
push dword [ebp - 0x460]
push dword [ebp - 0x424]
push 0
push 0
push dword [eax + 4]
push esi
call dword [sym.imp.gdiplus.dll_GdipDrawImageRectI]
test eax, eax
cmovne edi, eax
mov dword [ebp - 0x450], edi
mov byte [ebp - 4], 5
push esi
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov byte [ebp - 4], 1
push ebx
mov dword [ebp - method.Gdiplus::Image.virtual_0], vtable.Gdiplus::Image.0
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
mov esi, dword [ebp - 0x44c]
cmp dword [ebp - 0x428], 0
je 0x10018bb7
mov eax, dword [esi + 4]
xor ecx, ecx
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x424], ecx
cmp dword [esi + 0xc], ecx
jle 0x10018bb7
mov edi, eax
xor eax, eax
mov dword [ebp - 0x428], eax
cmp dword [esi + 8], eax
jle 0x10018b9c
movzx ebx, byte [edi + 3]
cmp ebx, 0xff
je 0x10018b87
xor esi, esi
movzx eax, byte [esi + edi]
push 0xff
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov byte [esi + edi], al
inc esi
cmp esi, 3
jl 0x10018b61
mov eax, dword [ebp - 0x428]
mov esi, dword [ebp - 0x44c]
inc eax
add edi, 4
mov dword [ebp - 0x428], eax
cmp eax, dword [esi + 8]
jl 0x10018b53
mov ecx, dword [ebp - 0x424]
mov eax, dword [ebp - 0x418]
inc ecx
add eax, dword [esi + 0x10]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x424], ecx
cmp ecx, dword [esi + 0xc]
jl 0x10018b44
mov esi, 1
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.CWString.virtual_0], vtable.CVolMem.0
mov dword [ebp - 4], 8
mov edx, dword [ebp - 0x438]
test edx, edx
je 0x10018c03
mov eax, dword [ebp - 0x444]
push edx
mov eax, dword [eax + 0xc]
cmp eax, method.CWString.virtual_12
jne 0x10018bfb
mov ecx, 0x102007a8
call fcn.1001d170
jmp 0x10018c03
lea ecx, [ebp - 0x444]
call eax
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov dword [ebp - method.CWString.virtual_0], vtable.CVolObject.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10167cb7
mov esp, ebp
pop ebp
ret 4
push 0xffffffffffffffff
call fcn.1016f37b
int3