Function at 0x403c09
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sub.msvcrt.dll__strdup
mov rdx, rax
mov rax, qword [rbp + 0x10]
mov qword [rax], rdx
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x20]
mov qword [rax + 8], rdx
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x10], 0
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x18], 0
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x20], 0
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x28], 0
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x38], 0
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x3c], 0
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp + 0x28]
mov dword [rax + 0x44], edx
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x48], 0
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x40], 8
mov rax, qword [rbp + 0x20]
mov r8d, 0
mov edx, 8
mov rcx, rax
call sub.msvcrt.dll_fseek
test eax, eax
je 0x403cec
mov rax, qword [rbp + 0x18]
mov rdx, rax
lea rcx, str._s:_failed_to_seek_to_first_archive_header_n
call fcn.00402b7f
mov eax, 1
jmp 0x403fbd
mov rax, qword [rbp + 0x10]
add rax, 0x4c
mov rdx, qword [rbp + 0x20]
mov r9, rdx
mov r8d, 0x3c
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0x3c
je 0x403d47
cmp qword [rbp - 8], 0
jne 0x403d2a
mov eax, 0
jmp 0x403fbd
mov rax, qword [rbp + 0x18]
mov rdx, rax
lea rcx, str._s:_failed_to_read_archive_header_n
call fcn.00402b7f
mov eax, 1
jmp 0x403fbd
mov rax, qword [rbp + 0x10]
add rax, 0x4c
mov r8d, 0x10
lea rdx, str._
mov rcx, rax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x403d8a
mov eax, dword [rbp + 0x30]
mov r8d, eax
mov edx, 4
mov rcx, qword [rbp + 0x10]
call fcn.00403794
test eax, eax
jne 0x403df1
mov eax, 1
jmp 0x403fbd
mov rax, qword [rbp + 0x10]
add rax, 0x4c
mov r8d, 0x10
lea rdx, str._SYM64_
mov rcx, rax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x403dd8
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x48], 1
mov eax, dword [rbp + 0x30]
mov r8d, eax
mov edx, 8
mov rcx, qword [rbp + 0x10]
call fcn.00403794
test eax, eax
jne 0x403df1
mov eax, 1
jmp 0x403fbd
cmp dword [rbp + 0x30], 0
je 0x403df1
mov rax, qword [rbp + 0x18]
mov rdx, rax
lea rcx, str._s_has_no_archive_index_n
call sub.msvcrt.dll_printf
mov rax, qword [rbp + 0x10]
add rax, 0x4c
mov r8d, 0x10
lea rdx, str.__
mov rcx, rax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x403fb8
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax + 0x86]
mov byte [rbp - 9], al
mov rax, qword [rbp + 0x10]
mov byte [rax + 0x86], 0
mov rax, qword [rbp + 0x10]
add rax, 0x7c
mov r8d, 0xa
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_strtoul
mov edx, eax
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x38], edx
mov rax, qword [rbp + 0x10]
movzx edx, byte [rbp - 9]
mov byte [rax + 0x86], dl
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x38]
cmp eax, 7
ja 0x403e94
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x38]
mov rax, qword [rbp + 0x18]
mov r8d, edx
mov rdx, rax
lea rcx, str._s:_long_name_table_is_too_small___size___ld__n
call fcn.00402b7f
mov eax, 1
jmp 0x403fbd
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x38]
test eax, eax
jns 0x403ec6
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x38]
mov rax, qword [rbp + 0x18]
mov r8d, edx
mov rdx, rax
lea rcx, str._s:_long_name_table_is_too_big___size__0x_lx__n
call fcn.00402b7f
mov eax, 1
jmp 0x403fbd
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x40]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x38]
add eax, edx
lea edx, [rax + 0x3c]
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x40], edx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x38]
add eax, 1
mov eax, eax
mov rcx, rax
call sub.msvcrt.dll_malloc
mov rdx, rax
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x30], rdx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
jne 0x403f22
lea rcx, str.Out_of_memory_reading_long_symbol_names_in_archive_n
call fcn.00402b7f
mov eax, 1
jmp 0x403fbd
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x38]
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x30]
mov rdx, qword [rbp + 0x20]
mov r9, rdx
mov r8d, 1
mov rdx, rcx
mov rcx, rax
call sub.msvcrt.dll_fread
cmp rax, 1
je 0x403f87
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp + 0x18]
mov rdx, rax
lea rcx, str._s:_failed_to_read_long_symbol_name_string_table_n
call fcn.00402b7f
mov eax, 1
jmp 0x403fbd
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x38]
and eax, 1
test eax, eax
je 0x403fa1
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_getc
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax + 0x30]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x38]
mov eax, eax
add rax, rdx
mov byte [rax], 0
mov eax, 0
add rsp, 0x30
pop rbp
ret