Function at 0x4024a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, edx
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
add eax, 0x64
sub esp, 0x4c
movzx edx, byte [eax + 0xa]
mov byte [eax + 0xa], 0
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
mov byte [esp + 0x20], dl
call sub.msvcrt.dll_strtoul
movzx edx, byte [esp + 0x20]
mov esi, eax
mov byte [ebx + 0x6e], dl
test eax, eax
js 0x402790
mov eax, dword [ebx + 0x28]
add esi, 1
and esi, 0xfffffffe
lea eax, [esi + eax + 0x3c]
mov dword [ebx + 0x28], eax
test edi, edi
je 0x4026d4
cmp esi, ebp
jb 0x402740
mov eax, dword [ebx + 4]
lea edi, [esp + 0x38]
mov dword [esp + 8], ebp
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], edi
call sub.msvcrt.dll_fread
cmp ebp, eax
jne 0x4026b0
mov dword [esp], edi
sub esi, ebp
mov dword [esp + 4], ebp
call fcn.004023b0
mov ecx, esi
mov dword [esp + 0x28], esi
mov edi, eax
mov eax, edx
mov dword [esp + 0x20], esi
imul eax, ebp
mov dword [ebx + 0xc], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], 0
mov esi, eax
mov eax, ebp
mov dword [ebx + 8], edi
mul edi
add edx, esi
cmp ecx, eax
mov esi, ecx
mov ecx, dword [esp + 0x24]
sbb ecx, edx
jb 0x402760
cmp esi, edi
mov eax, dword [esp + 0x24]
sbb eax, dword [esp + 0x2c]
jb 0x402760
mov eax, edi
imul eax, ebp
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4027f0
mov eax, dword [ebx + 4]
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
xor eax, esi
mov ecx, eax
or ecx, edi
jne 0x4026a0
mov eax, esi
mov ecx, dword [esp + 0x28]
imul eax, ebp
sub ecx, eax
lea eax, [esi*8]
mov dword [esp], eax
mov dword [esp + 0x28], ecx
call sub.msvcrt.dll_malloc
mov dword [ebx + 0x10], eax
test eax, eax
je 0x402841
or edi, esi
je 0x402634
mov edi, dword [esp + 0x2c]
xor esi, esi
mov dword [esp + 0x20], ebp
jmp 0x402608
mov eax, dword [ebx + 0x10]
lea ebp, [eax + esi*8]
mov eax, dword [esp + 0x20]
mov dword [esp], edi
add esi, 1
mov dword [esp + 4], eax
call fcn.004023b0
add edi, dword [esp + 0x20]
mov dword [ebp + 4], edx
xor edx, edx
mov dword [ebp], eax
mov eax, edx
cmp esi, dword [ebx + 8]
sbb eax, dword [ebx + 0xc]
jb 0x402605
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x28]
test eax, eax
je 0x402809
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebx + 0x14], eax
test eax, eax
je 0x402828
mov edx, dword [ebx + 4]
mov edi, dword [esp + 0x28]
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 0x4026fa
mov ebx, dword [ebx]
mov dword [esp], str._s:_failed_to_read_archive_index_symbol_table_n
jmp 0x4027c9
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_free
lea esi, [esi]
mov ebx, dword [ebx]
mov dword [esp], str._s:_failed_to_read_archive_index_n
call fcn.00403a80
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00402350
add esp, 0x4c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], esi
sar esi, 0x1f
mov dword [esp + 0xc], 1
mov dword [esp + 8], esi
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.0040ac00
test eax, eax
jne 0x4027c0
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 0x402729
test eax, eax
jne 0x4027e0
add esp, 0x4c
mov eax, 1
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.00403a80
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00402350
jmp 0x4026ca
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.00403a80
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00402350
jmp 0x4026ca
mov ebx, dword [ebx]
mov dword [esp], str._s:_invalid_archive_header_size:__ld_n
call fcn.00403a80
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00402350
add esp, 0x4c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebx]
mov dword [esp], str._s:_failed_to_skip_archive_symbol_table_n
call fcn.00403a80
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00402350
jmp 0x4026ca
mov ebx, dword [ebx]
mov dword [esp], str._s:_failed_to_read_archive_header_following_archive_index_n
jmp 0x4027c9
mov dword [esp], str.Out_of_memory_whilst_trying_to_read_archive_symbol_index_n
call fcn.00403a80
mov dword [esp], eax
call fcn.00402350
jmp 0x4026ca
mov ebx, dword [ebx]
mov dword [esp], str._s:_the_archive_has_an_index_but_no_symbols_n
call fcn.00403a80
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00402350
jmp 0x4026ca
mov dword [esp], str.Out_of_memory_whilst_trying_to_read_archive_index_symbol_table_n
call fcn.00403a80
mov dword [esp], eax
call fcn.00402350
jmp 0x4026ca
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp], str.Out_of_memory_whilst_trying_to_convert_the_archive_symbol_index_n
call fcn.00403a80
mov dword [esp], eax
call fcn.00402350
jmp 0x4026ca