Function at 0x401c00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov dword [esp], ebp
call fcn.00407b80
mov edi, eax
cmp eax, 0xffffffff
je 0x401d98
lea eax, [esi + 0x12]
mov dword [esp + 0x1c], eax
mov dword [esp + 4], eax
lea eax, [ebp + 0x3070]
mov dword [esp], eax
call fcn.00407df0
mov dword [esp + 0x18], eax
test eax, eax
je 0x401e46
mov edx, dword [ebp]
test edx, edx
je 0x401db0
mov dword [esp + 8], 0
mov eax, dword [esi + 4]
add eax, dword [ebp + 8]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0040ec20
test eax, eax
js 0x401e20
cmp byte [esi + 0x10], 1
je 0x401d60
mov dword [esp], 0x2000
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x401e6c
mov esi, dword [esi + 0xc]
xor edi, edi
test esi, esi
jne 0x401ce2
jmp 0x401da8
mov eax, dword [esp + 0x18]
mov dword [esp + 8], 1
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
call sub.msvcrt.dll_fwrite
test eax, eax
je 0x401df0
sub esi, dword [esp + 0x10]
sbb edi, dword [esp + 0x14]
mov edx, edi
or edx, esi
je 0x401da8
mov eax, 0x2000
mov dword [esp + 0x10], esi
cmp eax, esi
mov eax, 0
mov dword [esp + 0x14], edi
sbb eax, edi
jae 0x401d0a
mov dword [esp + 0x10], 0x2000
mov dword [esp + 0x14], 0
mov eax, dword [ebp]
mov dword [esp + 8], 1
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
call sub.msvcrt.dll_fread
test eax, eax
jne 0x401ca8
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov edi, 0xffffffff
mov dword [esp], str.fread
mov dword [esp + 8], eax
call fcn.00403060
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x401d76
mov dword [esp], 0
mov ecx, dword [esp + 0x18]
mov edx, esi
mov eax, ebp
call fcn.00401640
mov edi, eax
mov eax, dword [ebp]
test eax, eax
je 0x401d8c
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [ebp], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
add esp, 0x2c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
xor edi, edi
jmp 0x401d52
lea eax, [ebp + 0x70]
mov dword [esp + 4], 0x418184
mov dword [esp], eax
call fcn.00404700
mov dword [ebp], eax
mov edx, eax
test eax, eax
jne 0x401c52
mov eax, dword [esp + 0x1c]
mov dword [esp], str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov edi, 0xffffffff
mov dword [esp + 4], eax
call fcn.00402f00
jmp 0x401d76
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], str.Failed_to_extract__s:_failed_to_write_data_chunk__n
mov edi, 0xffffffff
mov dword [esp], str.fwrite
mov dword [esp + 8], eax
call fcn.00403060
jmp 0x401d52
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov edi, 0xffffffff
mov dword [esp], str.fseek
mov dword [esp + 8], eax
call fcn.00403060
jmp 0x401d76
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], str.Failed_to_extract__s:_failed_to_open_target_file__n
mov edi, 0xffffffff
mov dword [esp], str.fopen
mov dword [esp + 8], eax
call fcn.00403060
jmp 0x401d98
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
or edi, 0xffffffff
mov dword [esp], 0x4180d2
mov dword [esp + 8], eax
call fcn.00403060
jmp 0x401d76