Function at 0x402430
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
add eax, 0x64
mov esi, edx
sub esp, 0x4c
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 0x20], ecx
call sub.msvcrt.dll_strtoul
test eax, eax
mov ebp, eax
mov ecx, dword [esp + 0x20]
js 0x402640
mov eax, dword [ebx + 0x28]
add ebp, 1
and ebp, 0xfffffffe
test ecx, ecx
lea eax, [ebp + eax + 0x3c]
mov dword [ebx + 0x28], eax
je 0x4024f0
cmp esi, 8
ja 0x402780
cmp ebp, esi
jb 0x4024d4
mov eax, dword [ebx + 4]
lea edi, [esp + 0x38]
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], edi
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fread
cmp esi, eax
je 0x402570
mov ebx, dword [ebx]
mov dword [esp], str._s:_failed_to_read_archive_index_n
call fcn.00403920
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.004022e0
xor eax, eax
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebx]
mov dword [esp], str._s:_the_archive_index_is_empty_n
call fcn.00403920
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.004022e0
jmp 0x4024ca
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.00413490
test eax, eax
jne 0x402665
mov eax, dword [ebx + 4]
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
lea eax, [ebx + 0x34]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 0x3c
je 0x402560
test eax, eax
je 0x402560
mov ebx, dword [ebx]
mov dword [esp], str._s:_failed_to_read_archive_header_following_archive_index_n
call fcn.00403920
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004022e0
jmp 0x4024ca
add esp, 0x4c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
mov dword [esp + 4], esi
sub ebp, esi
call fcn.00402340
mov edi, eax
mov dword [ebx + 8], eax
mov eax, edx
imul eax, esi
mov ecx, edx
mov dword [ebx + 0xc], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], eax
mov eax, esi
mul edi
add edx, dword [esp + 0x28]
cmp dword [esp + 0x24], edx
jb 0x402610
ja 0x4025b1
cmp ebp, eax
jb 0x402610
cmp ecx, 0
ja 0x402610
cmp edi, ebp
ja 0x402610
mov eax, esi
imul eax, edi
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [esp + 0x28], eax
je 0x40271c
mov eax, dword [ebx + 4]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edi, eax
mov eax, dword [ebx + 8]
xor eax, edi
mov edx, eax
or edx, dword [ebx + 0xc]
je 0x402673
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.0041ab20
jmp 0x4024b0
mov ebx, dword [ebx]
mov dword [esp], str._s:_the_archive_index_is_supposed_to_have_0x_lx_entries_of__d_bytes__but_the_size_is_only_0x_lx_n
call fcn.00403920
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004022e0
jmp 0x4024ca
mov ebx, dword [ebx]
mov dword [esp], str._s:_invalid_archive_header_size:__ld_n
call fcn.00403920
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.004022e0
xor eax, eax
jmp 0x4024cc
mov ebx, dword [ebx]
mov dword [esp], str._s:_failed_to_skip_archive_symbol_table_n
jmp 0x402543
mov eax, esi
imul eax, edi
sub ebp, eax
lea eax, [edi*8]
mov dword [esp + 0x2c], ebp
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [ebx + 0x10], eax
je 0x40279c
test edi, edi
je 0x4026d6
mov ebp, dword [esp + 0x28]
xor edi, edi
mov dword [esp + 0x20], esi
lea esi, [esi]
lea edi, [edi]
lea esi, [eax + edi*8]
mov eax, dword [esp + 0x20]
mov dword [esp], ebp
add edi, 1
mov dword [esp + 4], eax
call fcn.00402340
add ebp, dword [esp + 0x20]
mov dword [esi + 4], edx
xor edx, edx
mov dword [esi], eax
cmp edx, dword [ebx + 0xc]
jbe 0x402710
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.0041ab20
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x402735
mov ebx, dword [ebx]
mov dword [esp], str._s:_the_archive_has_an_index_but_no_symbols_n
call fcn.00403920
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.004022e0
jmp 0x4024ca
jb 0x402717
cmp edi, dword [ebx + 8]
jae 0x4026d6
mov eax, dword [ebx + 0x10]
jmp 0x4026b0
mov dword [esp], str.Out_of_memory_whilst_trying_to_read_archive_symbol_index_n
call fcn.00403920
mov dword [esp], eax
call fcn.004022e0
jmp 0x4024ca
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [ebx + 0x14], eax
je 0x4027c1
mov edx, dword [ebx + 4]
mov edi, dword [esp + 0x2c]
mov dword [ebx + 0x18], edi
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp edi, eax
je 0x40250f
mov ebx, dword [ebx]
mov dword [esp], str._s:_failed_to_read_archive_index_symbol_table_n
jmp 0x402543
mov dword [esp + 8], 0x1f5
mov dword [esp + 4], str..._.._.._binutils_2.28_binutils_elfcomm.c
mov dword [esp], str.sizeof_ar_index___sizeof_integer_buffer
call sub.msvcrt.dll__assert
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.0041ab20
mov dword [esp], str.Out_of_memory_whilst_trying_to_convert_the_archive_symbol_index_n
call fcn.00403920
mov dword [esp], eax
call fcn.004022e0
jmp 0x4024ca
mov dword [esp], str.Out_of_memory_whilst_trying_to_read_archive_index_symbol_table_n
call fcn.00403920
mov dword [esp], eax
call fcn.004022e0
jmp 0x4024ca