Function at 0x4d0cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
test edi, edi
jne 0x4d0e1c
mov esi, dword [esp + 0x50]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], eax
test esi, esi
je 0x4d0ea9
cmp ecx, 0x40000000
ja 0x4d0fe3
mov ebp, dword [esp + 0x28]
mov eax, ebp
and eax, 0xfffffffc
add eax, edx
cmp edx, eax
mov dword [esp + 0x20], eax
jae 0x4d0d73
shr ebp, 2
mov ebx, edx
mov eax, ecx
mov esi, esi
lea edi, [edi]
cmp ebp, 0x1fff
jbe 0x4d0e95
sub ebp, 0x2000
mov esi, 0x2000
mov edi, dword [ebx]
test edi, edi
jne 0x4d0e26
xor edi, edi
jmp 0x4d0d50
mov ecx, dword [ebx + edi*4]
test ecx, ecx
jne 0x4d0e30
add edi, 1
cmp edi, esi
lea edx, [edi*4]
jb 0x4d0d45
add eax, edx
cmp edi, esi
jne 0x4d0e32
lea ebx, [ebx + esi*4]
cmp dword [esp + 0x20], ebx
ja 0x4d0d20
mov ecx, eax
mov eax, dword [esp + 0x28]
test al, 3
je 0x4d0fd9
mov esi, dword [esp + 0x2c]
add esi, eax
mov eax, dword [esp + 0x20]
cmp eax, esi
jae 0x4d102d
add eax, 4
cmp esi, eax
jae 0x4d0fb0
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x4d105e
mov ebx, eax
jmp 0x4d0db9
cmp byte [ebx], 0
jne 0x4d101e
add ebx, 1
cmp esi, ebx
ja 0x4d0db0
mov eax, ebx
sub eax, dword [esp + 0x20]
mov edx, ebx
add eax, ecx
cmp esi, ebx
je 0x4d0e1e
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
sub esi, edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp], eax
call fcn.004ec5f0
test eax, eax
jne 0x4d121e
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
cmp esi, eax
jne 0x4d113a
xor eax, eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
xor edx, edx
xor edi, edi
lea esi, [esi]
add eax, edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov ecx, esi
sub ecx, edi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 0x24], edx
mov edi, ecx
mov dword [esp], eax
call fcn.004ec5f0
test eax, eax
mov edx, dword [esp + 0x24]
jne 0x4d12c4
mov eax, dword [esp + 0x1c]
add edx, ebx
mov dword [esp + 8], edi
mov dword [esp + 4], 4
mov dword [esp], edx
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
cmp edi, eax
jne 0x4d1325
xor eax, eax
jmp 0x4d0d68
test ebp, ebp
je 0x4d0ea2
mov esi, ebp
xor ebp, ebp
jmp 0x4d0d37
xor esi, esi
jmp 0x4d0d68
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], edx
call sub.msvcrt.dll_fwrite
cmp ebx, eax
je 0x4d0e1c
mov eax, dword [0x4f7268]
test eax, eax
jle 0x4d0f9f
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.zstd:
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov eax, dword [0x4f7268]
cmp eax, 4
jle 0x4d0f25
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], 0x81a
mov dword [esp + 8], 0x4ff030
mov dword [esp + 4], str.Error_defined_at__s__line__i_:__n
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov eax, dword [0x4f7268]
test eax, eax
jle 0x4d0f9f
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x46
mov dword [esp + 4], str.error__i_:
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov eax, dword [0x4f7268]
test eax, eax
jle 0x4d0f9f
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.Write_error_:_cannot_write_decoded_block_:__s
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov eax, dword [0x4f7268]
test eax, eax
jle 0x4d0f9f
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 0x4ff164
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov dword [esp], 0x46
call sub.msvcrt.dll_exit
nop
lea esi, [esi]
mov dword [esp + 8], 0x845
mov dword [esp + 4], 0x4ff030
mov dword [esp], str.restEnd___restStart__restEnd___restStart__sizeof_size_t_
mov dword [esp + 0x24], ecx
call fcn.004ec460
mov ecx, dword [esp + 0x24]
jmp 0x4d0d9c
add esp, 0x3c
mov eax, ecx
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 + 0x20], ecx
call fcn.004ec5f0
test eax, eax
mov ecx, dword [esp + 0x20]
jne 0x4d106b
sub ecx, 0x40000000
mov edx, dword [esp + 0x2c]
jmp 0x4d0cfd
mov eax, ebx
sub eax, dword [esp + 0x20]
mov edx, ebx
add eax, ecx
jmp 0x4d0dce
mov dword [esp + 8], 0x845
mov dword [esp + 4], 0x4ff030
mov dword [esp], str.restEnd___restStart__restEnd___restStart__sizeof_size_t_
mov dword [esp + 0x24], ecx
call fcn.004ec460
mov edx, dword [esp + 0x20]
xor eax, eax
mov ecx, dword [esp + 0x24]
mov ebx, edx
jmp 0x4d0dc8
mov edx, eax
mov ebx, eax
xor eax, eax
add eax, ecx
jmp 0x4d0dce
mov eax, dword [0x4f7268]
test eax, eax
jle 0x4d112e
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.zstd:
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov eax, dword [0x4f7268]
cmp eax, 4
jle 0x4d10c7
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], 0x821
mov dword [esp + 8], 0x4ff030
mov dword [esp + 4], str.Error_defined_at__s__line__i_:__n
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov eax, dword [0x4f7268]
test eax, eax
jle 0x4d112e
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x5b
mov dword [esp + 4], str.error__i_:
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov eax, dword [0x4f7268]
test eax, eax
jle 0x4d112e
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.1_GB_skip_error__sparse_file_support_
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov ebp, dword [0x4f7268]
test ebp, ebp
jle 0x4d112e
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 0x4ff164
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov dword [esp], 0x5b
call sub.msvcrt.dll_exit
mov ecx, dword [0x4f7268]
test ecx, ecx
jle 0x4d1212
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.zstd:
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov eax, dword [0x4f7268]
cmp eax, 4
jle 0x4d1197
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], 0x84f
mov dword [esp + 8], 0x4ff030
mov dword [esp + 4], str.Error_defined_at__s__line__i_:__n
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov eax, dword [0x4f7268]
test eax, eax
jle 0x4d1212
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x5f
mov dword [esp + 4], str.error__i_:
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov edx, dword [0x4f7268]
test edx, edx
jle 0x4d1212
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.Write_error_:_cannot_write_end_of_decoded_block_:__s
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov eax, dword [0x4f7268]
test eax, eax
jle 0x4d1212
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 0x4ff164
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov dword [esp], 0x5f
call sub.msvcrt.dll_exit
mov ebx, dword [0x4f7268]
test ebx, ebx
jle 0x4d12b8
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.zstd:
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov eax, dword [0x4f7268]
cmp eax, 4
jg 0x4d140a
test eax, eax
jle 0x4d12b8
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x5c
mov dword [esp + 4], str.error__i_:
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov eax, dword [0x4f7268]
test eax, eax
jle 0x4d12b8
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.Sparse_skip_error___try___no_sparse
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov eax, dword [0x4f7268]
test eax, eax
jle 0x4d12b8
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 0x4ff164
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov dword [esp], 0x5c
call sub.msvcrt.dll_exit
mov eax, dword [0x4f7268]
test eax, eax
jle 0x4d12b8
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.zstd:
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov eax, dword [0x4f7268]
cmp eax, 4
jle 0x4d1252
mov dword [esp + 0xc], 0x835
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x4ff030
mov dword [esp + 4], str.Error_defined_at__s__line__i_:__n
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov eax, dword [0x4f7268]
jmp 0x4d1252
mov ebp, dword [0x4f7268]
test ebp, ebp
jle 0x4d13fe
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.zstd:
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov eax, dword [0x4f7268]
cmp eax, 4
jle 0x4d1382
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], 0x83a
mov dword [esp + 8], 0x4ff030
mov dword [esp + 4], str.Error_defined_at__s__line__i_:__n
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov eax, dword [0x4f7268]
test eax, eax
jle 0x4d13fe
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x5d
mov dword [esp + 4], str.error__i_:
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov edi, dword [0x4f7268]
test edi, edi
jle 0x4d13fe
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.Write_error_:_cannot_write_decoded_block_:__s
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov esi, dword [0x4f7268]
test esi, esi
jle 0x4d13fe
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 0x4ff164
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov dword [esp], 0x5d
call sub.msvcrt.dll_exit
mov dword [esp + 0xc], 0x84c
jmp 0x4d12fb