Function at 0x424d3f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
nop
mov eax, dword [ebp + 0xc]
push eax
call fcn.004032c8
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
test ecx, ecx
je 0x424d71
mov eax, dword [ebp - 4]
mov ecx, eax
add eax, 1
mov dword [ebp - 4], eax
mov eax, dword [0x42fb18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040470f
add esp, 8
mov dword [0x42fb18], eax
mov eax, dword [0x42fb18]
test eax, eax
je 0x424da3
jmp 0x424dd0
mov eax, dword [ebp + 0x10]
and eax, 1
test eax, eax
je 0x424dc3
mov eax, dword [ebp + 0xc]
push eax
mov eax, str.file__s_not_found
push eax
call fcn.00404020
add esp, 8
mov eax, 0xffffffff
mov dword [ebp - 0x40], eax
jmp 0x4250eb
mov eax, dword [ebp + 0x10]
and eax, 4
test eax, eax
je 0x424df2
mov eax, dword [ebp + 8]
push eax
call fcn.0040a2f7
add esp, 4
mov dword [ebp - 0x40], eax
jmp 0x4250dc
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
test ecx, ecx
je 0x424e1f
mov eax, 0x42eae5
push eax
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll__stricmp
add esp, 8
test eax, eax
je 0x424e1f
jmp 0x424e33
mov eax, dword [ebp + 8]
push eax
call fcn.00416d71
add esp, 4
mov dword [ebp - 0x40], eax
jmp 0x4250dc
mov eax, 0x42eae7
push eax
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_strcmp
add esp, 8
test eax, eax
je 0x424e52
jmp 0x424e6c
mov eax, 1
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0041b1f9
add esp, 8
mov dword [ebp - 0x40], eax
jmp 0x4250dc
mov eax, 0x42eae9
push eax
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_strcmp
add esp, 8
test eax, eax
je 0x424e8b
jmp 0x424ea5
mov eax, 0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0041b1f9
add esp, 8
mov dword [ebp - 0x40], eax
jmp 0x4250dc
mov eax, 0x42eaeb
push eax
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll__stricmp
add esp, 8
test eax, eax
je 0x424ec4
jmp 0x424ee4
mov eax, dword [0x42fb18]
add eax, 8
mov ecx, dword [eax]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00423d47
add esp, 8
mov dword [ebp - 0x40], eax
jmp 0x4250dc
mov eax, dword [0x42fb18]
add eax, 8
mov ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
mov eax, 0x34
push eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.msvcrt.dll__read
add esp, 0xc
mov dword [ebp - 0x40], eax
mov eax, 0
push eax
mov eax, 0
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.msvcrt.dll__lseek
add esp, 0xc
mov eax, dword [ebp - 0x40]
cmp eax, 0
jg 0x424f47
mov eax, str.could_not_read_header
push eax
call fcn.00404020
add esp, 4
jmp 0x4250fc
mov eax, dword [ebp - 0x40]
cmp eax, 0x34
je 0x424f58
jmp 0x4250ae
movzx eax, byte [ebp - 0x38]
cmp eax, 0x7f
jne 0x425035
movzx eax, byte [ebp - 0x37]
cmp eax, 0x45
jne 0x425035
movzx eax, byte [ebp - 0x36]
cmp eax, 0x4c
jne 0x425035
movzx eax, byte [ebp - 0x35]
cmp eax, 0x46
jne 0x425035
mov eax, dword [0x42fb18]
add eax, 0xc
mov ecx, 0
mov dword [eax], ecx
movzx eax, word [ebp - 0x28]
cmp eax, 1
jne 0x424fc7
mov eax, 0
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0041fd5c
add esp, 0xc
mov dword [ebp - 0x40], eax
jmp 0x425030
movzx eax, word [ebp - 0x28]
cmp eax, 3
jne 0x42501d
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, 0
jne 0x424fef
mov eax, 0xffffffff
mov dword [ebp - 0x40], eax
jmp 0x425018
mov eax, dword [ebp + 0x10]
and eax, 2
cmp eax, 0
mov eax, 0
setne al
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00420d90
add esp, 0x10
mov dword [ebp - 0x40], eax
jmp 0x425030
mov eax, str.unrecognized_ELF_file
push eax
call fcn.00404020
add esp, 4
jmp 0x4250fc
jmp 0x4250dc
mov eax, 8
push eax
mov eax, str.__arch__n
push eax
lea eax, [ebp - 0x38]
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
cmp eax, 0
jne 0x42507e
mov eax, dword [0x42fb18]
add eax, 0xc
mov ecx, 0
mov dword [eax], ecx
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00420b47
add esp, 8
mov dword [ebp - 0x40], eax
jmp 0x4250dc
mov eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004239f7
add esp, 8
test eax, eax
je 0x4250ae
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00423aa2
add esp, 8
mov dword [ebp - 0x40], eax
jmp 0x4250dc
mov eax, dword [ebp + 8]
push eax
call fcn.00421980
add esp, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
cmp eax, 0
jge 0x4250dc
mov eax, str.unrecognized_file_type
push eax
call fcn.00404020
add esp, 4
jmp 0x4250fc
mov eax, dword [0x42fb18]
push eax
call fcn.004048bf
add esp, 4
mov eax, dword [ebp - 0x44]
mov dword [0x42fb18], eax
mov eax, dword [ebp - 0x40]
jmp 0x425106
mov eax, 0xffffffff
mov dword [ebp - 0x40], eax
jmp 0x4250dc
leave
ret