Function at 0x1006efa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [0x11296578]
push esi
cmp byte [ebx + 0xaf], 0
je 0x1006efc4
test byte [ebx + 0xc], 2
jne 0x1006efc4
mov byte [ebx + 0xaf], 0
cmp byte [ebx + 0x2c3c], 0
push edi
jne 0x1006f0a5
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x1006f09e
push 0x110c0c5c
push eax
call fcn.1006a020
mov esi, eax
add esp, 8
test esi, esi
je 0x1006f09e
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1006f094
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
cmp edi, 0xffffffff
je 0x1006f094
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1006f094
push edi
call fcn.1006c030
add esp, 4
mov edi, eax
push esi
test edi, edi
je 0x1006f095
push dword [ebp - 4]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp - 4]
je 0x1006f080
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [0x11296578]
test eax, eax
je 0x1006f06e
dec dword [eax + 0x36c]
push dword [0x11296580]
push edi
call dword [0x1110180c]
add esp, 8
jmp 0x1006f09e
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push dword [ebp - 4]
push edi
call fcn.1006bc60
add esp, 0xc
jmp 0x1006f05f
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov byte [ebx + 0x2c3c], 1
movss xmm0, dword [ebx + 0x2c40]
xorps xmm2, xmm2
comiss xmm0, xmm2
jbe 0x1006f0ed
subss xmm0, dword [ebx + 0x18]
comiss xmm2, xmm0
movss dword [ebx + 0x2c40], xmm0
jb 0x1006f0ed
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x1006f0dc
push eax
call fcn.10071bb0
add esp, 4
xorps xmm2, xmm2
jmp 0x1006f0e3
mov byte [ebx + 0x354], 1
mov dword [ebx + 0x2c40], 0
movss xmm0, dword [ebx + 0x18]
mov eax, dword [ebx + 0x94]
inc dword [ebx + 0x1940]
cvtps2pd xmm0, xmm0
mov byte [ebx + 1], 1
mov dword [ebx + 0x2c18], 0
mov dword [ebx + 0x1988], 0
addsd xmm0, qword [ebx + 0x1938]
movsd qword [ebx + 0x1938], xmm0
mov byte [eax + 0x10], 1
mov edx, dword [0x11296578]
mov esi, dword [edx + 0xa0]
test esi, esi
jne 0x1006f148
mov eax, dword [edx + 0x94]
mov eax, dword [eax + 0x3c]
mov esi, dword [eax]
movss xmm0, dword [0x10122b78]
mov eax, dword [edx + 0x198c]
mov dword [edx + 0x18a8], esi
movss xmm1, dword [esi + 0x10]
mulss xmm1, dword [edx + 0x98]
mulss xmm1, dword [esi + 0x44]
maxss xmm0, xmm1
movss dword [edx + 0x18b0], xmm0
test eax, eax
je 0x1006f193
movss xmm2, dword [eax + 0x26c]
mov eax, dword [0x11296578]
mulss xmm2, dword [eax + 0x18b0]
movss dword [edx + 0x18ac], xmm2
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x30]
mov dword [edx + 0x18b4], ecx
lea ecx, [ebx + 0x1bf0]
mov dword [edx + 0x18b8], eax
mov dword [edx + 0x18bc], esi
movss dword [edx + 0x18c0], xmm2
movss xmm0, dword [ebx + 0x10]
mov eax, dword [ebx + 0x15a4]
movss dword [ebp - 8], xmm0
movss xmm0, dword [ebx + 0x14]
movss dword [ebp - 4], xmm0
movups xmm0, xmmword [ebp - 0x10]
mov dword [ebx + 0x18c4], eax
movups xmmword [ebx + 0x18c8], xmm0
call fcn.100783a0
mov eax, dword [ebx + 0x94]
lea ecx, [ebx + 0x1bf0]
push dword [eax + 4]
call fcn.10079dc0
lea ecx, [ebx + 0x1bf0]
call fcn.10079cd0
xor ecx, ecx
mov byte [ebx + 0x1ba8], 0
cmp byte [ebx + 0x15a1], cl
mov eax, 2
mov dword [ebx + 0x1bac], 0
cmovne ecx, eax
mov dword [ebx + 0x1bb4], 0
xor eax, eax
mov dword [ebx + 0x1bb8], 0
cmp byte [ebx + 0x15a0], al
mov dword [ebx + 0x1bb0], 0
setne al
or ecx, eax
mov dword [ebx + 0x1c14], ecx
mov dword [ebx + 0x1bcc], 0
mov dword [ebx + 0x1bd0], 0
mov dword [ebx + 0x1bc4], 0
mov dword [ebx + 0x1bc8], 0
mov dword [ebx + 0x1bbc], 0
mov dword [ebx + 0x1bc0], 0
cmp byte [ebx + 0x1c68], 0
je 0x1006f2e9
mov eax, dword [ebx + 0x1c80]
cmp eax, dword [ebx + 0x19ac]
jne 0x1006f2e9
mov ecx, dword [0x11296578]
cmp dword [ecx + 0x19ac], eax
jne 0x1006f2da
mov dword [ecx + 0x19b4], eax
cmp dword [ecx + 0x19b0], eax
jne 0x1006f2e9
mov byte [ecx + 0x19c0], 1
cmp dword [ebx + 0x19a0], 0
lea eax, [ebx + 0x1998]
mov ecx, dword [eax]
jne 0x1006f306
mov dword [ebx + 0x19a4], 0
jmp 0x1006f316
mov edx, ecx
mov esi, eax
test ecx, ecx
je 0x1006f324
cmp dword [ebx + 0x19ac], ecx
jne 0x1006f324
mov dword [ebx + 0x19a8], 0
mov edx, ecx
mov esi, eax
movss xmm1, dword [ebx + 0x18]
test edx, edx
je 0x1006f35b
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x19a4]
movss dword [ebx + 0x19a4], xmm0
cmp dword [ebx + 0x19ac], edx
je 0x1006f35b
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x19a8]
movss dword [ebx + 0x19a8], xmm0
mov eax, dword [ebx + 0x19ac]
movaps xmm2, xmm1
mov dword [ebx + 0x19a0], edx
mov dword [esi], 0
mov byte [ebx + 0x199c], 0
cmp dword [ebx + 0x19b4], eax
je 0x1006f395
cmp dword [ebx + 0x19b0], eax
jne 0x1006f395
test eax, eax
je 0x1006f395
call fcn.10066840
movss xmm2, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x19ac]
test ecx, ecx
je 0x1006f3b2
movaps xmm0, xmm2
addss xmm0, dword [ebx + 0x19b8]
movss dword [ebx + 0x19b8], xmm0
mov eax, dword [ebx + 0x19d4]
addss xmm2, dword [ebx + 0x19e4]
mov dword [ebx + 0x19d8], eax
mov al, byte [ebx + 0x19bf]
mov byte [ebx + 0x19c1], al
mov eax, dword [ebx + 0x2bec]
movss dword [ebx + 0x19e4], xmm2
mov dword [ebx + 0x19b0], ecx
mov dword [ebx + 0x19b4], 0
mov byte [ebx + 0x19c0], 0
mov byte [ebx + 0x19bc], 0
test eax, eax
je 0x1006f410
cmp ecx, eax
je 0x1006f410
mov dword [ebx + 0x2bec], 0
mov eax, dword [ebx + 0x1ccc]
lea edi, [ebx + 0xc48]
movss xmm2, dword [0x10122b98]
mov ecx, 0x200
mov dword [ebx + 0x1cd0], eax
lea eax, [ebx + 0x448]
mov esi, eax
mov dword [ebx + 0x1ccc], 0
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x1cc8], 0x7f7fffff
xor ecx, ecx
mov byte [ebx + 0x1c69], 0
cmp byte [ebx + ecx + 0xfc], 0
je 0x1006f478
movss xmm0, dword [eax]
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x1006f471
xorps xmm0, xmm0
jmp 0x1006f47b
addss xmm0, dword [ebx + 0x18]
jmp 0x1006f47b
movaps xmm0, xmm2
movss dword [eax], xmm0
inc ecx
add eax, 4
cmp ecx, 0x200
jl 0x1006f456
call fcn.1006cec0
call fcn.10073d40
mov eax, dword [ebx + 0x2e64]
mov ecx, 0x78
movss xmm1, dword [ebx + 0x18]
xorps xmm2, xmm2
movaps xmm0, xmm1
subss xmm0, dword [ebx + eax*4 + 0x2c84]
addss xmm0, dword [ebx + 0x2e68]
movss dword [ebx + 0x2e68], xmm0
movss dword [ebx + eax*4 + 0x2c84], xmm1
mov eax, dword [ebx + 0x2e64]
inc eax
movss xmm0, dword [ebx + 0x2e68]
cdq
idiv ecx
comiss xmm0, xmm2
mov dword [ebx + 0x2e64], edx
jbe 0x1006f500
divss xmm0, dword [0x110659e8]
movss xmm1, dword [0x10122b78]
divss xmm1, xmm0
jmp 0x1006f508
movss xmm1, dword [0x110c0d2c]
movss dword [ebx + 0x358], xmm1
mov esi, dword [0x11296578]
mov edx, dword [esi + 0x19f0]
test edx, edx
je 0x1006f60f
mov eax, dword [esi + 0x19ac]
mov dword [esi + 0x19b4], eax
cmp dword [esi + 0x19b0], eax
jne 0x1006f53f
mov byte [esi + 0x19c0], 1
cmp byte [esi + 0xe8], 0
mov edx, dword [edx + 0x2f0]
je 0x1006f5fe
mov ecx, dword [0x11296578]
lea eax, [esi + 0xe0]
mov edi, eax
test eax, eax
jne 0x1006f56a
lea edi, [ecx + 0xe0]
movss xmm0, dword [edi]
movss xmm1, dword [0x110c0d48]
comiss xmm0, xmm1
movss xmm3, dword [edi + 4]
jb 0x1006f5fe
comiss xmm3, xmm1
jb 0x1006f5fe
movss xmm1, dword [eax]
subss xmm1, dword [esi + 0x19cc]
movss xmm0, dword [edx + 0xc]
movss xmm3, dword [eax + 4]
subss xmm3, dword [esi + 0x19d0]
ucomiss xmm0, xmm1
movss dword [ebp - 8], xmm1
movss dword [ebp - 4], xmm3
lahf
test ah, 0x44
jp 0x1006f5c4
movss xmm0, dword [edx + 0x10]
ucomiss xmm0, xmm3
lahf
test ah, 0x44
jnp 0x1006f5ee
test dword [edx + 8], 0x100
jne 0x1006f5df
comiss xmm2, dword [ecx + 0x2c40]
jb 0x1006f5df
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x2c40], eax
push 1
lea eax, [ebp - 8]
push eax
push edx
call fcn.10072560
add esp, 0xc
push dword [esi + 0x19f0]
call fcn.10068cc0
add esp, 4
jmp 0x1006f647
call fcn.10066840
mov dword [esi + 0x19f0], 0
jmp 0x1006f647
mov ecx, dword [esi + 0x19d4]
test ecx, ecx
je 0x1006f647
mov eax, dword [esi + 0x19ac]
cmp dword [ecx + 0x50], eax
jne 0x1006f647
mov dword [esi + 0x19b4], eax
cmp dword [esi + 0x19b0], eax
jne 0x1006f639
mov byte [esi + 0x19c0], 1
cmp byte [esi + 0xe8], 0
jne 0x1006f647
call fcn.10066840
call fcn.10073210
mov eax, dword [0x11296578]
mov edx, dword [eax + 0x1a18]
sub edx, 1
js 0x1006f68b
mov eax, dword [eax + 0x1a20]
lea ecx, [edx + edx*8]
lea eax, [eax + ecx*4]
add eax, 4
nop dword [eax + eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x1006f683
test dword [ecx + 8], 0x8000000
jne 0x1006f79d
sub eax, 0x24
sub edx, 1
jns 0x1006f670
cmp dword [ebx + 0x1adc], 0
xorps xmm6, xmm6
je 0x1006f6a8
movss xmm0, dword [ebx + 0x1aec]
comiss xmm0, xmm6
ja 0x1006f7a0
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x11064b14]
movss xmm1, dword [ebx + 0x1bec]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [ebx + 0x1bec], xmm1
mov dword [ebx + 0x1c64], 0
mov dword [ebx + 0x2e74], 0xffffffff
mov dword [ebx + 0x2e70], 0xffffffff
mov dword [ebx + 0x2e6c], 0xffffffff
mov dword [ebx + 0x2c2c], 0x3f800000
mov dword [ebx + 0x2c30], 0x3f800000
call fcn.100742a0
cmp dword [ebx + 0x19ac], 0
jne 0x1006f7d3
mov ecx, dword [ebx + 0x1a9c]
test ecx, ecx
je 0x1006f7d3
cmp byte [ecx + 0x7a], 0
je 0x1006f7d3
test dword [ecx + 8], 0x40000
jne 0x1006f7d3
cmp byte [ebx + 0xf8], 0
jne 0x1006f7d3
mov edx, dword [0x11296578]
mov eax, dword [edx + 0x34]
test eax, eax
js 0x1006f7d3
movss xmm0, dword [edx + eax*4 + 0x448]
ucomiss xmm0, xmm6
lahf
test ah, 0x44
jp 0x1006f7d3
cmp dword [ebx + 0x1aa0], 0
je 0x1006f7c2
mov eax, dword [ebx + 0x1af8]
cmp eax, 0x7fffffff
je 0x1006f7c2
xor esi, esi
mov edx, 2
cmp byte [ebx + 0xf9], 0
cmovne edx, esi
add edx, eax
mov dword [ecx + 0x33c], edx
jmp 0x1006f7d3
xorps xmm6, xmm6
movss xmm1, dword [ebx + 0x18]
mulss xmm1, dword [0x11064b08]
addss xmm1, dword [ebx + 0x1bec]
minss xmm1, dword [0x10122b78]
jmp 0x1006f6c5
movzx eax, byte [ebx + 0xf9]
neg eax
sbb eax, eax
mov dword [ecx + 0x33c], eax
xor edx, edx
mov dword [ebx + 0x1af8], 0x7fffffff
cmp dword [ebx + 0x194c], edx
je 0x1006f810
nop word [eax + eax]
mov eax, dword [ebx + 0x1954]
mov ecx, dword [eax + edx*4]
inc edx
mov al, byte [ecx + 0x7a]
mov byte [ecx + 0x7b], al
mov byte [ecx + 0x7a], 0
mov byte [ecx + 0x7c], 0
cmp edx, dword [ebx + 0x194c]
jne 0x1006f7f0
mov eax, dword [ebx + 0x1a9c]
test eax, eax
je 0x1006f88c
cmp byte [eax + 0x7b], 0
jne 0x1006f88c
mov eax, dword [0x11296578]
mov edi, dword [eax + 0x1958]
sub edi, 1
js 0x1006f88c
mov eax, dword [eax + 0x1960]
lea eax, [eax + edi*4]
mov dword [ebp - 4], eax
nop dword [eax]
mov esi, dword [eax]
test esi, esi
je 0x1006f86b
cmp byte [esi + 0x7b], 0
je 0x1006f86b
mov eax, dword [esi + 8]
and eax, 0x40200
cmp eax, 0x40200
setne cl
bt dword [esi + 8], 0x18
setae al
test al, cl
jne 0x1006f878
mov eax, dword [ebp - 4]
sub eax, 4
sub edi, 1
mov dword [ebp - 4], eax
jns 0x1006f840
jmp 0x1006f88c
mov eax, dword [esi + 0x2fc]
test eax, eax
cmovne esi, eax
push esi
call fcn.10068cc0
add esp, 4
mov ecx, dword [ebx + 0x1974]
pop edi
test ecx, ecx
jns 0x1006f8b3
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [ebx + 0x1970]
call fcn.10074b50
mov dword [ebx + 0x1970], 0
mov ecx, dword [ebx + 0x1a28]
test ecx, ecx
jns 0x1006f8e3
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [ebx + 0x1a24]
call fcn.10074c70
mov dword [ebx + 0x1a24], 0
push dword [ebx + 0x1a9c]
call fcn.10066ab0
mov eax, dword [0x11296578]
push 0
push 0
push 0x110c02ec
mov dword [eax + 0x1a5c], 0x43c80000
mov dword [eax + 0x1a60], 0x43c80000
mov dword [eax + 0x1a34], 4
call fcn.10062270
add esp, 0x10
mov byte [ebx + 2], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret