Function at 0x409e60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx]
cmp edx, 1
jg 0x44f6a6
xor al, al
test al, al
jne 0x44f6ad
mov eax, dword [ebx]
mov dword [ebx + 4], 0
mov byte [eax], 0
xor al, al
mov byte [ebp - 1], al
jmp 0x409ea0
cmp dword [edi + 8], 0
je 0x44f6da
mov ecx, dword [edi + 0xc]
xor esi, esi
nop
cmp ecx, dword [edi + 8]
je 0x409f9c
mov eax, dword [edi + 4]
mov al, byte [ecx + eax]
inc ecx
mov byte [ebp + esi + 0xb], al
inc esi
mov dword [edi + 0xc], ecx
cmp esi, 1
jb 0x409eb0
add dword [edi + 0x10], esi
adc dword [edi + 0x14], 0
test esi, esi
je 0x409fca
mov al, byte [ebp + 0xb]
mov byte [ebp - 1], 1
cmp al, 0xd
je 0x409f2a
cmp al, 0xa
je 0x409f45
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx]
cmp edx, 1
jg 0x44f71c
xor al, al
test al, al
jne 0x44f723
mov eax, dword [ebx + 4]
add eax, 2
cmp dword [ebx + 8], eax
jb 0x409f50
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dl, byte [ebp + 0xb]
mov byte [ecx + eax], dl
inc dword [ebx + 4]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov byte [ecx + eax], 0
jmp 0x409ea0
push 1
lea eax, [ebp + 0xb]
mov ecx, edi
push eax
call fcn.00409fe0
test eax, eax
je 0x409f45
cmp byte [ebp + 0xb], 0xa
jne 0x44f807
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x41c2
jae 0x44f76d
add eax, eax
test eax, eax
je 0x44f7fd
add eax, 0xf
and eax, 0xfffffff0
push eax
mov dword [ebx + 8], eax
call fcn.0042015b
mov esi, eax
add esp, 4
mov eax, dword [ebx]
test eax, eax
je 0x409f95
mov ecx, dword [ebx + 4]
inc ecx
push ecx
push eax
push esi
call fcn.00421170
push dword [ebx]
call fcn.00420164
add esp, 0x10
mov dword [ebx], esi
jmp 0x409f0e
push 0
lea eax, [ebp - 8]
push eax
push 0x10000
push dword [edi + 4]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409ecd
mov eax, dword [ebp - 8]
test eax, eax
je 0x409ecd
jmp 0x44f70b
mov al, byte [ebp - 1]
test al, al
jne 0x409f45
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, 1
jmp 0x409e7e
lea eax, [edx - 1]
push 4
mov dword [ecx], eax
call fcn.0042012b
push 0x10
mov dword [eax], 1
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], 0x10
call fcn.0042015b
add esp, 8
mov dword [ebx], eax
jmp 0x409e86
push 1
lea eax, [ebp - 0x18]
mov dword [edi + 8], 0
push eax
push 0
push 0
push dword [edi]
mov dword [edi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x14], eax
jmp 0x409eaa
mov dword [edi + 8], eax
xor ecx, ecx
mov dword [edi + 0xc], 0
jmp 0x409eb9
mov al, 1
jmp 0x409efb
lea eax, [edx - 1]
push 4
mov dword [ecx], eax
call fcn.0042012b
add esp, 4
mov dword [eax], 1
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 4]
add eax, 2
jne 0x44f74a
mov eax, 0x10
jmp 0x44f750
add eax, 0xf
and eax, 0xfffffff0
push eax
mov dword [ebx + 8], eax
call fcn.0042015b
mov ecx, dword [ebx + 4]
mov esi, eax
inc ecx
push ecx
push dword [ebx]
push esi
call fcn.00421170
jmp 0x409f92
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
test eax, eax
jns 0x44f77d
fadd qword [0x4c91b0]
cmp eax, 0x2000000
jae 0x44f7aa
fmul qword [0x4c43d8]
fnstcw word [ebp - 4]
movzx eax, word [ebp - 4]
or eax, 0xc00
mov dword [ebp - 0xc], eax
fldcw word [ebp - 0xc]
fistp qword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
fldcw word [ebp - 4]
jmp 0x409f5d
cmp eax, 0x8000000
jae 0x44f7d7
fmul qword [0x4c43d0]
fnstcw word [ebp - 4]
movzx eax, word [ebp - 4]
or eax, 0xc00
mov dword [ebp - 0xc], eax
fldcw word [ebp - 0xc]
fistp qword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
fldcw word [ebp - 4]
jmp 0x409f5d
fmul qword [0x4c43c8]
fnstcw word [ebp - 4]
movzx eax, word [ebp - 4]
or eax, 0xc00
mov dword [ebp - 0xc], eax
fldcw word [ebp - 0xc]
fistp qword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
fldcw word [ebp - 4]
jmp 0x409f5d
mov eax, 0x10
jmp 0x409f6b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, edi
call fcn.00405ba7
jmp 0x409f45