Function at 0x5af860
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x67eaa0
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x1c
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x5afed9
mov eax, dword [esp + 0x48]
test eax, eax
je 0x5afed9
mov edi, dword [esp + 0x4c]
test edi, edi
jle 0x5afece
mov eax, dword [esp + 0x50]
test eax, eax
jle 0x5afece
mov ebp, dword [esp + 0x40]
cmp ebp, 2
jge 0x5af8c3
push 0
push 0
push str.siplIP::LossyResize___Icon_Width_is_too_small
jmp 0x5afee2
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x44]
cmp edx, ecx
jle 0x5af8dd
push 0
push 0
push str.siplIP::LossyResize___Destination_bits_depth_is_larger_than_Source_bits.Currently_not_supported
jmp 0x5afee2
cmp edi, eax
jle 0x5af8f8
fild dword [esp + 0x50]
mov ebx, ebp
fidiv dword [esp + 0x4c]
fimul dword [esp + 0x40]
call fcn.005e1f50
mov esi, eax
jmp 0x5af90d
fild dword [esp + 0x4c]
mov esi, ebp
fidiv dword [esp + 0x50]
fimul dword [esp + 0x40]
call fcn.005e1f50
mov ebx, eax
mov eax, dword [esp + 0x54]
cmp eax, 8
jne 0x5afa6f
mov eax, edi
push 0
cdq
idiv ebx
push ebp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x58]
cdq
idiv esi
lea edx, [esp + 0x58]
mov dword [esp + 0x58], 0
push edx
mov edi, eax
call fcn.00402932
add esp, 0xc
cmp ebx, ebp
mov eax, ebp
jne 0x5af9d0
sub eax, esi
cdq
sub eax, edx
sar eax, 1
imul eax, ebp
test esi, esi
jle 0x5afa58
imul edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x3c], edi
lea edx, [eax + ecx]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], esi
xor eax, eax
test ebx, ebx
jle 0x5af99a
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov cl, byte [esi]
mov byte [eax + edi], cl
mov edi, dword [esp + 0x40]
inc eax
add esi, edi
cmp eax, ebx
jl 0x5af986
mov esi, dword [esp + 0x50]
mov ecx, ebp
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x48]
and ecx, 3
add edx, ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x4c]
add esi, ecx
dec eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], eax
jne 0x5af97c
jmp 0x5afa58
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
test esi, esi
mov dword [esp + 0x54], eax
jle 0x5afa58
imul edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], esi
xor ecx, ecx
test ebx, ebx
jle 0x5afa1f
mov esi, eax
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
lea edx, [ecx + eax]
mov al, byte [esi]
inc ecx
mov byte [edx + edi], al
mov edx, dword [esp + 0x40]
add esi, edx
cmp ecx, ebx
jl 0x5afa04
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x50]
mov ecx, ebp
mov edi, eax
mov edx, ecx
add eax, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x44]
and ecx, 3
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x48]
add eax, edx
dec ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ecx
jne 0x5af9fc
lea eax, [esp + 0x50]
push eax
call fcn.004013e3
add esp, 4
mov eax, 1
jmp 0x5afee9
jle 0x5afc20
cmp eax, 0x10
jg 0x5afc20
mov eax, edi
push 0
cdq
idiv ebx
lea ecx, [esp + 0x54]
push ebp
push ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
cdq
idiv esi
mov edx, dword [esp + 0x50]
mov dword [esp + 0x5c], 0
mov edi, eax
mov eax, dword [esp + 0x60]
sub eax, edx
mov dword [esp + 0x60], eax
call fcn.00402932
add esp, 0xc
cmp ebx, ebp
mov eax, ebp
jne 0x5afb60
sub eax, esi
cdq
sub eax, edx
sar eax, 1
imul eax, ebp
test esi, esi
jle 0x5afc09
imul edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x40], esi
add eax, edx
shl edi, 1
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], edi
xor esi, esi
test ebx, ebx
jle 0x5afb22
mov eax, dword [esp + 0x1c]
add eax, eax
mov cx, word [edi]
add edi, eax
mov word [esp + 0x4c], cx
mov edx, dword [esp + 0x4c]
mov cx, word [esp + 0x54]
shr dx, cl
mov ecx, dword [esp + 0x50]
inc esi
cmp esi, ebx
mov byte [esi + ecx - 1], dl
jl 0x5afaff
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x50]
mov ecx, ebp
mov edi, eax
mov edx, ecx
add eax, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
add edi, ecx
dec eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x40], eax
jne 0x5afaf3
jmp 0x5afc09
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
test esi, esi
mov dword [esp + 0x44], eax
jle 0x5afc09
imul edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x40], esi
shl edi, 1
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], edi
xor esi, esi
test ebx, ebx
jle 0x5afbd0
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + ecx]
mov dword [esp + 0x20], edx
mov ax, word [edi]
mov cx, word [esp + 0x54]
mov word [esp + 0x4c], ax
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
shr dx, cl
lea ecx, [esi + eax]
mov eax, dword [esp + 0x50]
inc esi
mov byte [ecx + eax], dl
mov ecx, dword [esp + 0x20]
add edi, ecx
cmp esi, ebx
jl 0x5afba3
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x50]
mov ecx, ebp
mov edi, eax
mov edx, ecx
add eax, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
add edi, ecx
dec eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x40], eax
jne 0x5afb92
lea eax, [esp + 0x50]
push eax
call fcn.004013e3
add esp, 4
mov eax, 1
jmp 0x5afee9
cmp eax, 0x18
jne 0x5afe83
imul edi, dword [esp + 0x50]
mov ecx, dword [0x6ed544]
xor eax, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], ecx
cmp edi, eax
mov dword [esp + 0x34], eax
jge 0x5afde1
push eax
push eax
push str.Alloc1D:_Size_is_negative._Cant_allocate_memory
call fcn.0062dd90
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], 0xffffffff
call fcn.00619871
push 0
lea ecx, [esp + 0x48]
push edi
push ecx
call fcn.00402932
push 0
lea edx, [esp + 0x20]
push edi
push edx
call fcn.00402932
push 0
lea eax, [esp + 0x30]
push edi
push eax
call fcn.00402932
push 0
lea ecx, [esp + 0x40]
push edi
push ecx
call fcn.00402932
push 0
lea edx, [esp + 0x50]
push edi
push edx
call fcn.00402932
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x90]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x5c]
add esp, 0x3c
xor edi, edi
mov dword [esp + 0x24], ecx
test eax, eax
mov dword [esp + 0x28], edx
jle 0x5afd16
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov cl, byte [eax]
inc eax
mov byte [edi + edx], cl
mov edx, dword [esp + 0x24]
mov cl, byte [eax]
inc eax
mov byte [edi + edx], cl
mov edx, dword [esp + 0x28]
mov cl, byte [eax]
inc eax
mov byte [edi + edx], cl
mov ecx, dword [esp + 0x20]
inc edi
cmp edi, ecx
jl 0x5afcef
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x14]
push ebp
push esi
push ebx
push edi
push eax
push ecx
push edx
call fcn.005b8670
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x34]
push ebp
push esi
push ebx
push edi
push eax
push ecx
push edx
call fcn.005b8670
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x54]
push ebp
push esi
push ebx
push edi
push eax
push ecx
push edx
call fcn.005b8670
imul ebp, ebp
add esp, 0x54
test ebp, ebp
jle 0x5afd98
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
sub esi, ecx
sub edi, ecx
mov dl, byte [esi + ecx]
mov byte [eax], dl
mov dl, byte [ecx]
inc eax
mov byte [eax], dl
mov dl, byte [edi + ecx]
inc eax
mov byte [eax], dl
inc eax
inc ecx
dec ebp
jne 0x5afd83
lea eax, [esp + 0x54]
push eax
call fcn.004013e3
lea ecx, [esp + 0x48]
push ecx
call fcn.004013e3
lea edx, [esp + 0x18]
push edx
call fcn.004013e3
lea eax, [esp + 0x20]
push eax
call fcn.004013e3
lea ecx, [esp + 0x28]
push ecx
call fcn.004013e3
lea edx, [esp + 0x30]
push edx
call fcn.004013e3
add esp, 0x18
mov eax, 1
jmp 0x5afee9
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push 0
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSize]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x5afe53
cmp eax, edi
jl 0x5afe53
mov edx, dword [0x6f2528]
push ecx
inc edx
push 0
mov dword [esp + 0x5c], ecx
mov dword [0x6f2528], edx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSize]
mov edx, dword [0x6f2530]
xor ecx, ecx
add edx, eax
mov eax, dword [0x6f2534]
adc eax, ecx
mov dword [0x6f2530], edx
mov dword [0x6f2534], eax
jmp 0x5afc6e
lea edx, [esp + 0x40]
push str.Alloc1D:_Cannot_allocate_sufficient_memory__nTerminate_application_
push edx
call fcn.0060da8c
mov eax, dword [esp + 0x48]
add esp, 8
push 0
push 4
push eax
call fcn.0062dd90
cmp eax, 6
jne 0x5afc6e
push 0
call fcn.005e246f
mov ecx, dword [0x6ed544]
mov dword [esp + 0x4c], ecx
push eax
lea edx, [esp + 0x50]
push str.siplProcess::LossyResize___Does_not_support__d_bits_per_pixel
push edx
mov dword [esp + 0x40], 1
call fcn.0060da8c
mov eax, dword [esp + 0x58]
add esp, 0xc
push 0
push 0
push eax
call fcn.0062dd90
lea ecx, [esp + 0x4c]
mov dword [esp + 0x34], 0xffffffff
call fcn.00619871
mov eax, 0xfffffffb
jmp 0x5afee9
push 0
push 0
push str.siplIP::LossyResize___Height_Width_is_less_than_0
jmp 0x5afee2
push 0
push 0
push str.siplIP::LossyResize___Data_pointer_is_NULL
call fcn.0062dd90
xor eax, eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0x1c