Function at 0x1007c070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [0x113261fc]
push esi
cmp byte [ebx + 0xaf], 0
je 0x1007c094
test byte [ebx + 0xc], 2
jne 0x1007c094
mov byte [ebx + 0xaf], 0
cmp byte [ebx + 0x2c3c], 0
push edi
jne 0x1007c175
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x1007c16e
push 0x11136804
push eax
call fcn.10077150
mov esi, eax
add esp, 8
test esi, esi
je 0x1007c16e
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 0x1007c164
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 0x1007c164
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 0x1007c164
push edi
call fcn.10079110
add esp, 4
mov edi, eax
push esi
test edi, edi
je 0x1007c165
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 0x1007c150
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [0x113261fc]
test eax, eax
je 0x1007c13e
dec dword [eax + 0x36c]
push dword [0x11326204]
push edi
call dword [0x1118f8a4]
add esp, 8
jmp 0x1007c16e
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push dword [ebp - 4]
push edi
call fcn.10078d30
add esp, 0xc
jmp 0x1007c12f
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 0x1007c1bd
subss xmm0, dword [ebx + 0x18]
comiss xmm2, xmm0
movss dword [ebx + 0x2c40], xmm0
jb 0x1007c1bd
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x1007c1ac
push eax
call fcn.1007ed70
add esp, 4
xorps xmm2, xmm2
jmp 0x1007c1b3
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 [0x113261fc]
mov esi, dword [edx + 0xa0]
test esi, esi
jne 0x1007c218
mov eax, dword [edx + 0x94]
mov eax, dword [eax + 0x3c]
mov esi, dword [eax]
movss xmm1, dword [edx + 0x98]
movss xmm0, dword [0x1019b9cc]
mov ecx, dword [edx + 0x198c]
mov dword [edx + 0x18a8], esi
mulss xmm1, dword [esi + 0x10]
mulss xmm1, dword [esi + 0x44]
maxss xmm0, xmm1
movss dword [edx + 0x18b0], xmm0
test ecx, ecx
je 0x1007c263
mov eax, dword [0x113261fc]
movss xmm2, dword [eax + 0x18b0]
mulss xmm2, dword [ecx + 0x26c]
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.10085540
mov eax, dword [ebx + 0x94]
lea ecx, [ebx + 0x1bf0]
push dword [eax + 4]
call fcn.10086f70
lea ecx, [ebx + 0x1bf0]
call fcn.10086ea0
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 0x1007c3b9
mov eax, dword [ebx + 0x1c80]
cmp eax, dword [ebx + 0x19ac]
jne 0x1007c3b9
mov ecx, dword [0x113261fc]
cmp dword [ecx + 0x19ac], eax
jne 0x1007c3aa
mov dword [ecx + 0x19b4], eax
cmp dword [ecx + 0x19b0], eax
jne 0x1007c3b9
mov byte [ecx + 0x19c0], 1
cmp dword [ebx + 0x19a0], 0
jne 0x1007c3ce
mov dword [ebx + 0x19a4], 0
jmp 0x1007c3e0
mov eax, dword [ebx + 0x1998]
test eax, eax
je 0x1007c3ea
cmp dword [ebx + 0x19ac], eax
jne 0x1007c3ea
mov dword [ebx + 0x19a8], 0
mov eax, dword [ebx + 0x1998]
test eax, eax
je 0x1007c424
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x19a4]
movss dword [ebx + 0x19a4], xmm0
cmp dword [ebx + 0x19ac], eax
je 0x1007c424
addss xmm1, dword [ebx + 0x19a8]
movss dword [ebx + 0x19a8], xmm1
mov dword [ebx + 0x19a0], eax
mov eax, dword [ebx + 0x19ac]
mov dword [ebx + 0x1998], 0
mov byte [ebx + 0x199c], 0
cmp dword [ebx + 0x19b4], eax
je 0x1007c45a
cmp dword [ebx + 0x19b0], eax
jne 0x1007c45a
test eax, eax
je 0x1007c45a
call fcn.100739c0
mov ecx, dword [ebx + 0x19ac]
test ecx, ecx
je 0x1007c479
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x19b8]
movss dword [ebx + 0x19b8], xmm0
mov eax, dword [ebx + 0x19d4]
movss xmm0, dword [ebx + 0x18]
addss xmm0, 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], xmm0
mov dword [ebx + 0x19b0], ecx
mov dword [ebx + 0x19b4], 0
mov byte [ebx + 0x19c0], 0
mov byte [ebx + 0x19bc], 0
test eax, eax
je 0x1007c4dc
cmp ecx, eax
je 0x1007c4dc
mov dword [ebx + 0x2bec], 0
mov eax, dword [ebx + 0x1ccc]
lea edi, [ebx + 0xc48]
movss xmm2, dword [0x1019b9ec]
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 0x1007c544
movss xmm0, dword [eax]
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x1007c53d
xorps xmm0, xmm0
jmp 0x1007c547
addss xmm0, dword [ebx + 0x18]
jmp 0x1007c547
movaps xmm0, xmm2
movss dword [eax], xmm0
inc ecx
add eax, 4
cmp ecx, 0x200
jl 0x1007c522
call fcn.10079f50
call fcn.10080f30
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 0x1007c5cc
divss xmm0, dword [0x111368cc]
movss xmm1, dword [0x1019b9cc]
divss xmm1, xmm0
jmp 0x1007c5d4
movss xmm1, dword [0x111368e0]
movss dword [ebx + 0x358], xmm1
mov esi, dword [0x113261fc]
mov edx, dword [esi + 0x19f0]
test edx, edx
je 0x1007c6db
mov eax, dword [esi + 0x19ac]
mov dword [esi + 0x19b4], eax
cmp dword [esi + 0x19b0], eax
jne 0x1007c60b
mov byte [esi + 0x19c0], 1
cmp byte [esi + 0xe8], 0
mov edx, dword [edx + 0x2f0]
je 0x1007c6ca
mov ecx, dword [0x113261fc]
lea eax, [esi + 0xe0]
mov edi, eax
test eax, eax
jne 0x1007c636
lea edi, [ecx + 0xe0]
movss xmm0, dword [edi]
movss xmm1, dword [0x111368f8]
comiss xmm0, xmm1
movss xmm3, dword [edi + 4]
jb 0x1007c6ca
comiss xmm3, xmm1
jb 0x1007c6ca
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 0x1007c690
movss xmm0, dword [edx + 0x10]
ucomiss xmm0, xmm3
lahf
test ah, 0x44
jnp 0x1007c6ba
test dword [edx + 8], 0x100
jne 0x1007c6ab
comiss xmm2, dword [ecx + 0x2c40]
jb 0x1007c6ab
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x2c40], eax
push 1
lea eax, [ebp - 8]
push eax
push edx
call fcn.1007f740
add esp, 0xc
push dword [esi + 0x19f0]
call fcn.10075e30
add esp, 4
jmp 0x1007c713
call fcn.100739c0
mov dword [esi + 0x19f0], 0
jmp 0x1007c713
mov ecx, dword [esi + 0x19d4]
test ecx, ecx
je 0x1007c713
mov eax, dword [esi + 0x19ac]
cmp dword [ecx + 0x50], eax
jne 0x1007c713
mov dword [esi + 0x19b4], eax
cmp dword [esi + 0x19b0], eax
jne 0x1007c705
mov byte [esi + 0x19c0], 1
cmp byte [esi + 0xe8], 0
jne 0x1007c713
call fcn.100739c0
call fcn.10080420
mov eax, dword [0x113261fc]
mov edx, dword [eax + 0x1a18]
sub edx, 1
js 0x1007c752
mov eax, dword [eax + 0x1a20]
lea ecx, [edx + edx*8]
lea eax, [eax + ecx*4]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x1007c74a
test dword [ecx + 8], 0x8000000
jne 0x1007c83b
sub eax, 0x24
sub edx, 1
jns 0x1007c737
cmp dword [ebx + 0x1adc], 0
xorps xmm6, xmm6
je 0x1007c76f
movss xmm0, dword [ebx + 0x1aec]
comiss xmm0, xmm6
ja 0x1007c83e
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x110da68c]
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.10081410
cmp dword [ebx + 0x19ac], 0
jne 0x1007c8a7
mov eax, dword [ebx + 0x1a9c]
test eax, eax
je 0x1007c8a7
cmp byte [eax + 0x7a], 0
je 0x1007c8a7
test dword [eax + 8], 0x40000
jne 0x1007c8a7
cmp byte [ebx + 0xf8], 0
jne 0x1007c8a7
mov ecx, dword [0x113261fc]
mov eax, dword [ecx + 0x34]
test eax, eax
js 0x1007c8a7
movss xmm0, dword [ecx + eax*4 + 0x448]
ucomiss xmm0, xmm6
lahf
test ah, 0x44
jp 0x1007c860
mov al, 1
jmp 0x1007c862
xorps xmm6, xmm6
movss xmm1, dword [ebx + 0x18]
mulss xmm1, dword [0x110da67c]
addss xmm1, dword [ebx + 0x1bec]
minss xmm1, dword [0x1019b9cc]
jmp 0x1007c78c
xor al, al
test al, al
je 0x1007c8a7
cmp dword [ebx + 0x1aa0], 0
je 0x1007c890
mov eax, dword [ebx + 0x1af8]
cmp eax, 0x7fffffff
je 0x1007c890
xor edx, edx
mov ecx, 2
cmp byte [ebx + 0xf9], dl
cmovne ecx, edx
add ecx, eax
jmp 0x1007c89b
movzx ecx, byte [ebx + 0xf9]
neg ecx
sbb ecx, ecx
mov eax, dword [ebx + 0x1a9c]
mov dword [eax + 0x33c], ecx
xor edx, edx
mov dword [ebx + 0x1af8], 0x7fffffff
cmp dword [ebx + 0x194c], edx
je 0x1007c8e4
xor esi, esi
nop dword [eax]
mov eax, dword [ebx + 0x1954]
lea esi, [esi + 4]
inc edx
mov ecx, dword [esi + eax - 4]
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 0x1007c8c0
mov eax, dword [ebx + 0x1a9c]
test eax, eax
je 0x1007c95c
cmp byte [eax + 0x7b], 0
jne 0x1007c95c
mov eax, dword [0x113261fc]
mov edi, dword [eax + 0x1958]
sub edi, 1
js 0x1007c95c
mov eax, dword [eax + 0x1960]
lea eax, [eax + edi*4]
mov dword [ebp - 4], eax
mov esi, dword [eax]
test esi, esi
je 0x1007c93b
cmp byte [esi + 0x7b], 0
je 0x1007c93b
mov eax, dword [esi + 8]
and eax, 0x40200
cmp eax, 0x40200
setne cl
bt dword [esi + 8], 0x18
setae al
test al, cl
jne 0x1007c948
mov eax, dword [ebp - 4]
sub eax, 4
sub edi, 1
mov dword [ebp - 4], eax
jns 0x1007c910
jmp 0x1007c95c
mov eax, dword [esi + 0x2fc]
test eax, eax
cmovne esi, eax
push esi
call fcn.10075e30
add esp, 4
mov ecx, dword [ebx + 0x1974]
pop edi
test ecx, ecx
jns 0x1007c983
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.10081cc0
mov dword [ebx + 0x1970], 0
mov ecx, dword [ebx + 0x1a28]
test ecx, ecx
jns 0x1007c9b3
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.10081de0
mov dword [ebx + 0x1a24], 0
push dword [ebx + 0x1a9c]
call fcn.10073c30
mov eax, dword [0x113261fc]
push 0
push 0
push 0x11136294
mov dword [eax + 0x1a5c], 0x43c80000
mov dword [eax + 0x1a60], 0x43c80000
mov dword [eax + 0x1a34], 4
call fcn.1006f320
add esp, 0x10
mov byte [ebx + 2], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret