Function at 0x4128d0
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.0040a360
mov dword [esp + 4], 0x4145a2
mov dword [esp], 2
call sub.msvcrt.dll_setlocale
mov dword [esp + 4], 0x4145a3
mov dword [esp], str.binutils
call fcn.00403a20
mov dword [esp], str.binutils
call fcn.00404b40
lea eax, [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.00408930
lea esi, [esi]
nop
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x413020
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x4145c0
mov dword [esp], eax
call fcn.00409b80
cmp eax, 0xffffffff
je 0x412ac0
sub eax, 0x68
cmp eax, 0x33
ja case.0x41296f.105
jmp dword [eax*4 + 0x414664]
mov eax, dword [0x41b144]
call fcn.00401690
mov dword [0x4130b8], eax
test eax, eax
jns 0x412930
mov dword [esp + 0x2c], 1
mov eax, dword [esp + 0x2c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x41b144]
call fcn.00401690
mov dword [0x4130bc], eax
test eax, eax
jns 0x412930
jmp 0x412993
mov eax, dword [0x41b144]
call fcn.004015f0
mov dword [0x4130c0], eax
test eax, eax
jns 0x412930
jmp 0x412993
mov eax, dword [0x41b144]
call fcn.004015f0
mov dword [0x4130c4], eax
test eax, eax
jns 0x412930
jmp 0x412993
mov eax, dword [0x41b144]
call fcn.00401510
mov dword [0x4130c8], eax
test eax, eax
js 0x412993
cmp eax, 6
je 0x412c5a
jle 0x412aa2
sub eax, 0xb4
cmp eax, 1
seta al
movzx eax, al
add eax, 2
mov dword [0x4130b0], eax
jmp 0x412930
mov eax, dword [0x41b144]
call fcn.00401510
mov dword [0x4130cc], eax
test eax, eax
js 0x412993
cmp eax, 6
je 0x412c64
jle 0x412ab1
sub eax, 0xb4
cmp eax, 1
seta al
movzx eax, al
add eax, 2
mov dword [0x4130b4], eax
jmp 0x412930
mov eax, dword [str.elfedit]
mov dword [esp], eax
call fcn.004022a0
jmp 0x412930
cmp eax, 3
setne al
movzx eax, al
lea eax, [eax + eax + 1]
jmp 0x412a43
cmp eax, 3
setne al
movzx eax, al
lea eax, [eax + eax + 1]
jmp 0x412a83
mov eax, dword [0x413100]
mov ecx, dword [ebp + 8]
cmp eax, ecx
je case.0x41296f.105
mov edx, dword [0x4130c8]
and edx, dword [0x4130c0]
and edx, dword [0x4130b8]
add edx, 1
je case.0x41296f.105
mov dword [esp + 0x2c], 0
lea edi, [esp + 0x3c]
cmp eax, ecx
jl 0x412b92
jmp 0x41299b
mov dword [esp + 4], 0x414554
mov dword [esp], ebx
call sub.msvcrt.dll_fopen
mov esi, eax
test eax, eax
je 0x412c8d
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 8
mov dword [esp], edi
call sub.msvcrt.dll_fread
cmp eax, 1
jne 0x412c24
cmp dword [edi], 0x72613c21
je 0x412c6e
cmp dword [edi], 0x68743c21
je 0x412c99
mov dword [esp], esi
call sub.msvcrt.dll_rewind
mov eax, ebx
mov edx, esi
mov dword [0x41b0f0], 0
call fcn.004016f0
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_fclose
or dword [esp + 0x2c], ebx
mov eax, dword [0x413100]
cmp eax, dword [ebp + 8]
jge 0x41299b
lea edx, [eax + 1]
mov dword [0x413100], 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 0x412be3
movzx eax, word [esp + 0x42]
and ax, 0xf000
cmp ax, 0x8000
je 0x412b04
mov dword [esp], str._s_is_not_an_ordinary_file_n
call fcn.00403a80
mov dword [esp + 4], ebx
mov ebx, 1
mov dword [esp], eax
call fcn.00402350
jmp 0x412b80
call sub.msvcrt.dll__errno
cmp dword [eax], 2
je 0x412c4e
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 esi, eax
call fcn.00403a80
mov dword [esp + 4], ebx
mov ebx, 1
mov dword [esp + 8], esi
mov dword [esp], eax
call fcn.00402350
jmp 0x412b80
mov dword [esp], str._s:_Failed_to_read_files_magic_number_n
call fcn.00403a80
mov dword [esp + 4], ebx
mov ebx, 1
mov dword [esp], eax
call fcn.00402350
mov dword [esp], esi
call sub.msvcrt.dll_fclose
jmp 0x412b80
mov dword [esp], str._s:_No_such_file_n
jmp 0x412bcb
mov eax, 1
jmp 0x412a43
mov eax, 1
jmp 0x412a83
cmp dword [edi + 4], 0xa3e6863
jne 0x412b4f
mov eax, ebx
xor ecx, ecx
mov edx, esi
call fcn.00401ed0
mov ebx, eax
jmp 0x412b78
mov dword [esp], str.Input_file__s_is_not_readable_n
jmp 0x412bcb
cmp dword [edi + 4], 0xa3e6e69
jne 0x412b5b
mov eax, ebx
mov ecx, 1
mov edx, esi
call fcn.00401ed0
mov ebx, eax
jmp 0x412b78
mov eax, dword [sym.imp.msvcrt.dll__iob]
xor edx, edx
add eax, 0x20
call fcn.00401440
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edx, 1
add eax, 0x40
call fcn.00401440
nop
nop
nop
nop