Function at 0x401e58
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x180
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x110], rcx
mov qword [rbp + 0x118], rdx
mov dword [rbp + 0x120], r8d
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x70], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x48], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x20], 0
mov ecx, dword [rbp + 0x120]
mov rdx, qword [rbp + 0x118]
lea rax, [rbp + 0x40]
mov dword [rsp + 0x20], 0
mov r9d, ecx
mov r8, rdx
mov rdx, qword [rbp + 0x110]
mov rcx, rax
call fcn.00403c09
test eax, eax
je 0x401f0e
mov dword [rbp + 0xfc], 1
jmp 0x4022ac
mov dword [rbp + 0xfc], 0
mov eax, dword [rbp + 0x80]
mov edx, eax
mov rax, qword [rbp + 0x118]
mov r8d, 0
mov rcx, rax
call sub.msvcrt.dll_fseek
test eax, eax
je 0x401f56
mov rdx, qword [rbp + 0x110]
lea rcx, str._s:_failed_to_seek_to_next_archive_header_n
call fcn.00402b7f
mov eax, 1
jmp 0x4022df
mov rdx, qword [rbp + 0x118]
lea rax, [rbp + 0x40]
add rax, 0x4c
mov r9, rdx
mov r8d, 0x3c
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov qword [rbp + 0xf0], rax
cmp qword [rbp + 0xf0], 0x3c
je 0x401fbc
cmp qword [rbp + 0xf0], 0
je 0x4022ab
mov rdx, qword [rbp + 0x110]
lea rcx, [0x0040a1b0]
call fcn.00402b7f
mov dword [rbp + 0xfc], 1
jmp 0x4022ac
lea rax, [rbp + 0x40]
add rax, 0x86
mov r8d, 2
lea rdx, [0x0040a1d3]
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x402001
mov rax, qword [rbp + 0x40]
mov rdx, rax
lea rcx, [0x0040a1d8]
call fcn.00402b7f
mov dword [rbp + 0xfc], 1
jmp 0x4022ac
mov eax, dword [rbp + 0x80]
add eax, 0x3c
mov dword [rbp + 0x80], eax
lea rax, [rbp + 0x40]
add rax, 0x7c
mov r8d, 0xa
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_strtoul
mov dword [0x0040f044], eax
mov eax, dword [0x0040f044]
and eax, 1
test eax, eax
je 0x40204d
mov eax, dword [0x0040f044]
add eax, 1
mov dword [0x0040f044], eax
lea rdx, [rbp - 0x50]
lea rax, [rbp + 0x40]
mov rcx, rax
call fcn.004040f8
mov qword [rbp + 0xe8], rax
cmp qword [rbp + 0xe8], 0
jne 0x402090
mov rdx, qword [rbp + 0x110]
lea rcx, str._s:_bad_archive_file_name_n
call fcn.00402b7f
mov dword [rbp + 0xfc], 1
jmp 0x4022ac
mov rax, qword [rbp + 0xe8]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov qword [rbp + 0xe0], rax
mov rcx, qword [rbp + 0xe8]
lea rdx, [rbp - 0x50]
lea rax, [rbp + 0x40]
mov r8, rcx
mov rcx, rax
call fcn.004044db
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0
jne 0x4020f3
mov rdx, qword [rbp + 0x110]
lea rcx, str._s:_bad_archive_file_name_n
call fcn.00402b7f
mov dword [rbp + 0xfc], 1
jmp 0x4022ac
cmp dword [rbp + 0x120], 0
je 0x4021f0
mov eax, dword [rbp + 0x7c]
test eax, eax
jne 0x4021f0
mov rax, qword [rbp + 0xe0]
mov edx, eax
mov rax, qword [rbp + 0xe8]
mov r8d, edx
mov rdx, rax
mov rcx, qword [rbp + 0x110]
call fcn.004035fc
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0xd0], 0
jne 0x40214d
mov dword [rbp + 0xfc], 1
jmp 0x4022ac
mov rax, qword [rbp + 0xd0]
lea rdx, [0x0040a21c]
mov rcx, rax
call sub.msvcrt.dll_fopen
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
jne 0x4021a8
mov rax, qword [rbp + 0xd0]
mov rdx, rax
lea rcx, str.Input_file__s_is_not_readable_n
call fcn.00402b7f
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sub.msvcrt.dll_free
mov dword [rbp + 0xfc], 1
jmp 0x4022ac
mov eax, dword [rbp + 0x7c]
mov dword [0x0040f040], eax
mov rdx, qword [rbp + 0xc8]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call fcn.00401dc3
or dword [rbp + 0xfc], eax
mov rax, qword [rbp + 0xc8]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sub.msvcrt.dll_free
jmp 0x402297
cmp dword [rbp + 0x120], 0
je 0x40225b
mov eax, dword [rbp + 0x7c]
add eax, 0x3c
mov dword [0x0040f040], eax
mov edx, dword [0x0040f040]
mov rax, qword [rbp - 0x48]
mov r8d, 0
mov rcx, rax
call sub.msvcrt.dll_fseek
test eax, eax
je 0x402240
mov rax, qword [rbp - 0x50]
mov rdx, rax
lea rcx, str._s:_failed_to_seek_to_archive_member_n
call fcn.00402b7f
mov dword [rbp + 0xfc], 1
jmp 0x4022ac
mov rdx, qword [rbp - 0x48]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call fcn.00401dc3
or dword [rbp + 0xfc], eax
jmp 0x402297
mov eax, dword [rbp + 0x80]
mov dword [0x0040f040], eax
mov edx, dword [rbp + 0x80]
mov eax, dword [0x0040f044]
add eax, edx
mov dword [rbp + 0x80], eax
mov rdx, qword [rbp + 0x118]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call fcn.00401dc3
or dword [rbp + 0xfc], eax
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sub.msvcrt.dll_free
jmp 0x401f18
nop
mov rax, qword [rbp - 0x48]
test rax, rax
je 0x4022c1
mov rax, qword [rbp - 0x48]
mov rcx, rax
call sub.msvcrt.dll_fclose
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.00404073
lea rax, [rbp + 0x40]
mov rcx, rax
call fcn.00404073
mov eax, dword [rbp + 0xfc]
add rsp, 0x180
pop rbp
ret