Function at 0x402d00
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 + 8], 0
mov dword [ebx], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 0xc], 0
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x28], 8
mov dword [esp + 0xc], 0
mov dword [esp + 4], 8
mov dword [esp + 8], 0
mov dword [esp], eax
call fcn.0040ac00
test eax, eax
jne 0x402ef3
mov edx, dword [esp + 0x48]
mov ebp, eax
lea eax, [ebx + 0x34]
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 1
mov dword [esp + 0xc], edx
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fread
cmp eax, 0x3c
je 0x402de0
test eax, eax
jne 0x402f42
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]
seta al
sbb al, 0
test al, al
je 0x402f20
mov esi, dword [esp + 0x1c]
mov edi, str._SYM64_
mov ecx, 0x10
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
je 0x402fa0
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x402fc4
mov esi, dword [esp + 0x1c]
mov edi, str.__
mov ecx, 0x10
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
jne 0x402dcf
lea eax, [ebx + 0x64]
movzx esi, byte [ebx + 0x6e]
mov byte [ebx + 0x6e], 0
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_strtoul
mov edi, eax
mov dword [ebx + 0x20], eax
mov eax, esi
mov byte [ebx + 0x6e], al
cmp edi, 7
jbe 0x402f70
test edi, edi
js 0x402fe5
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
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x40302d
mov edx, dword [esp + 0x48]
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 1
jne 0x40300f
mov eax, dword [ebx + 0x20]
test al, 1
je 0x402ee5
mov edi, dword [esp + 0x48]
mov ecx, dword [edi + 4]
mov edx, ecx
mov dword [esp + 0x1c], ecx
sub edx, 1
mov dword [edi + 4], edx
js 0x403046
add dword [edi], 1
mov edx, dword [ebx + 0x1c]
xor ebp, ebp
mov byte [edx + eax], 0
jmp 0x402dcf
mov dword [esp], str._s:_failed_to_seek_to_first_archive_header_n
mov ebp, 1
call fcn.00403a80
mov esi, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.00402350
add esp, 0x2c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x50]
mov edx, 4
mov eax, ebx
call fcn.004024a0
test eax, eax
jne 0x402e26
mov ebp, 1
jmp 0x402dcf
mov dword [esp], str._s:_failed_to_read_archive_header_n
call fcn.00403a80
mov ecx, dword [esp + 0x44]
mov ebp, 1
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00402350
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.00403a80
mov ecx, dword [esp + 0x44]
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00402350
jmp 0x402dcf
mov dword [ebx + 0x30], 1
mov ecx, dword [esp + 0x50]
mov edx, 8
mov eax, ebx
call fcn.004024a0
test eax, eax
jne 0x402e26
jmp 0x402f38
mov dword [esp], str._s_has_no_archive_index_n
call fcn.00403a80
mov edi, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.00402330
jmp 0x402e26
mov dword [esp], str._s:_long_name_table_is_too_big___size__0x_lx__n
mov ebp, 1
call fcn.00403a80
mov dword [esp + 8], edi
mov edi, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.00402350
jmp 0x402dcf
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [ebx + 0x1c], 0
mov dword [esp], str._s:_failed_to_read_long_symbol_name_string_table_n
jmp 0x402f49
mov dword [esp], str.Out_of_memory_reading_long_symbol_names_in_archive_n
call fcn.00403a80
mov dword [esp], eax
call fcn.00402350
jmp 0x402f38
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sub.msvcrt.dll__filbuf
mov eax, dword [ebx + 0x20]
jmp 0x402ee5