Function at 0x41ebd0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [esp + 0x54]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x58]
mov dword [esp + 0x28], ecx
test esi, esi
jne 0x41ed8b
mov ebx, dword [esp + 0x50]
test ebx, ebx
je 0x41ed95
cmp edx, 0x40000000
ja 0x41ee27
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov eax, ecx
and eax, 0xfffffffc
add eax, esi
mov dword [esp + 0x24], eax
cmp esi, eax
jae 0x41ecd6
shr ecx, 2
mov edi, ecx
lea esi, [esi]
nop
cmp edi, 0x1fff
jbe 0x41edf8
sub edi, 0x2000
mov ebp, 0x2000
xor eax, eax
jmp 0x41ec5b
add eax, 1
cmp eax, ebp
jae 0x41ede0
mov ecx, dword [esi + eax*4]
lea ebx, [eax*4]
test ecx, ecx
je 0x41ec50
add edx, ebx
mov ecx, ebp
mov dword [esp + 0xc], 1
sub ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], edx
mov dword [esp + 8], 0
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call sub.cygwin1.dll__fseeko64
test eax, eax
jne 0x41f1e0
mov eax, dword [esp + 0x20]
add ebx, esi
mov dword [esp + 4], 4
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
call sub.cygwin1.dll_fwrite
cmp dword [esp + 0x1c], eax
jne 0x41f2e4
lea esi, [esi + ebp*4]
xor edx, edx
cmp dword [esp + 0x24], esi
ja 0x41ec30
mov eax, dword [esp + 0x28]
test al, 3
je 0x41ee1d
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
add ecx, eax
cmp edi, ecx
jae 0x41ee8b
lea eax, [edi + 4]
cmp ecx, eax
jae 0x41ee8b
cmp byte [edi], 0
mov eax, edi
jne 0x41ee5e
lea ebx, [edi + 1]
cmp ecx, ebx
jbe 0x41ed2f
cmp byte [edi + 1], 0
jne 0x41ee60
lea ebx, [edi + 2]
cmp ecx, ebx
jbe 0x41ed2f
cmp byte [edi + 2], 0
jne 0x41ee60
lea ebx, [eax + 3]
mov eax, ebx
sub eax, dword [esp + 0x24]
add eax, edx
cmp ecx, ebx
je 0x41ed8d
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
sub ecx, ebx
mov dword [esp + 0xc], 1
mov esi, ecx
mov dword [esp + 8], 0
mov dword [esp], eax
call sub.cygwin1.dll__fseeko64
test eax, eax
jne 0x41f0bc
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sub.cygwin1.dll_fwrite
cmp esi, eax
jne 0x41f09e
xor eax, eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov edi, ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.cygwin1.dll_fwrite
cmp edi, eax
je 0x41ed8b
cmp dword [0x42601c], 0
jg 0x41efa4
cmp dword [0x42601c], 4
jg 0x41efd5
mov dword [esp], 0x46
call sub.cygwin1.dll_exit
lea esi, [esi]
add ebx, 4
add edx, ebx
cmp eax, ebp
jne 0x41ec6b
add esi, ebx
jmp 0x41eccc
test edi, edi
je 0x41ee05
mov ebp, edi
xor edi, edi
jmp 0x41ec47
mov eax, dword [esp + 0x24]
lea esi, [esi]
cmp eax, esi
ja 0x41ee10
mov dword [esp + 0x24], eax
jmp 0x41ecd6
add esp, 0x3c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0x40000000
mov dword [esp + 8], 0
mov dword [esp], eax
mov dword [esp + 0x58], edx
call sub.cygwin1.dll__fseeko64
mov edx, dword [esp + 0x58]
test eax, eax
jne 0x41ee6d
sub edx, 0x40000000
jmp 0x41ec0b
mov ebx, edi
mov eax, ebx
sub eax, dword [esp + 0x24]
add eax, edx
jmp 0x41ed3b
cmp dword [0x42601c], 0
jg 0x41eeaf
cmp dword [0x42601c], 4
jg 0x41eee0
mov dword [esp], 0x5b
call sub.cygwin1.dll_exit
mov dword [esp + 0xc], str.restEnd___restStart__restEnd___restStart__sizeof_size_t_
mov dword [esp + 8], str.FIO_fwriteSparse
mov dword [esp + 4], 0x845
mov dword [esp], str.fileio.c
call sub.cygwin1.dll___assert_func
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], str.zstd:
call sub.cygwin1.dll_fwrite
cmp dword [0x42601c], 4
jle 0x41ef08
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], 0x821
mov dword [esp + 8], str.fileio.c
mov dword [esp + 4], str.Error_defined_at__s__line__i_:__n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
cmp dword [0x42601c], 0
jle 0x41ee7f
call sub.cygwin1.dll___getreent
mov dword [esp + 8], 0x5b
mov dword [esp + 4], str.error__i_:
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
cmp dword [0x42601c], 0
jle 0x41ee7f
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x25
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], str.1_GB_skip_error__sparse_file_support_
call sub.cygwin1.dll_fwrite
cmp dword [0x42601c], 0
jle 0x41ee7f
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], 0x429bfd
call sub.cygwin1.dll_fwrite
jmp 0x41ee7f
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], str.zstd:
call sub.cygwin1.dll_fwrite
cmp dword [0x42601c], 4
jle 0x41effd
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], 0x819
mov dword [esp + 8], str.fileio.c
mov dword [esp + 4], str.Error_defined_at__s__line__i_:__n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
cmp dword [0x42601c], 0
jle 0x41edd1
call sub.cygwin1.dll___getreent
mov dword [esp + 8], 0x46
mov dword [esp + 4], str.error__i_:
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
cmp dword [0x42601c], 0
jle 0x41edd1
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov ebx, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Write_error_:_cannot_write_decoded_block_:__s
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
cmp dword [0x42601c], 0
jle 0x41edd1
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], 0x429bfd
call sub.cygwin1.dll_fwrite
jmp 0x41edd1
cmp dword [0x42601c], 0
jg 0x41f0e2
cmp dword [0x42601c], 4
jg 0x41f113
mov dword [esp], 0x5f
call sub.cygwin1.dll_exit
cmp dword [0x42601c], 0
jg 0x41f2f9
cmp dword [0x42601c], 4
jg 0x41f32a
mov dword [esp], 0x5c
call sub.cygwin1.dll_exit
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], str.zstd:
call sub.cygwin1.dll_fwrite
cmp dword [0x42601c], 4
jle 0x41f13b
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], 0x84e
mov dword [esp + 8], str.fileio.c
mov dword [esp + 4], str.Error_defined_at__s__line__i_:__n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
cmp dword [0x42601c], 0
jle 0x41f0b0
call sub.cygwin1.dll___getreent
mov dword [esp + 8], 0x5f
mov dword [esp + 4], str.error__i_:
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
cmp dword [0x42601c], 0
jle 0x41f0b0
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov ebx, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Write_error_:_cannot_write_end_of_decoded_block_:__s
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
cmp dword [0x42601c], 0
jle 0x41f0b0
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], 0x429bfd
call sub.cygwin1.dll_fwrite
jmp 0x41f0b0
mov edx, dword [0x42601c]
test edx, edx
jle 0x41f0d6
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], str.zstd:
call sub.cygwin1.dll_fwrite
mov eax, dword [0x42601c]
cmp eax, 4
jle 0x41f24d
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], 0x835
mov dword [esp + 8], str.fileio.c
mov dword [esp + 4], str.Error_defined_at__s__line__i_:__n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [0x42601c]
test eax, eax
jle 0x41f0d6
call sub.cygwin1.dll___getreent
mov dword [esp + 8], 0x5c
mov dword [esp + 4], str.error__i_:
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
cmp dword [0x42601c], 0
jle 0x41f0d6
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x23
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], str.Sparse_skip_error___try___no_sparse
call sub.cygwin1.dll_fwrite
cmp dword [0x42601c], 0
jle 0x41f0d6
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], 0x429bfd
call sub.cygwin1.dll_fwrite
jmp 0x41f0d6
mov eax, dword [0x42601c]
test eax, eax
jg 0x41f364
mov dword [esp], 0x5d
call sub.cygwin1.dll_exit
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], str.zstd:
call sub.cygwin1.dll_fwrite
cmp dword [0x42601c], 4
jle 0x41f352
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], 0x84c
mov dword [esp + 8], str.fileio.c
mov dword [esp + 4], str.Error_defined_at__s__line__i_:__n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
cmp dword [0x42601c], 0
jg 0x41f255
jmp 0x41f0d6
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], str.zstd:
call sub.cygwin1.dll_fwrite
mov eax, dword [0x42601c]
cmp eax, 4
jle 0x41f3c3
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], 0x839
mov dword [esp + 8], str.fileio.c
mov dword [esp + 4], str.Error_defined_at__s__line__i_:__n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [0x42601c]
test eax, eax
jle 0x41f2ed
call sub.cygwin1.dll___getreent
mov dword [esp + 8], 0x5d
mov dword [esp + 4], str.error__i_:
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
cmp dword [0x42601c], 0
jle 0x41f2ed
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov ebx, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Write_error_:_cannot_write_decoded_block_:__s
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
cmp dword [0x42601c], 0
jle 0x41f2ed
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], 0x429bfd
call sub.cygwin1.dll_fwrite
jmp 0x41f2ed