Function at 0x40194f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0x18]
mov byte [ebp - 0x1c], al
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x401983
cmp dword [ebp + 0xc], 0
jne 0x4019b5
mov dword [esp + 8], 0x11b
mov dword [esp + 4], str.getFileImage
mov dword [esp], str.e_0_31m_ERROR___s:_d:_e_0m
call sub.msvcrt.dll_printf
mov dword [esp], str._ERROR__The_input_parameter_is_a_null_pointer
call sub.msvcrt.dll_puts
mov eax, 0xffffffff
jmp 0x401ce9
movzx eax, byte [0x40f020]
cmp al, 1
jne 0x4019ef
mov dword [esp + 8], 0x11e
mov dword [esp + 4], str.getFileImage
mov dword [esp], str.e_0_34m_DEBUG___s:_d:_e_0m
call sub.msvcrt.dll_printf
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.file_s_n
call sub.msvcrt.dll_printf
movzx eax, byte [0x40f020]
cmp al, 1
jne 0x401a29
mov dword [esp + 8], 0x11f
mov dword [esp + 4], str.getFileImage
mov dword [esp], str.e_0_34m_DEBUG___s:_d:_e_0m
call sub.msvcrt.dll_printf
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.offset0x_x_n
call sub.msvcrt.dll_printf
movzx eax, byte [0x40f020]
cmp al, 1
jne 0x401a63
mov dword [esp + 8], 0x120
mov dword [esp + 4], str.getFileImage
mov dword [esp], str.e_0_34m_DEBUG___s:_d:_e_0m
call sub.msvcrt.dll_printf
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov dword [esp], str.size0x_x_n
call sub.msvcrt.dll_printf
movzx eax, byte [0x40f020]
cmp al, 1
jne 0x401a9e
mov dword [esp + 8], 0x121
mov dword [esp + 4], str.getFileImage
mov dword [esp], str.e_0_34m_DEBUG___s:_d:_e_0m
call sub.msvcrt.dll_printf
movzx eax, byte [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.IsInterleaveMode0x_x_n
call sub.msvcrt.dll_printf
mov dword [esp + 4], 0x40c064
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401af3
mov dword [esp + 8], 0x125
mov dword [esp + 4], str.getFileImage
mov dword [esp], str.e_0_31m_ERROR___s:_d:_e_0m
call sub.msvcrt.dll_printf
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str._ERROR__open__s_fail_n
call sub.msvcrt.dll_printf
mov eax, 0xffffffff
jmp 0x401ce9
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
cmp byte [ebp - 0x1c], 0
jne 0x401ccf
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
je 0x401cd9
mov dword [esp + 8], 0x12f
mov dword [esp + 4], str.getFileImage
mov dword [esp], str.e_0_31m_ERROR___s:_d:_e_0m
call sub.msvcrt.dll_printf
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], str.Return_size_is_not_enough__return_size0x_x__read_size0x_x_n
call sub.msvcrt.dll_printf
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, 0xffffffff
jmp 0x401ce9
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
cmp eax, edx
jbe 0x401ba4
mov eax, edx
mov dword [ebp - 0x14], eax
movzx eax, byte [0x40f020]
cmp al, 1
jne 0x401bff
mov dword [esp + 8], 0x139
mov dword [esp + 4], str.getFileImage
mov dword [esp], str.e_0_34m_DEBUG___s:_d:_e_0m
call sub.msvcrt.dll_printf
mov eax, dword [ebp + 0x1c]
imul eax, dword [ebp - 0xc]
lea edx, [eax*8]
mov eax, dword [ebp + 0x10]
add edx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.i_d__offset0x_x__size0x_x_n
call sub.msvcrt.dll_printf
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [ebp + 0x1c]
imul eax, dword [ebp - 0xc]
lea edx, [eax*8]
mov eax, dword [ebp + 0x10]
add eax, edx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
je 0x401cbf
mov dword [esp + 8], 0x13f
mov dword [esp + 4], str.getFileImage
mov dword [esp], str.e_0_31m_ERROR___s:_d:_e_0m
call sub.msvcrt.dll_printf
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], str.Return_size_is_not_enough__return_size0x_x__read_size0x_x__size0x_x_n
call sub.msvcrt.dll_printf
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, 0xffffffff
jmp 0x401ce9
mov eax, dword [ebp - 0x14]
sub dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x14]
add dword [ebp + 0xc], eax
add dword [ebp - 0xc], 1
cmp dword [ebp + 0x14], 0
jne 0x401b98
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, 0
leave
ret