Function at 0x40a610
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415772
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x434], esi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x418]
push eax
mov dword [ebp - 0x420], ebx
push dword [ebx + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImagePixelFormat]
add ebx, 8
mov dword [ebp - 0x430], ebx
test eax, eax
je 0x40a670
mov dword [ebx], eax
jmp 0x40a676
mov dword [ebp - 0x430], ebx
mov edi, dword [ebp - 0x418]
mov eax, edi
shr eax, 0x12
and eax, 1
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x464], eax
je 0x40a6b6
mov dword [ebp - 0x414], 1
mov dword [ebp - 0x41c], 0x20
mov dword [ebp - 0x424], 0x26200a
jmp 0x40a716
test edi, 0x20000
je 0x40a6fc
mov eax, edi
mov dword [ebp - 0x424], edi
sar eax, 8
movzx eax, al
mov dword [ebp - 0x41c], eax
cmp eax, 0x20
jne 0x40a6eb
mov dword [ebp - 0x41c], 0x18
mov dword [ebp - 0x424], 0x21808
mov eax, dword [ebp - 0x420]
lea ebx, [eax + 8]
mov dword [ebp - 0x430], ebx
jmp 0x40a71c
mov dword [ebp - 0x41c], 0x18
mov dword [ebp - 0x424], 0x21808
mov dword [ebp - 0x430], ebx
mov eax, dword [ebp - 0x420]
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0
push ecx
push dword [eax + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x40a73c
mov dword [ebx], eax
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0
push eax
mov eax, dword [ebp - 0x420]
push dword [eax + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x40a762
mov dword [ebx], eax
push dword [ebp - 0x414]
mov ecx, esi
sub esp, 8
push dword [ebp - 0x41c]
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
call fcn.0040ace0
test eax, eax
je 0x40acb3
mov dword [ebp - method.CVolMem.virtual_0], 0x4175a4
mov dword [ebp - method.CVolMem.virtual_0], vtable.CVolObject.0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 4], 0
mov dword [ebp - method.CVolMem.virtual_0], vtable.CVolMem.0
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x438], 0x40
mov dword [ebp - 4], 1
test edi, 0x10000
je 0x40a984
lea eax, [ebp - 0x414]
mov dword [ebp - 0x414], 0
push eax
mov eax, dword [ebp - 0x420]
push dword [eax + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImagePaletteSize]
test eax, eax
je 0x40a826
mov dword [ebx], eax
cmp dword [ebp - 0x444], 0
je 0x40a84a
push dword [ebp - 0x414]
lea ecx, [ebp - 0x450]
call fcn.0040e200
mov edi, eax
mov eax, dword [ebp - 0x414]
jmp 0x40a8c7
mov edi, dword [ebp - 0x414]
test edi, edi
jne 0x40a858
mov eax, edi
jmp 0x40a8c7
mov ecx, dword [ebp - 0x438]
mov eax, 0x40
test ecx, ecx
cmovle ecx, eax
mov eax, edi
cdq
idiv ecx
mov eax, dword [ebp - 0x450]
sub ecx, edx
add ecx, edi
mov dword [ebp - 0x454], ecx
mov eax, dword [eax]
push ecx
cmp eax, method.CVolMem.virtual_0
jne 0x40a89f
mov ecx, 0x41eb88
call fcn.0040eb90
mov edi, eax
test edi, edi
jne 0x40a8a9
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea ecx, [ebp - 0x450]
call eax
mov edi, eax
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x440], eax
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x444], edi
mov dword [ebp - 0x43c], eax
push eax
mov eax, dword [ebp - 0x420]
push edi
push dword [eax + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImagePalette]
test eax, eax
je 0x40a8de
mov dword [ebx], eax
mov ecx, dword [edi + 4]
mov dword [ebp - 0x414], ecx
lea eax, [ecx - 1]
cmp eax, 0xff
ja 0x40a9e6
xor edx, edx
test ecx, ecx
je 0x40a940
lea ebx, [edi + 8]
nop
mov ecx, dword [ebx]
lea ebx, [ebx + 4]
mov eax, ecx
mov byte [ebp + edx*4 - 0x410], cl
shr eax, 0x10
mov byte [ebp + edx*4 - 0x40e], al
mov eax, ecx
shr eax, 8
mov byte [ebp + edx*4 - 0x40f], al
mov byte [ebp + edx*4 - 0x40d], 0
inc edx
mov esi, dword [edi + 4]
mov dword [ebp - 0x414], esi
cmp edx, esi
jb 0x40a900
mov esi, dword [ebp - 0x434]
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 - 0x410]
push eax
push dword [ebp - 0x414]
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 - 0x434]
mov edi, dword [ebp - 0x418]
mov ebx, dword [ebp - 0x424]
cmp ebx, edi
jne 0x40aaaa
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x458], eax
lea eax, [ebp - 0x48c]
push eax
push edi
push 1
lea eax, [ebp - 0x460]
mov dword [ebp - 0x460], 0
push eax
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x454], ecx
push dword [eax + 4]
call dword [sym.imp.gdiplus.dll_GdipBitmapLockBits]
mov ecx, eax
test ecx, ecx
je 0x40a9ed
mov eax, dword [ebp - 0x430]
mov dword [eax], ecx
xor esi, esi
jmp 0x40ac3b
mov ebx, dword [esi + 8]
xor ecx, ecx
imul ebx, dword [ebp - 0x41c]
mov eax, dword [ebp - 0x47c]
mov edi, dword [esi + 4]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x41c], ecx
add ebx, 7
shr ebx, 3
cmp dword [esi + 0xc], ecx
jle 0x40aa7d
nop dword [eax]
test ebx, ebx
je 0x40aa62
test edi, edi
je 0x40aa44
push ebx
test eax, eax
je 0x40aa39
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x40aa56
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x41c]
add eax, dword [ebp - 0x484]
inc ecx
add edi, dword [esi + 0x10]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x41c], ecx
cmp ecx, dword [esi + 0xc]
jl 0x40aa20
lea eax, [ebp - 0x48c]
push eax
mov eax, dword [ebp - 0x420]
push dword [eax + 4]
call dword [sym.imp.gdiplus.dll_GdipBitmapUnlockBits]
mov ecx, eax
test ecx, ecx
je 0x40ab9b
mov eax, dword [ebp - 0x430]
mov dword [eax], ecx
jmp 0x40ab9b
mov edx, dword [ebp - 0x434]
mov esi, dword [esi + 4]
mov dword [ebp - method.Gdiplus::Image.virtual_0], vtable.Gdiplus::Image.0
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0xc]
mov edx, dword [edx + 8]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x418]
push edi
push esi
push ebx
push eax
push ecx
push edx
mov dword [ebp - 0x474], 0x417eb8
mov dword [ebp - 0x418], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromScan0]
mov ebx, dword [ebp - 0x418]
mov dword [ebp - 0x46c], eax
mov dword [ebp - 0x470], 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 - 0x454], edi
mov esi, dword [ebp - 0x418]
mov dword [ebp - 0x458], 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 - 0x420]
mov dword [ebp - 0x454], edi
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
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 - 0x454], 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 - 0x434]
cmp dword [ebp - 0x464], 0
je 0x40ac36
mov eax, dword [esi + 4]
xor ecx, ecx
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], ecx
cmp dword [esi + 0xc], ecx
jle 0x40ac36
nop
mov edi, eax
xor eax, eax
mov dword [ebp - 0x418], eax
cmp dword [esi + 8], eax
jle 0x40ac1b
nop
movzx ebx, byte [edi + 3]
cmp ebx, 0xff
je 0x40ac06
xor esi, esi
nop
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 0x40abe0
mov eax, dword [ebp - 0x418]
mov esi, dword [ebp - 0x434]
inc eax
add edi, 4
mov dword [ebp - 0x418], eax
cmp eax, dword [esi + 8]
jl 0x40abd0
mov ecx, dword [ebp - 0x428]
mov eax, dword [ebp - 0x42c]
inc ecx
add eax, dword [esi + 0x10]
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], ecx
cmp ecx, dword [esi + 0xc]
jl 0x40abc0
mov esi, 1
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.CVolMem.virtual_0], vtable.CVolMem.0
mov dword [ebp - 4], 8
mov edx, dword [ebp - 0x444]
test edx, edx
je 0x40ac82
mov eax, dword [ebp - 0x450]
push edx
mov eax, dword [eax + 0xc]
cmp eax, method.CVolMem.virtual_12
jne 0x40ac7a
mov ecx, 0x41eb88
call fcn.0040ec70
jmp 0x40ac82
lea ecx, [ebp - 0x450]
call eax
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov dword [ebp - method.CVolMem.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 - 0x10]
xor ecx, ebp
call fcn.00412ec6
mov esp, ebp
pop ebp
ret 4