Function at 0x41afe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x60
call fcn.00412c40
mov dword [esp + 4], 0x41d612
mov dword [esp], 2
call fcn.0040eea0
mov dword [esp + 4], 0x41d613
mov dword [esp], str.binutils
call fcn.00403898
mov dword [esp], str.binutils
call fcn.00404d24
lea eax, [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.004112f0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x41c020
mov dword [esp + 8], 0x41d630
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00412470
cmp eax, 0xffffffff
je 0x41b1ec
sub eax, 0x68
cmp eax, 0x33
ja case.0x41b076.105
jmp dword [eax*4 + 0x41d6d4]
mov eax, dword [0x42727c]
call fcn.00401680
test eax, eax
mov dword [0x41c0b8], eax
jns 0x41b037
mov esi, 1
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x42727c]
call fcn.00401680
test eax, eax
mov dword [0x41c0bc], eax
jns 0x41b037
jmp 0x41b090
mov eax, dword [0x42727c]
call fcn.004015f0
test eax, eax
mov dword [0x41c0c0], eax
jns 0x41b037
jmp 0x41b090
mov eax, dword [0x42727c]
call fcn.004015f0
test eax, eax
mov dword [0x41c0c4], eax
jns 0x41b037
jmp 0x41b090
mov eax, dword [0x42727c]
call fcn.00401510
test eax, eax
mov dword [0x41c0c8], eax
js 0x41b090
cmp eax, 6
je 0x41b1e5
jle 0x41b1dc
cmp eax, 0x3e
je 0x41b1ae
jl 0x41b1ae
sub eax, 0xb4
cmp eax, 1
ja 0x41b1ae
mov eax, 2
jmp 0x41b1b3
mov eax, dword [0x42727c]
call fcn.00401510
test eax, eax
mov dword [0x41c0cc], eax
js 0x41b090
cmp eax, 6
je 0x41b1d5
jle 0x41b1cc
cmp eax, 0x3e
je 0x41b1bd
jl 0x41b1bd
sub eax, 0xb4
cmp eax, 1
ja 0x41b1bd
mov eax, 2
jmp 0x41b1c2
mov eax, dword [str.elfedit]
mov dword [esp], eax
call fcn.00402280
jmp 0x41b037
mov eax, dword [sym.imp.msvcrt.dll__iob]
xor edx, edx
add eax, 0x20
call fcn.00401460
cmp dword [0x41c0c0], 0xffffffff
jne 0x41b201
cmp dword [0x41c0b8], 0xffffffff
jne 0x41b201
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edx, 1
add eax, 0x40
call fcn.00401460
mov eax, 3
mov dword [0x41c0b0], eax
jmp 0x41b037
mov eax, 3
mov dword [0x41c0b4], eax
jmp 0x41b037
test eax, eax
je 0x41b1bd
cmp eax, 3
jne 0x41b1bd
mov eax, 1
jmp 0x41b1c2
test eax, eax
je 0x41b1ae
cmp eax, 3
jne 0x41b1ae
mov eax, 1
jmp 0x41b1b3
mov eax, dword [0x41c308]
mov edx, dword [ebp + 8]
cmp eax, edx
je case.0x41b076.105
cmp dword [0x41c0c8], 0xffffffff
je 0x41b18a
xor esi, esi
cmp eax, edx
lea edi, [esp + 0x3c]
jl 0x41b23d
jmp 0x41b095
mov dword [esp], str._s_is_not_an_ordinary_file_n
call fcn.00403920
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004022e0
mov ebx, 1
or esi, ebx
mov eax, dword [0x41c308]
cmp eax, dword [ebp + 8]
jge 0x41b095
lea edx, [eax + 1]
mov dword [0x41c308], edx
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + eax*4]
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.msvcrt.dll__stat
test eax, eax
js 0x41b341
movzx eax, word [esp + 0x42]
and ax, 0xf000
cmp ax, 0x8000
jne 0x41b210
mov dword [esp + 4], 0x41d5c4
mov dword [esp], ebx
call sub.msvcrt.dll_fopen
test eax, eax
mov dword [esp + 0x2c], eax
je 0x41b3c3
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], 1
mov dword [esp + 4], 8
mov dword [esp], edi
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fread
sub eax, 1
jne 0x41b313
mov dword [esp + 8], 8
mov dword [esp + 4], str.__arch__n
mov dword [esp], edi
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x41b3af
mov dword [esp + 8], 8
mov dword [esp + 4], str.__thin__n
mov dword [esp], edi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x41b387
mov edx, dword [esp + 0x2c]
mov eax, ebx
mov ecx, 1
call fcn.00401ed0
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
jmp 0x41b22d
mov dword [esp], str._s:_Failed_to_read_files_magic_number_n
call fcn.00403920
mov dword [esp + 4], ebx
mov dword [esp], eax
mov ebx, 1
call fcn.004022e0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
jmp 0x41b22d
call sub.msvcrt.dll__errno
cmp dword [eax], 2
je 0x41b3e5
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp], str.Could_not_locate__s.__System_error_message:__s_n
mov dword [esp + 0x2c], eax
call fcn.00403920
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.004022e0
jmp 0x41b228
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_rewind
mov edx, dword [esp + 0x2c]
mov eax, ebx
mov dword [0x4270f0], 0
call fcn.004016e0
mov ebx, eax
jmp 0x41b302
mov edx, dword [esp + 0x2c]
mov eax, ebx
xor ecx, ecx
call fcn.00401ed0
mov ebx, eax
jmp 0x41b302
mov dword [esp], str.Input_file__s_is_not_readable_n
call fcn.00403920
mov dword [esp + 4], ebx
mov dword [esp], eax
mov ebx, 1
call fcn.004022e0
jmp 0x41b22d
mov dword [esp], str._s:_No_such_file_n
call fcn.00403920
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004022e0
jmp 0x41b228