Function at 0x402e50
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov dword [ebx], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x28], 8
mov dword [esp + 8], 0
mov dword [esp + 4], 8
mov dword [esp], eax
call fcn.00405b60
test eax, eax
mov ebp, eax
jne 0x402f20
mov esi, dword [esp + 0x48]
lea eax, [ebx + 0x34]
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], esi
call sub.msvcrt.dll_fread
cmp eax, 0x3c
je 0x402f43
test eax, eax
jne 0x403040
add esp, 0x2c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x44]
mov dword [esp], str._s:_failed_to_seek_to_first_archive_header_n
mov ebp, 1
mov dword [esp + 4], eax
call fcn.004022f0
add esp, 0x2c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x1c]
mov edi, str._
mov ecx, 0x10
repe cmpsb byte [esi], byte es:[edi]
je 0x403085
mov esi, dword [esp + 0x1c]
mov edi, str._SYM64_
mov ecx, 0x10
repe cmpsb byte [esi], byte es:[edi]
je 0x4030b0
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x4030d1
mov esi, dword [esp + 0x1c]
mov edi, str.__
mov ecx, 0x10
repe cmpsb byte [esi], byte es:[edi]
jne 0x402f13
lea eax, [ebx + 0x64]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_strtoul
cmp eax, 7
mov edi, eax
mov dword [ebx + 0x20], eax
jbe 0x403063
test eax, eax
js 0x403120
mov eax, dword [ebx + 0x28]
lea eax, [edi + eax + 0x3c]
mov dword [ebx + 0x28], eax
lea eax, [edi + 1]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [ebx + 0x1c], eax
je 0x403142
mov ecx, dword [esp + 0x48]
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 0xc], ecx
call sub.msvcrt.dll_fread
cmp eax, 1
jne 0x4030f0
mov eax, dword [ebx + 0x20]
test al, 1
je 0x40302a
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x1c], edx
lea edx, [edx - 1]
test edx, edx
mov dword [ecx + 4], edx
js 0x403153
add dword [ecx], 1
mov edx, dword [ebx + 0x1c]
xor ebp, ebp
mov byte [edx + eax], 0
jmp 0x402f13
mov eax, dword [esp + 0x44]
mov dword [esp], str._s:_failed_to_read_archive_header_n
mov ebp, 1
mov dword [esp + 4], eax
call fcn.004022f0
add esp, 0x2c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov ebp, 1
mov dword [esp], str._s:_long_name_table_is_too_small___size___ld__n
mov dword [esp + 4], eax
call fcn.004022f0
jmp 0x402f13
mov ecx, dword [esp + 0x50]
mov edx, 4
mov eax, ebx
call fcn.00402530
test eax, eax
jne 0x402f7b
mov ebp, 1
jmp 0x402f13
mov ecx, dword [esp + 0x50]
mov dword [ebx + 0x30], 1
mov edx, 8
mov eax, ebx
call fcn.00402530
test eax, eax
jne 0x402f7b
jmp 0x40309d
mov eax, dword [esp + 0x44]
mov dword [esp], str._s_has_no_archive_index_n
mov dword [esp + 4], eax
call fcn.004022d0
jmp 0x402f7b
mov eax, dword [ebx + 0x1c]
mov ebp, 1
mov dword [esp], eax
call fcn.0040be80
mov eax, dword [esp + 0x44]
mov dword [ebx + 0x1c], 0
mov dword [esp], str._s:_failed_to_read_long_symbol_name_string_table_n
mov dword [esp + 4], eax
call fcn.004022f0
jmp 0x402f13
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov ebp, 1
mov dword [esp], str._s:_long_name_table_is_too_big___size__0x_lx__n
mov dword [esp + 4], eax
call fcn.004022f0
jmp 0x402f13
mov dword [esp], str.Out_of_memory_reading_long_symbol_names_in_archive_n
call fcn.004022f0
jmp 0x40309d
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sub.msvcrt.dll__filbuf
jmp 0x417c80