Function at 0x5a9da0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x67e998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [esp + 0x50]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x28], ecx
je 0x5aa66f
mov eax, dword [esp + 0x44]
test eax, eax
je 0x5aa66f
mov ebp, dword [esp + 0x58]
test ebp, ebp
jle 0x5aa65a
mov eax, dword [esp + 0x5c]
test eax, eax
jle 0x5aa65a
mov ebx, dword [esp + 0x74]
test ebx, ebx
jle 0x5aa65a
mov eax, dword [esp + 0x78]
test eax, eax
jle 0x5aa65a
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x64]
sub eax, edi
sub ecx, esi
cmp eax, ecx
mov dword [esp + 0x24], eax
jne 0x5aa645
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x68]
mov eax, edx
sub ecx, edi
sub eax, esi
cmp eax, ecx
mov dword [esp + 0x20], eax
jne 0x5aa645
mov eax, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x4c]
push ebp
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x68]
mov dword [ecx + 4], esi
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x40]
call fcn.005b5960
test al, al
jne 0x5a9e8d
push 0
push 0
push str.SiplProcess___Replace:_Destn._rect_parameter_is_not_correct
call fcn.0062dd90
mov eax, 0xfffffffb
jmp 0x5aa682
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x64]
push ecx
push ebx
sub esp, 0x10
mov ecx, dword [esp + 0x84]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x88]
mov dword [edx + 4], edi
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
call fcn.005b5960
test al, al
jne 0x5a9eda
push 0
push 0
push str.SiplProcess___Replace:_Source_rect_parameter_is_not_correct
call fcn.0062dd90
mov eax, 0xfffffffb
jmp 0x5aa682
mov ecx, dword [esp + 0x64]
cmp ecx, ebx
jg 0x5aa630
cmp dword [esp + 0x6c], ebx
jg 0x5aa630
mov eax, dword [esp + 0x78]
cmp edi, eax
jg 0x5aa630
cmp dword [esp + 0x70], eax
jg 0x5aa630
mov eax, dword [esp + 0x48]
cmp eax, ebp
jg 0x5aa61b
cmp dword [esp + 0x50], ebp
jg 0x5aa61b
mov edx, dword [esp + 0x5c]
cmp esi, edx
jg 0x5aa61b
cmp dword [esp + 0x54], edx
jg 0x5aa61b
mov edx, dword [esp + 0x7c]
cmp edx, 8
jne 0x5a9fa2
cmp esi, dword [esp + 0x54]
jge 0x5aa5a4
imul esi, ebp
imul edi, ebx
add esi, eax
mov eax, dword [esp + 0x44]
add esi, eax
mov eax, dword [esp + 0x60]
add edi, ecx
mov ecx, dword [esp + 0x20]
add edi, eax
mov dword [esp + 0x78], esi
mov eax, edi
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x78]
mov edx, ecx
mov esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x78]
and ecx, 3
add eax, ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x5c]
add edx, ebp
dec ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x5c], ecx
jne 0x5a9f69
mov eax, 1
jmp 0x5aa682
jle 0x5aa017
cmp edx, 0x10
jg 0x5aa017
cmp esi, dword [esp + 0x54]
jge 0x5aa5a4
mov edx, dword [esp + 0x24]
imul esi, ebp
imul edi, ebx
add edx, edx
add esi, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x78], edx
lea edx, [ebp + ebp]
add edi, ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x74], edx
lea edx, [ebx + ebx]
mov ebx, dword [esp + 0x20]
lea ebp, [eax + esi*2]
mov dword [esp + 0x5c], edx
lea eax, [ecx + edi*2]
mov ecx, dword [esp + 0x78]
mov esi, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x74]
and ecx, 3
add ebp, edx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x5c]
add eax, esi
dec ebx
jne 0x5a9fe8
mov eax, 1
jmp 0x5aa682
cmp edx, 0x18
jne 0x5aa5de
mov eax, ebx
mov ecx, dword [0x6ed544]
imul eax, dword [esp + 0x78]
xor ebp, ebp
mov dword [esp + 0x7c], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x10], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, ebp
mov dword [esp + 0x3c], ebp
jge 0x5aa076
push ebp
push ebp
push str.Alloc1D:_Size_is_negative._Cant_allocate_memory
call fcn.0062dd90
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00619871
mov ebp, dword [sym.imp.KERNEL32.dll_HeapSize]
jmp 0x5aa0e7
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push ebp
mov dword [esp + 0x34], eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapSize]
push eax
call ebp
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x5aa114
cmp eax, dword [esp + 0x7c]
jl 0x5aa114
mov edx, dword [0x6f2528]
push ecx
inc edx
push 0
mov dword [esp + 0x28], ecx
mov dword [0x6f2528], edx
call ebx
push eax
call ebp
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
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00619871
mov ecx, dword [0x6ed544]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x3c], 1
test eax, eax
jge 0x5aa140
push 0
push 0
push str.Alloc1D:_Size_is_negative._Cant_allocate_memory
call fcn.0062dd90
jmp 0x5aa19b
lea edx, [esp + 0x10]
push str.Alloc1D:_Cannot_allocate_sufficient_memory__nTerminate_application_
push edx
call fcn.0060da8c
mov eax, dword [esp + 0x18]
add esp, 8
push 0
push 4
push eax
call fcn.0062dd90
cmp eax, 6
jne 0x5aa0d6
push 0
call fcn.005e246f
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push 0
mov dword [esp + 0x34], eax
call ebx
push eax
call ebp
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x5aa1d9
cmp eax, dword [esp + 0x7c]
jl 0x5aa1d9
mov edx, dword [0x6f2528]
push ecx
inc edx
push 0
mov dword [esp + 0x2c], ecx
mov dword [0x6f2528], edx
call ebx
push eax
call ebp
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
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00619871
mov ecx, dword [0x6ed544]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x3c], 2
test eax, eax
jge 0x5aa205
push 0
push 0
push str.Alloc1D:_Size_is_negative._Cant_allocate_memory
call fcn.0062dd90
jmp 0x5aa268
lea edx, [esp + 0x10]
push str.Alloc1D:_Cannot_allocate_sufficient_memory__nTerminate_application_
push edx
call fcn.0060da8c
mov eax, dword [esp + 0x18]
add esp, 8
push 0
push 4
push eax
call fcn.0062dd90
cmp eax, 6
jne 0x5aa19b
push 0
call fcn.005e246f
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push 0
mov dword [esp + 0x34], eax
call ebx
push eax
call ebp
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x5aa306
cmp eax, dword [esp + 0x7c]
jl 0x5aa306
mov edx, dword [0x6f2528]
push ecx
inc edx
push 0
mov dword [esp + 0x30], ecx
mov dword [0x6f2528], edx
call ebx
push eax
call ebp
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
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00619871
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x30], eax
xor eax, eax
xor ebp, ebp
cmp ecx, eax
mov dword [esp + 0x10], edx
jle 0x5aa2ca
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x2c]
mov cl, byte [eax]
inc eax
mov byte [edx + ebp], cl
mov edx, dword [esp + 0x10]
mov cl, byte [eax]
inc eax
mov byte [edx + ebp], cl
mov edx, dword [esp + 0x30]
mov cl, byte [eax]
inc eax
mov byte [edx + ebp], cl
mov ecx, dword [esp + 0x7c]
inc ebp
cmp ebp, ecx
jl 0x5aa2a1
xor eax, eax
mov ebp, dword [esp + 0x58]
mov ecx, dword [0x6ed544]
imul ebp, dword [esp + 0x5c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x60], ecx
cmp ebp, eax
mov dword [esp + 0x3c], 3
jge 0x5aa336
push eax
push eax
push str.Alloc1D:_Size_is_negative._Cant_allocate_memory
call fcn.0062dd90
jmp 0x5aa3a0
lea edx, [esp + 0x10]
push str.Alloc1D:_Cannot_allocate_sufficient_memory__nTerminate_application_
push edx
call fcn.0060da8c
mov eax, dword [esp + 0x18]
add esp, 8
push 0
push 4
push eax
call fcn.0062dd90
cmp eax, 6
jne 0x5aa268
push 0
call fcn.005e246f
push ebp
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push 0
mov dword [esp + 0x84], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapSize]
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x5aa5ae
cmp eax, ebp
jl 0x5aa5ae
mov eax, dword [0x6f2528]
push ecx
inc eax
push 0
mov dword [esp + 0x1c], ecx
mov dword [0x6f2528], eax
call ebx
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
lea ecx, [esp + 0x60]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00619871
push 0
lea ecx, [esp + 0x1c]
push ebp
push ecx
call fcn.00402932
push 0
lea edx, [esp + 0x2c]
push ebp
push edx
call fcn.00402932
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x94], ecx
add esp, 0x18
xor ecx, ecx
test ebp, ebp
mov dword [esp + 0x60], eax
mov dword [esp + 0x30], edx
jle 0x5aa416
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x60]
mov dl, byte [eax]
inc eax
mov byte [ecx + ebx], dl
mov ebx, dword [esp + 0x7c]
mov dl, byte [eax]
inc eax
mov byte [ecx + ebx], dl
mov ebx, dword [esp + 0x30]
mov dl, byte [eax]
inc eax
mov byte [ecx + ebx], dl
inc ecx
cmp ecx, ebp
jl 0x5aa3f3
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x74]
sub esp, 0x10
mov ebx, dword [esp + 0x74]
mov edx, esp
mov ebp, dword [esp + 0x70]
mov dword [edx], eax
mov eax, dword [esp + 0x88]
mov dword [edx + 4], edi
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x38]
push ecx
push ebx
push ebp
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x6c]
sub esp, 0x10
mov ecx, dword [esp + 0x84]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x88]
mov dword [edx + 4], esi
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x48]
push ecx
mov dword [edx + 0xc], eax
call fcn.005b7d00
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0xac]
add esp, 0x38
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x74]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x88]
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
push eax
push ebx
push ebp
mov dword [ecx + 0xc], edx
mov edx, dword [esp + 0x6c]
sub esp, 0x10
mov eax, dword [esp + 0x84]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x88]
mov dword [ecx + 4], esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x4c]
push eax
mov dword [ecx + 0xc], edx
call fcn.005b7d00
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
add esp, 0x38
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x74]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov edx, dword [esp + 0x40]
push edx
push ebx
push ebp
mov dword [eax + 0xc], ecx
sub esp, 0x10
mov eax, esp
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x84]
mov dword [eax], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov edx, dword [esp + 0x50]
push edx
mov dword [eax + 0xc], ecx
call fcn.005b7d00
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push ebx
push ebp
push eax
mov eax, dword [esp + 0x88]
push ecx
push edx
push eax
call fcn.005b5ac0
add esp, 0x50
lea ecx, [esp + 0x20]
push ecx
call fcn.004013e3
lea edx, [esp + 0x28]
push edx
call fcn.004013e3
lea eax, [esp + 0x30]
push eax
call fcn.004013e3
lea ecx, [esp + 0x20]
push ecx
call fcn.004013e3
lea edx, [esp + 0x28]
push edx
call fcn.004013e3
lea eax, [esp + 0x30]
push eax
call fcn.004013e3
add esp, 0x18
mov eax, 1
jmp 0x5aa682
lea edx, [esp + 0x60]
push str.Alloc1D:_Cannot_allocate_sufficient_memory__nTerminate_application_
push edx
call fcn.0060da8c
mov eax, dword [esp + 0x68]
add esp, 8
push 0
push 4
push eax
call fcn.0062dd90
cmp eax, 6
jne 0x5aa3a0
push 0
call fcn.005e246f
mov ecx, dword [0x6ed544]
mov dword [esp + 0x78], ecx
push edx
lea edx, [esp + 0x7c]
push str.SiplProcess___Replace:_Does_not_support__d_bits_per_pixel
push edx
mov dword [esp + 0x48], 4
call fcn.0060da8c
add esp, 0xc
lea ecx, [esp + 0x78]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00619871
mov eax, 0xfffffffb
jmp 0x5aa682
push 0
push 0
push str.SiplProcess___Replace:_Destn._rect_is_going_out_of_bounds
call fcn.0062dd90
mov eax, 0xfffffffb
jmp 0x5aa682
push 0
push 0
push str.SiplProcess___Replace:_Source_rect_is_going_out_of_bounds
call fcn.0062dd90
mov eax, 0xfffffffb
jmp 0x5aa682
push 0
push 0
push str.SiplProcess___Replace:_rect_dimensions_are_not_matching
call fcn.0062dd90
mov eax, 0xfffffffb
jmp 0x5aa682
push 0
push 0
push str.SiplProcess___Replace:_Width_Height_parameter_is_less_thanor__0
call fcn.0062dd90
mov eax, 0xfffffffb
jmp 0x5aa682
push 0
push 0
push str.SiplProcess___Replace:_Data_pointer_is_NULL
call fcn.0062dd90
mov eax, 0xfffffff4
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret 0x3c