Function at 0x10012b10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
xor eax, eax
neg edx
sbb eax, ecx
jl 0x10012b66
jmp 0x10012b51
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
jmp 0x10012d3b
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x38], 0
je 0x10012ba2
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov edx, dword [ebp + 8]
mov eax, esp
mov dword [eax + 8], edi
mov dword [eax + 4], esi
mov dword [eax], edx
call fcn.10013870
sub esp, 0xc
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
jmp 0x10012d3b
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
movsd xmm0, qword [esp + 0x38]
movsd qword [esp + 0x28], xmm0
call fcn.10013cd0
mov dword [esp + 0x24], eax
xor eax, eax
cmp eax, dword [esp + 0x24]
jae 0x10012c3e
lea ecx, [esp + 0x30]
lea eax, [esp + 0x24]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.10004e60
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
call fcn.10013d20
mov ecx, eax
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.10006680
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
sub eax, edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.10013d40
sub esp, 4
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x4c], 0
je 0x10012d22
mov ecx, dword [esp + 0x14]
call fcn.10012140
mov dword [esp + 0x1c], 0xfff
mov eax, 0xfff
cmp eax, dword [esp + 0x30]
jae 0x10012cdf
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x4c]
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
mov dword [esp + 4], 1
mov dword [esp + 8], 0xfff
mov dword [esp + 0xc], eax
call fcn.1017c95f
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
sub eax, ecx
mov dword [esp + 0x30], eax
cmp dword [esp + 0x18], 0xfff
je 0x10012cda
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
sub ecx, edx
sbb eax, 0
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
jmp 0x10012d3b
jmp 0x10012c5d
xor eax, eax
cmp eax, dword [esp + 0x30]
jae 0x10012d1d
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x4c]
mov ecx, dword [esp + 0x30]
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov dword [esp + 4], 1
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.1017c95f
mov ecx, eax
mov eax, dword [esp + 0x30]
sub eax, ecx
mov dword [esp + 0x30], eax
jmp 0x10012d22
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
sub ecx, edx
sbb eax, 0
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret 0xc