Function at 0x10004a00
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 0x10004a56
jmp 0x10004a41
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
jmp 0x10004c2b
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x38], 0
je 0x10004a92
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.10005830
sub esp, 0xc
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
jmp 0x10004c2b
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.10005cd0
mov dword [esp + 0x24], eax
xor eax, eax
cmp eax, dword [esp + 0x24]
jae 0x10004b2e
lea ecx, [esp + 0x30]
lea eax, [esp + 0x24]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.10006980
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.10005d60
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.10005d20
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.10005d80
sub esp, 4
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x4c], 0
je 0x10004c12
mov ecx, dword [esp + 0x14]
call fcn.10004080
mov dword [esp + 0x1c], 0xfff
mov eax, 0xfff
cmp eax, dword [esp + 0x30]
jae 0x10004bcf
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.10053360
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 0x10004bca
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 0x10004c2b
jmp 0x10004b4d
xor eax, eax
cmp eax, dword [esp + 0x30]
jae 0x10004c0d
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.10053360
mov ecx, eax
mov eax, dword [esp + 0x30]
sub eax, ecx
mov dword [esp + 0x30], eax
jmp 0x10004c12
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