Function at 0x40ef38
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
mov dword [esp + 4], 0x40eed1
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sub.cygwin1.dll__fopen64
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x40ef80
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0x40eed4
call fcn.0044869f
mov dword [esp + 0xc], 0
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov edx, dword [ebp - 0x2c]
mov dword [esp], edx
call sub.cygwin1.dll__fseeko64
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
jg 0x40efc1
cmp dword [ebp - 0x34], 0
js 0x40f1cf
cmp dword [ebp - 0x38], 0
jbe 0x40f1cf
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x34], 0
js 0x40efde
cmp dword [ebp - 0x34], 0
jg 0x40efd9
cmp dword [ebp - 0x38], 0x8000
jbe 0x40efde
mov eax, 0x8000
lea eax, [eax + 0x7ff]
mov esi, eax
and esi, 0xfffff800
mov edi, 0x46a398
cld
mov ecx, esi
shr ecx, 2
mov eax, 0
rep stosd dword es:[edi], eax
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], 0x46a398
call sub.cygwin1.dll_fread
test eax, eax
jne 0x40f034
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0x40eee6
call fcn.0044869f
mov eax, 1
cmp dword [ebp - 0x34], 0
js 0x40f053
cmp dword [ebp - 0x34], 0
jg 0x40f04e
cmp dword [ebp - 0x38], 0x8000
jbe 0x40f053
mov eax, 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 8
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], 0x46a398
call fcn.0040ebcb
mov eax, esi
test esi, esi
jns 0x40f08a
lea eax, [esi + 0x7ff]
sar eax, 0xb
add dword [0x46a320], eax
cmp dword [0x44d040], 0
jle 0x40f1ac
mov eax, esi
test esi, esi
jns 0x40f0ac
lea eax, [esi + 0x7ff]
mov ecx, eax
sar ecx, 0xb
cmp dword [0x46a0a0], 0
je 0x40f0d4
mov ebx, dword [0x46a320]
mov edx, 0x10624dd3
mov eax, ebx
mul edx
shr edx, 5
imul edx, edx, 0x1f4
jmp 0x40f0ec
mov ebx, dword [0x46a320]
mov edx, 0xd1b71759
mov eax, ebx
mul edx
shr edx, 0xc
imul edx, edx, 0x1388
mov eax, ebx
sub eax, edx
cmp eax, ecx
jge 0x40f1ac
lea eax, [ebp - 0x14]
mov dword [esp], eax
call sub.cygwin1.dll_time
mov eax, dword [0x46a320]
mov edx, 0
push edx
push eax
fild qword [esp]
lea esp, [esp + 8]
fstp qword [ebp - 0x40]
mov eax, dword [0x46a018]
mov edx, 0
push edx
push eax
fild qword [esp]
lea esp, [esp + 8]
fdivr qword [ebp - 0x40]
fstp qword [ebp - 0x40]
fild dword [0x47c4a0]
mov eax, dword [ebp - 0x14]
sub eax, dword [0x47c4a0]
push eax
fild dword [esp]
lea esp, [esp + 4]
fdiv qword [ebp - 0x40]
faddp st(1)
fnstcw word [ebp - 0x1a]
movzx eax, word [ebp - 0x1a]
or ax, 0xc00
mov word [ebp - 0x1c], ax
fldcw word [ebp - 0x1c]
fistp dword [ebp - 0x18]
fldcw word [ebp - 0x1a]
lea eax, [ebp - 0x18]
mov dword [esp], eax
call sub.cygwin1.dll_ctime
mov ebx, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 0x10], ebx
fld qword [ebp - 0x40]
fmul dword [0x40ef34]
fstp qword [esp + 8]
mov dword [esp + 4], 0x40ef10
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.004489fe
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
mov eax, esi
cdq
sub dword [ebp - 0x38], esi
sbb dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
jg 0x40efc1
cmp dword [ebp - 0x34], 0
js 0x40f1cf
cmp dword [ebp - 0x38], 0
ja 0x40efc1
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.cygwin1.dll_fclose
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret