Function at 0x42c7b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x44dd70]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], 0
jl 0x42c7cf
cmp dword [ebp + 8], 0xa
jl 0x42c7f9
mov eax, dword [ebp + 8]
push eax
push 0x447f04
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
push 0x447f24
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
mov eax, 0xfffffffc
jmp 0x42cb6a
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x14
add ecx, 0x4546d0
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x9c]
movzx eax, byte [edx + 0x12]
test eax, eax
je 0x42c841
mov ecx, dword [ebp + 8]
push ecx
push str.Opendf:_logical_unit__d_is_busy
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
push 0x447f48
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
or eax, 0xffffffff
jmp 0x42cb6a
push 0x447f4c
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov ecx, dword [ebp - 0x9c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x9c]
cmp dword [edx], 0
jne 0x42c890
mov eax, dword [ebp + 0x10]
push eax
push str.Opendf:_problem_openning__s
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
push 0x447f6c
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
mov eax, 0xfffffffe
jmp 0x42cb6a
mov ecx, dword [ebp - 0x9c]
mov byte [ecx + 0x12], 1
mov edx, dword [ebp + 0x14]
mov dword [ebp - 8], edx
xor eax, eax
mov word [ebp - 0xc], ax
jmp 0x42c8b1
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
test eax, eax
je 0x42c8f3
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
cmp edx, 0x25
jne 0x42c8f1
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
cmp edx, 0x25
jne 0x42c8e5
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x42c8f1
mov cx, word [ebp - 0xc]
add cx, 1
mov word [ebp - 0xc], cx
jmp 0x42c8a8
mov edx, dword [ebp - 0x9c]
mov eax, dword [edx]
push eax
push 0x80
lea ecx, [ebp - 0x98]
push ecx
call dword [sym.imp.MSVCR90.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x42c95b
mov edx, dword [ebp + 0x10]
push edx
push 0x447f70
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
push 0x447f8c
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov edx, dword [ebp - 0x9c]
mov byte [edx + 0x12], 0
mov eax, 0xfffffff9
jmp 0x42cb6a
lea eax, [ebp - 0x98]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
push edx
push 0x447f90
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
je 0x42c988
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x42c964
xor ecx, ecx
mov word [ebp - 0xa0], cx
jmp 0x42c9a5
mov dx, word [ebp - 0xa0]
add dx, 1
mov word [ebp - 0xa0], dx
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x42c9f1
push 0x447f94
mov edx, dword [ebp - 8]
push edx
call fcn.0042cfa0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42c9cb
jmp 0x42c9f1
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
push ecx
push 0x447f98
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
je 0x42c9ef
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x42c9cb
jmp 0x42c993
mov ax, word [ebp - 0xa0]
add ax, 1
mov word [ebp - 0xa0], ax
movsx ecx, word [ebp - 0xa0]
movsx edx, word [ebp - 0xc]
cmp ecx, edx
je 0x42ca47
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push str.Opendf:_error_reading_file__s__cant_read__s_in__s
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 0x10
push 0x447fd0
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
mov eax, 0xfffffffd
jmp 0x42cb6a
lea eax, [ebp - 0x98]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x9c]
mov word [ecx + 0x10], ax
push 0
mov edx, dword [ebp - 0x9c]
movzx eax, word [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
jmp 0x42ca99
mov eax, dword [ebp - 0x9c]
mov cx, word [eax + 0x10]
add cx, 1
mov edx, dword [ebp - 0x9c]
mov word [edx + 0x10], cx
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax]
push ecx
push 1
push 1
lea edx, [ebp - 1]
push edx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x42cafb
mov eax, dword [ebp + 0x10]
push eax
push str.Opendf:_file__s_read_error
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
push 0x447ff0
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x9c]
mov byte [eax + 0x12], 0
mov eax, 0xfffffff9
jmp 0x42cb6a
movsx ecx, byte [ebp - 1]
push ecx
push 0x447ff4
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
jne 0x42cb14
jmp 0x42cb19
jmp 0x42ca81
push 0
push 0
mov edx, dword [ebp - 0x9c]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCR90.dll__strdup]
add esp, 4
mov edx, dword [ebp - 0x9c]
mov dword [edx + 8], eax
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.MSVCR90.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 0x9c]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x9c]
mov dword [edx + 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043cde0
mov esp, ebp
pop ebp
ret