Function at 0x402cc0
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.00413490
test eax, eax
jne 0x402d90
mov esi, dword [esp + 0x48]
mov ebp, eax
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 0x402dc0
test eax, eax
jne 0x402ec0
add esp, 0x2c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str._s:_failed_to_seek_to_first_archive_header_n
mov ebp, 1
call fcn.00403920
mov ecx, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004022e0
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 0x402f20
mov esi, dword [esp + 0x1c]
mov edi, str._SYM64_
mov ecx, 0x10
repe cmpsb byte [esi], byte es:[edi]
je 0x402f42
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x402f63
mov esi, dword [esp + 0x1c]
mov edi, str.__
mov ecx, 0x10
repe cmpsb byte [esi], byte es:[edi]
jne 0x402d83
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 0x402ef0
test eax, eax
js 0x402fbc
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 0x402fe6
mov edx, dword [esp + 0x48]
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 0xc], edx
call sub.msvcrt.dll_fread
cmp eax, 1
jne 0x402f84
mov eax, dword [ebx + 0x20]
test al, 1
je 0x402eab
mov edi, dword [esp + 0x48]
mov edi, dword [edi + 4]
lea edx, [edi - 1]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x48]
test edx, edx
mov dword [edi + 4], edx
js 0x402fff
add dword [edi], 1
mov edx, dword [ebx + 0x1c]
xor ebp, ebp
mov byte [edx + eax], 0
jmp 0x402d83
mov dword [esp], str._s:_failed_to_read_archive_header_n
mov ebp, 1
call fcn.00403920
mov edx, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004022e0
add esp, 0x2c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str._s:_long_name_table_is_too_small___size___ld__n
mov ebp, 1
call fcn.00403920
mov dword [esp + 8], edi
mov edi, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.004022e0
jmp 0x402d83
mov ecx, dword [esp + 0x50]
mov edx, 4
mov eax, ebx
call fcn.00402430
test eax, eax
jne 0x402df8
mov ebp, 1
jmp 0x402d83
mov ecx, dword [esp + 0x50]
mov dword [ebx + 0x30], 1
mov edx, 8
mov eax, ebx
call fcn.00402430
test eax, eax
jne 0x402df8
jmp 0x402f38
mov dword [esp], str._s_has_no_archive_index_n
call fcn.00403920
mov edi, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.0040b784
jmp 0x402df8
mov eax, dword [ebx + 0x1c]
mov ebp, 1
mov dword [esp], eax
call fcn.0041ab20
mov dword [ebx + 0x1c], 0
mov dword [esp], str._s:_failed_to_read_long_symbol_name_string_table_n
call fcn.00403920
mov edi, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.004022e0
jmp 0x402d83
mov dword [esp], str._s:_long_name_table_is_too_big___size__0x_lx__n
mov ebp, 1
call fcn.00403920
mov edx, dword [esp + 0x44]
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004022e0
jmp 0x402d83
mov dword [esp], str.Out_of_memory_reading_long_symbol_names_in_archive_n
call fcn.00403920
mov dword [esp], eax
call fcn.004022e0
jmp 0x402f38
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sub.msvcrt.dll__filbuf
mov eax, dword [ebx + 0x20]
jmp 0x402eab