Function at 0x1004e960
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [0x10307a40]
push esi
cmp byte [ebx + 0xaf], 0
je 0x1004e984
test byte [ebx + 0xc], 2
jne 0x1004e984
mov byte [ebx + 0xaf], 0
cmp byte [ebx + 0x2c3c], 0
push edi
jne 0x1004ea5e
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x1004ea57
push 0x100c240c
push eax
call fcn.10049c00
mov esi, eax
add esp, 8
test esi, esi
je 0x1004ea57
push 2
push 0
push esi
call fcn.1009a1da
add esp, 0xc
test eax, eax
jne 0x1004ea4e
push esi
call fcn.1009a839
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
cmp edi, 0xffffffff
je 0x1004ea4e
push 0
push 0
push esi
call fcn.1009a1da
add esp, 0xc
test eax, eax
jne 0x1004ea4e
push edi
call fcn.1004ba50
add esp, 4
mov edi, eax
push esi
test edi, edi
je 0x1004ea4f
push dword [ebp - 4]
push 1
push edi
call fcn.10099db6
add esp, 0x10
push esi
cmp eax, dword [ebp - 4]
je 0x1004ea3b
call fcn.10099bad
add esp, 4
mov eax, dword [0x10307a40]
test eax, eax
je 0x1004ea29
dec dword [eax + 0x36c]
push dword [0x10307a48]
push edi
call dword [0x100e25ac]
add esp, 8
jmp 0x1004ea57
call fcn.10099bad
push dword [ebp - 4]
push edi
call fcn.1004b6a0
add esp, 0xc
jmp 0x1004ea1a
push esi
call fcn.10099bad
add esp, 4
mov byte [ebx + 0x2c3c], 1
movss xmm0, dword [ebx + 0x2c40]
xorps xmm2, xmm2
comiss xmm0, xmm2
jbe 0x1004eaa6
subss xmm0, dword [ebx + 0x18]
comiss xmm2, xmm0
movss dword [ebx + 0x2c40], xmm0
jb 0x1004eaa6
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x1004ea95
push eax
call fcn.10051230
add esp, 4
xorps xmm2, xmm2
jmp 0x1004ea9c
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], 1
mov edx, dword [0x10307a40]
mov esi, dword [edx + 0xa0]
test esi, esi
jne 0x1004eb00
mov eax, dword [edx + 0x94]
mov eax, dword [eax + 0x3c]
mov esi, dword [eax]
movss xmm0, dword [0x100bc600]
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 0x1004eb4b
movss xmm2, dword [eax + 0x26c]
mov eax, dword [0x10307a40]
mulss xmm2, dword [eax + 0x18b0]
movss dword [edx + 0x18ac], xmm2
mov eax, dword [esi + 0x38]
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]
movss xmm1, dword [ebx + 0x14]
mov dword [ebx + 0x18c8], 0
mov dword [ebx + 0x18cc], 0
movss dword [ebx + 0x18d0], xmm0
movss dword [ebx + 0x18d4], xmm1
mov eax, dword [ebx + 0x15a4]
mov dword [ebx + 0x18c4], eax
call fcn.100571c0
mov eax, dword [ebx + 0x94]
lea ecx, [ebx + 0x1bf0]
push dword [eax + 8]
call fcn.100599c0
lea ecx, [ebx + 0x1bf0]
call fcn.100598d0
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 0x1004eca2
mov eax, dword [ebx + 0x1c80]
cmp eax, dword [ebx + 0x19ac]
jne 0x1004eca2
mov ecx, dword [0x10307a40]
cmp dword [ecx + 0x19ac], eax
jne 0x1004ec93
mov dword [ecx + 0x19b4], eax
cmp dword [ecx + 0x19b0], eax
jne 0x1004eca2
mov byte [ecx + 0x19c0], 1
cmp dword [ebx + 0x19a0], 0
lea eax, [ebx + 0x1998]
mov ecx, dword [eax]
jne 0x1004ecbf
mov dword [ebx + 0x19a4], 0
jmp 0x1004eccf
mov edx, ecx
mov esi, eax
test ecx, ecx
je 0x1004ecdd
cmp dword [ebx + 0x19ac], ecx
jne 0x1004ecdd
mov dword [ebx + 0x19a8], 0
mov edx, ecx
mov esi, eax
movss xmm1, dword [ebx + 0x18]
test edx, edx
je 0x1004ed14
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x19a4]
movss dword [ebx + 0x19a4], xmm0
cmp dword [ebx + 0x19ac], edx
je 0x1004ed14
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 0x1004ed4e
cmp dword [ebx + 0x19b0], eax
jne 0x1004ed4e
test eax, eax
je 0x1004ed4e
call fcn.100468a0
movss xmm2, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x19ac]
test ecx, ecx
je 0x1004ed6b
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 0x1004edc9
cmp ecx, eax
je 0x1004edc9
mov dword [ebx + 0x2bec], 0
mov eax, dword [ebx + 0x1ccc]
lea edi, [ebx + 0xc48]
movss xmm2, dword [0x100bc614]
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
nop
cmp byte [ebx + ecx + 0xfc], 0
je 0x1004ee32
movss xmm0, dword [eax]
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x1004ee2b
xorps xmm0, xmm0
jmp 0x1004ee35
addss xmm0, dword [ebx + 0x18]
jmp 0x1004ee35
movaps xmm0, xmm2
movss dword [eax], xmm0
inc ecx
add eax, 4
cmp ecx, 0x200
jl 0x1004ee10
call fcn.1004c870
call fcn.100533d0
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 0x1004eeba
divss xmm0, dword [0x100c3f94]
movss xmm1, dword [0x100bc600]
divss xmm1, xmm0
jmp 0x1004eec2
movss xmm1, dword [0x100c14c8]
movss dword [ebx + 0x358], xmm1
mov esi, dword [0x10307a40]
mov edx, dword [esi + 0x19f0]
test edx, edx
je 0x1004efc9
mov eax, dword [esi + 0x19ac]
mov dword [esi + 0x19b4], eax
cmp dword [esi + 0x19b0], eax
jne 0x1004eef9
mov byte [esi + 0x19c0], 1
cmp byte [esi + 0xe8], 0
mov edx, dword [edx + 0x2f0]
je 0x1004efb8
mov ecx, dword [0x10307a40]
lea eax, [esi + 0xe0]
mov edi, eax
test eax, eax
jne 0x1004ef24
lea edi, [ecx + 0xe0]
movss xmm0, dword [edi]
movss xmm1, dword [0x100c3fc0]
comiss xmm0, xmm1
movss xmm3, dword [edi + 4]
jb 0x1004efb8
comiss xmm3, xmm1
jb 0x1004efb8
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 0x1004ef7e
movss xmm0, dword [edx + 0x10]
ucomiss xmm0, xmm3
lahf
test ah, 0x44
jnp 0x1004efa8
test dword [edx + 8], 0x100
jne 0x1004ef99
comiss xmm2, dword [ecx + 0x2c40]
jb 0x1004ef99
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x2c40], eax
push 1
lea eax, [ebp - 8]
push eax
push edx
call fcn.10051bf0
add esp, 0xc
push dword [esi + 0x19f0]
call fcn.10048a00
add esp, 4
jmp 0x1004f001
call fcn.100468a0
mov dword [esi + 0x19f0], 0
jmp 0x1004f001
mov ecx, dword [esi + 0x19d4]
test ecx, ecx
je 0x1004f001
mov eax, dword [esi + 0x19ac]
cmp dword [ecx + 0x50], eax
jne 0x1004f001
mov dword [esi + 0x19b4], eax
cmp dword [esi + 0x19b0], eax
jne 0x1004eff3
mov byte [esi + 0x19c0], 1
cmp byte [esi + 0xe8], 0
jne 0x1004f001
call fcn.100468a0
call fcn.100528a0
mov eax, dword [0x10307a40]
mov edx, dword [eax + 0x1a18]
sub edx, 1
js 0x1004f040
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 0x1004f038
test dword [ecx + 8], 0x8000000
jne 0x1004f152
sub eax, 0x24
sub edx, 1
jns 0x1004f025
cmp dword [ebx + 0x1adc], 0
xorps xmm6, xmm6
je 0x1004f05d
movss xmm0, dword [ebx + 0x1aec]
comiss xmm0, xmm6
ja 0x1004f155
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x100c1030]
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.10053900
cmp dword [ebx + 0x19ac], 0
jne 0x1004f188
mov ecx, dword [ebx + 0x1a9c]
test ecx, ecx
je 0x1004f188
cmp byte [ecx + 0x7a], 0
je 0x1004f188
test dword [ecx + 8], 0x40000
jne 0x1004f188
cmp byte [ebx + 0xf8], 0
jne 0x1004f188
mov edx, dword [0x10307a40]
mov eax, dword [edx + 0x34]
test eax, eax
js 0x1004f188
movss xmm0, dword [edx + eax*4 + 0x448]
ucomiss xmm0, xmm6
lahf
test ah, 0x44
jp 0x1004f188
cmp dword [ebx + 0x1aa0], 0
je 0x1004f177
mov eax, dword [ebx + 0x1af8]
cmp eax, 0x7fffffff
je 0x1004f177
xor esi, esi
mov edx, 2
cmp byte [ebx + 0xf9], 0
cmovne edx, esi
add edx, eax
mov dword [ecx + 0x33c], edx
jmp 0x1004f188
xorps xmm6, xmm6
movss xmm1, dword [ebx + 0x18]
mulss xmm1, dword [0x100c1024]
addss xmm1, dword [ebx + 0x1bec]
minss xmm1, dword [0x100bc600]
jmp 0x1004f07a
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 0x1004f1c0
nop dword [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 0x1004f1a0
mov eax, dword [ebx + 0x1a9c]
test eax, eax
je 0x1004f23c
cmp byte [eax + 0x7b], 0
jne 0x1004f23c
mov eax, dword [0x10307a40]
mov edi, dword [eax + 0x1958]
sub edi, 1
js 0x1004f23c
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 0x1004f21b
cmp byte [esi + 0x7b], 0
je 0x1004f21b
mov eax, dword [esi + 8]
and eax, 0x40200
cmp eax, 0x40200
setne cl
bt dword [esi + 8], 0x18
setae al
test al, cl
jne 0x1004f228
mov eax, dword [ebp - 4]
sub eax, 4
sub edi, 1
mov dword [ebp - 4], eax
jns 0x1004f1f0
jmp 0x1004f23c
mov eax, dword [esi + 0x2fc]
test eax, eax
cmovne esi, eax
push esi
call fcn.10048a00
add esp, 4
mov ecx, dword [ebx + 0x1974]
pop edi
test ecx, ecx
jns 0x1004f263
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.10054100
mov dword [ebx + 0x1970], 0
mov ecx, dword [ebx + 0x1a28]
test ecx, ecx
jns 0x1004f293
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.10054190
mov dword [ebx + 0x1a24], 0
push dword [ebx + 0x1a9c]
call fcn.10046b10
mov eax, dword [0x10307a40]
push 0
push 0
push str.DebugDefault
mov dword [eax + 0x1a5c], 0x43c80000
mov dword [eax + 0x1a60], 0x43c80000
mov dword [eax + 0x1a34], 4
call fcn.100424e0
add esp, 0x10
mov byte [ebx + 2], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret