Function at 0x1400512c0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x80
mov qword [rax + 0x10], rbp
mov rbp, qword [0x1401968a8]
mov qword [rax + 0x18], r12
mov rbx, rbp
mov qword [rax - 0x20], r14
movaps xmmword [rax - 0x38], xmm6
mov edi, dword [rbp + 0x5f30]
sub edi, 1
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
js 0x140051363
movsxd rsi, edi
shl rsi, 5
mov r14, rsi
nop
mov rdx, qword [rbp + 0x5f38]
cmp dword [rdx + rsi + 4], 7
jne 0x140051356
movsxd r8, dword [rbp + 0x5f30]
mov rcx, rdx
sub rdx, rdx
add rdx, r14
sar rdx, 5
sub r8, rdx
mov rax, rdx
shl rax, 5
add rcx, rax
shl r8, 5
sub r8, 0x20
lea rdx, [rcx + 0x20]
call fcn.140132640
dec dword [rbp + 0x5f30]
sub r14, 0x20
sub rsi, 0x20
sub edi, 1
jns 0x140051310
mov rdi, qword [rbp + 0x5f38]
movsxd rsi, dword [rbp + 0x5f30]
shl rsi, 5
add rsi, rdi
cmp rdi, rsi
je 0x14005139f
nop dword [rax]
cmp dword [rdi + 4], 0
jne 0x14005138f
mov rdx, rdi
mov rcx, rbx
call qword [rdi + 0x10]
add rdi, 0x20
cmp rdi, rsi
jne 0x140051380
mov rbp, qword [0x1401968a8]
cmp byte [rbp + 0x5e], 0
je 0x1400513af
test byte [rbp + 0xc], 2
jne 0x1400513af
mov byte [rbp + 0x5e], 0
cmp byte [rbp + 0x5ee8], 0
jne 0x14005149b
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x140051494
lea rdx, [0x140172284]
call fcn.14004cb70
mov rdi, rax
test rax, rax
je 0x140051494
mov rcx, rax
call fcn.14010fd58
mov r14d, eax
cmp eax, 0xffffffff
je 0x14005148c
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.14010f280
test eax, eax
jne 0x14005148c
mov rcx, rdi
call fcn.14010fd58
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x14005148c
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call fcn.14010f280
test eax, eax
jne 0x14005148c
cmp rsi, 0xffffffffffffffff
je 0x14005148c
mov rcx, rsi
call fcn.1401128c4
mov r14, rax
test rax, rax
je 0x14005148c
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call fcn.14010eeb0
mov rcx, rdi
cmp rax, rsi
je 0x14005146d
call fcn.14010cdf8
mov rcx, r14
call fcn.140108960
jmp 0x140051494
call fcn.14010cdf8
test rsi, rsi
je 0x140051482
mov rdx, rsi
mov rcx, r14
call fcn.140062ac0
mov rcx, r14
call fcn.140108960
jmp 0x140051494
mov rcx, rdi
call fcn.14010cdf8
mov byte [rbp + 0x5ee8], 1
movss xmm0, dword [rbp + 0x5eec]
xorps xmm9, xmm9
xor esi, esi
comiss xmm0, xmm9
jbe 0x1400514df
subss xmm0, dword [rbp + 0x18]
comiss xmm0, xmm9
movss dword [rbp + 0x5eec], xmm0
ja 0x1400514df
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x1400514d2
call fcn.140062d00
jmp 0x1400514d9
mov byte [rbp + 0xce], 1
mov dword [rbp + 0x5eec], esi
movss xmm0, dword [rbx + 0x18]
lea rcx, [rbx + 0x5e50]
inc dword [rbx + 0x3f60]
xor edx, edx
cvtps2pd xmm0, xmm0
mov byte [rbx + 0x3f6c], 1
mov word [rbx + 0x5e38], si
mov dword [rbx + 0x3ff8], esi
addsd xmm0, qword [rbx + 0x3f58]
movsd qword [rbx + 0x3f58], xmm0
call fcn.14004ac00
movsxd rax, dword [rbx + 0x616c]
movss xmm1, dword [rbx + 0x18]
movss xmm8, dword [0x140173168]
movaps xmm0, xmm1
movss xmm10, dword [0x140173054]
subss xmm0, dword [rbx + rax*4 + 0x607c]
addss xmm0, dword [rbx + 0x6174]
movss dword [rbx + 0x6174], xmm0
movss dword [rbx + rax*4 + 0x607c], xmm1
mov eax, 0x88888889
mov ecx, dword [rbx + 0x616c]
movss xmm2, dword [rbx + 0x6174]
inc ecx
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3c
sub ecx, eax
mov eax, dword [rbx + 0x6170]
inc eax
mov dword [rbx + 0x616c], ecx
mov ecx, 0x3c
cmp eax, ecx
cmovl ecx, eax
comiss xmm2, xmm9
mov dword [rbx + 0x6170], ecx
jbe 0x1400515c3
movd xmm0, ecx
movaps xmm1, xmm10
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
divss xmm1, xmm2
jmp 0x1400515c7
movaps xmm1, xmm8
lea rcx, [rbx + 0x3f90]
movss dword [rbx + 0xd4], xmm1
call fcn.140064120
movzx ecx, byte [rbx + 0x5a]
call fcn.14005b6b0
mov rbp, qword [0x1401968a8]
mov rax, qword [rbp + 0x4ad0]
mov rcx, qword [rax]
mov qword [rcx], 5
mov dword [rcx + 8], esi
movsd xmm0, qword [rbp + 0x10]
movsd qword [rcx + 0xc], xmm0
mov rcx, qword [rbp + 0x4ad0]
movsxd rax, dword [rbp + 0x4ac8]
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x1400516c5
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rcx]
add rcx, 8
movsd xmm4, qword [rax + 0xb8]
movsd xmm3, qword [rax + 0xc0]
movaps xmm1, xmm4
movss xmm2, dword [rax + 0xc]
movaps xmm0, xmm4
shufps xmm0, xmm0, 0x55
subss xmm2, xmm4
mov qword [rax + 0xc0], rsi
mov qword [rax + 0xb8], rsi
movsd qword [rax + 0xb0], xmm3
movsd qword [rax + 0xa8], xmm4
addss xmm2, xmm3
addss xmm1, dword [rax + 4]
addss xmm0, dword [rax + 8]
maxss xmm2, xmm9
movss dword [rax + 0x14], xmm1
movss xmm1, dword [rax + 0x10]
movss dword [rax + 0x18], xmm0
movaps xmm0, xmm4
shufps xmm0, xmm0, 0x55
subss xmm1, xmm0
addss xmm1, dword [rax + 0xb4]
movss dword [rax + 0x1c], xmm2
maxss xmm1, xmm9
movss dword [rax + 0x20], xmm1
cmp rcx, rdx
jne 0x140051630
mov rax, qword [rbx + 0x38]
mov byte [rax + 0x18], 1
mov rcx, qword [rbp + 0x48]
test rcx, rcx
jne 0x1400516e1
mov rax, qword [rbp + 0x38]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx]
movss xmm0, dword [rbp + 0x40]
mov rdx, qword [rbp + 0x4008]
mov qword [rbp + 0x3d38], rcx
mulss xmm0, dword [rcx + 0x14]
mulss xmm0, dword [rcx + 0x64]
maxss xmm0, xmm10
movss dword [rbp + 0x3d44], xmm0
test rdx, rdx
je 0x140051739
mov rax, qword [rdx]
movss xmm1, dword [rdx + 0x2a0]
mulss xmm1, dword [rax + 0x3d44]
mov rax, qword [rdx + 0x378]
test rax, rax
je 0x14005173d
mulss xmm1, dword [rax + 0x2a0]
jmp 0x14005173d
movaps xmm1, xmm9
movss xmm4, dword [0x1401731cc]
movaps xmm7, xmm8
movss dword [rbp + 0x3d40], xmm1
movaps xmm6, xmm8
mov rax, qword [rcx + 0x40]
movaps xmm5, xmm4
movsd xmm0, qword [rax + 0x50]
add rax, 0x88
mov qword [rbp + 0x3f50], rax
movss dword [rbp + 0x3d58], xmm1
movsd qword [rbp + 0x3d48], xmm0
mov qword [rbp + 0x3d50], rcx
mov rcx, qword [rbx + 0x4ad0]
movsxd rax, dword [rbx + 0x4ac8]
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x1400517e6
nop dword [rax]
mov rax, qword [rcx]
movss xmm3, dword [rax + 4]
comiss xmm7, xmm3
movss xmm2, dword [rax + 8]
movaps xmm0, xmm3
addss xmm0, dword [rax + 0xc]
movaps xmm1, xmm2
addss xmm1, dword [rax + 0x10]
jbe 0x1400517c5
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x1400517cd
movaps xmm6, xmm2
comiss xmm4, xmm0
jae 0x1400517d5
movaps xmm4, xmm0
comiss xmm5, xmm1
jae 0x1400517dd
movaps xmm5, xmm1
add rcx, 8
cmp rcx, rdx
jne 0x1400517a0
mov qword [rsp + 0x70], r15
movss dword [rbx + 0x3d64], xmm7
movss dword [rbx + 0x3d68], xmm6
movss dword [rbx + 0x3d6c], xmm4
movss dword [rbx + 0x3d70], xmm5
mov eax, dword [rbx + 0x39cc]
movss xmm0, dword [rbx + 0x39d0]
movaps xmm7, xmmword [rsp + 0x50]
mov dword [rbx + 0x3d5c], eax
ucomiss xmm0, dword [rbx + 0x3d60]
je 0x1400518fb
movss xmm6, dword [0x140173098]
lea r14, [rbx + 0x3f0c]
movss dword [rbx + 0x3d60], xmm0
mov edi, esi
mov r15d, 0x200
movd xmm0, edi
cvtdq2ps xmm0, xmm0
test edi, edi
je 0x1400518cd
movaps xmm1, xmm0
minss xmm1, dword [rbx + 0x3d60]
divss xmm1, xmm0
movaps xmm0, xmm10
subss xmm0, xmm1
call fcn.14012cf80
movaps xmm1, xmm6
divss xmm1, xmm0
cvttss2si ecx, xmm1
cmp ecx, 0x80000000
je 0x1400518ab
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm1
je 0x1400518ab
unpcklps xmm1, xmm1
movmskps eax, xmm1
and eax, 1
xor eax, 1
add ecx, eax
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm1
inc eax
cdq
sub eax, edx
sar eax, 1
add eax, eax
cmp eax, 4
jge 0x1400518c4
mov eax, 4
jmp 0x1400518d2
cmp eax, r15d
cmovg eax, r15d
jmp 0x1400518d2
mov eax, 0x30
mov byte [r14], al
inc edi
inc r14
cmp edi, 0x40
jl 0x140051850
movss xmm0, dword [rbx + 0x3d60]
mulss xmm0, dword [0x140173138]
movss dword [rbx + 0x3f08], xmm0
mov r8d, esi
movaps xmm6, xmmword [rsp + 0x60]
mov dword [rbx + 0x3d74], esi
cmp byte [rbx + 0x39c8], sil
je 0x140051922
mov dword [rbx + 0x3d74], 1
mov r8d, 1
mov edx, r8d
cmp byte [rbx + 0x39c9], sil
je 0x140051947
mov rax, qword [rbx + 0x3d38]
mov rcx, qword [rax + 0x40]
test byte [rcx], 4
jne 0x140051947
or edx, 2
mov dword [rbx + 0x3d74], edx
cmp byte [rbx + 0x39ca], sil
je 0x140051959
or edx, 4
mov dword [rbx + 0x3d74], edx
test byte [rbx + 0xc], 8
je 0x140051968
or edx, 8
mov dword [rbx + 0x3d74], edx
mov rcx, qword [rbx + 0x4ad0]
movsxd rax, dword [rbx + 0x4ac8]
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x140051990
nop
mov rax, qword [rcx]
add rcx, 8
mov byte [rax + 0x48], sil
cmp rcx, rdx
jne 0x140051980
cmp byte [rbx + 0x4cf0], sil
je 0x1400519c4
mov eax, dword [rbx + 0x4d0c]
cmp eax, dword [rbx + 0x406c]
jne 0x1400519c4
cmp dword [rbp + 0x406c], eax
jne 0x1400519b5
mov dword [rbp + 0x4070], eax
cmp dword [rbp + 0x4098], eax
jne 0x1400519c4
mov byte [rbp + 0x409c], 1
cmp dword [rbx + 0x405c], esi
jne 0x1400519d4
mov dword [rbx + 0x4064], esi
jmp 0x1400519e6
mov eax, dword [rbx + 0x4058]
test eax, eax
je 0x1400519ec
cmp dword [rbx + 0x406c], eax
jne 0x1400519ec
mov dword [rbx + 0x4068], esi
mov eax, dword [rbx + 0x4058]
test eax, eax
je 0x140051a26
movss xmm1, dword [rbx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [rbx + 0x4064]
movss dword [rbx + 0x4064], xmm0
cmp dword [rbx + 0x406c], eax
je 0x140051a26
addss xmm1, dword [rbx + 0x4068]
movss dword [rbx + 0x4068], xmm1
mov dword [rbx + 0x405c], eax
mov eax, dword [rbx + 0x406c]
mov dword [rbx + 0x4058], esi
mov word [rbx + 0x4060], si
test eax, eax
je 0x140051a5f
cmp dword [rbx + 0x4070], eax
je 0x140051a5f
cmp dword [rbx + 0x4098], eax
jne 0x140051a5f
call fcn.1400504f0
mov rbp, qword [0x1401968a8]
mov ecx, dword [rbx + 0x406c]
test ecx, ecx
je 0x140051a7e
movss xmm0, dword [rbx + 0x18]
addss xmm0, dword [rbx + 0x4074]
movss dword [rbx + 0x4074], xmm0
mov rax, qword [rbx + 0x4088]
movss xmm0, dword [rbx + 0x18]
addss xmm0, dword [rbx + 0x40ac]
mov qword [rbx + 0x40a0], rax
movzx eax, byte [rbx + 0x407c]
mov byte [rbx + 0x409d], al
mov eax, dword [rbx + 0x5da8]
movss dword [rbx + 0x40ac], xmm0
mov dword [rbx + 0x4098], ecx
mov dword [rbx + 0x4070], esi
mov byte [rbx + 0x407d], sil
mov byte [rbx + 0x409c], sil
mov byte [rbx + 0x4078], sil
test eax, eax
je 0x140051ae3
cmp ecx, eax
je 0x140051ae3
mov dword [rbx + 0x5da8], esi
test ecx, ecx
jne 0x140051afc
mov dword [rbx + 0x4940], esi
mov byte [rbx + 0x4944], sil
mov dword [rbx + 0x4948], esi
jmp 0x140051b1d
mov eax, dword [rbx + 0x4948]
test eax, eax
je 0x140051b1d
test al, 2
je 0x140051b1d
mov dword [rbp + 0x415c], ecx
mov dword [rbp + 0x4158], ecx
mov word [rbp + 0x4160], si
mov ecx, dword [rbx + 0x4e60]
test ecx, ecx
je 0x140051b40
movss xmm0, dword [rbx + 0x3d24]
comiss xmm0, dword [rbx + 0x4e7c]
ja 0x140051b46
mov dword [rbx + 0x4e70], ecx
jmp 0x140051b46
mov dword [rbx + 0x4e70], esi
mov rax, qword [rbx + 0x4010]
test rax, rax
je 0x140051b6e
movss xmm0, dword [rbx + 0x3d24]
comiss xmm0, dword [rbx + 0x4e7c]
ja 0x140051b74
mov eax, dword [rax + 0x10]
mov dword [rbx + 0x4e74], eax
jmp 0x140051b74
mov dword [rbx + 0x4e74], esi
movss xmm0, dword [rbx + 0x4e68]
mov dword [rbx + 0x4e64], ecx
test ecx, ecx
je 0x140051ba1
addss xmm0, dword [rbx + 0x18]
mov dword [rbx + 0x4e6c], esi
mov dword [rbx + 0x4e60], esi
movss dword [rbx + 0x4e68], xmm0
jmp 0x140051bd7
comiss xmm0, xmm9
jbe 0x140051bd7
movss xmm1, dword [rbx + 0x18]
movaps xmm0, xmm1
addss xmm1, xmm1
addss xmm0, dword [rbx + 0x4e6c]
maxss xmm1, dword [0x140172ff0]
movss dword [rbx + 0x4e6c], xmm0
comiss xmm0, xmm1
jb 0x140051bd7
mov qword [rbx + 0x4e68], rsi
mov eax, dword [rbx + 0x4d5c]
mov dword [rbx + 0x4d60], eax
mov qword [rbx + 0x4d58], 0x7f7fffff
mov word [rbx + 0x4cf1], si
mov dword [rbx + 0x4d68], esi
call fcn.14005a480
call fcn.14005f010
call fcn.14005ac00
call fcn.140050ea0
mov r10, qword [0x1401968a8]
mov rcx, qword [r10 + 0x4020]
test rcx, rcx
je 0x140051ce6
mov eax, dword [r10 + 0x406c]
mov dword [r10 + 0x4070], eax
cmp dword [r10 + 0x4098], eax
jne 0x140051c45
mov byte [r10 + 0x409c], 1
mov r9, qword [rcx + 0x388]
cmp byte [r10 + 0xe50], sil
je 0x140051cdd
lea rax, [r10 + 0xe48]
mov rcx, rax
test rax, rax
jne 0x140051c6f
lea rcx, [r10 + 0xe48]
movss xmm0, dword [rcx]
movss xmm1, dword [0x1401731c8]
comiss xmm0, xmm1
movss xmm2, dword [rcx + 4]
jb 0x140051cdd
comiss xmm2, xmm1
jb 0x140051cdd
movss xmm0, dword [rax]
lea rdx, [rsp + 0xa0]
movss xmm1, dword [rax + 4]
mov r8d, 1
subss xmm0, dword [r10 + 0x4080]
subss xmm1, dword [r10 + 0x4084]
mov rcx, r9
movss dword [rsp + 0xa0], xmm0
movss dword [rsp + 0xa4], xmm1
call fcn.140059530
mov rcx, qword [r10 + 0x4020]
xor edx, edx
call fcn.140058f40
jmp 0x140051d27
mov qword [r10 + 0x4020], rsi
jmp 0x140051d22
mov rcx, qword [r10 + 0x4088]
test rcx, rcx
je 0x140051d27
mov eax, dword [r10 + 0x406c]
cmp dword [rcx + 0x84], eax
jne 0x140051d27
mov dword [r10 + 0x4070], eax
cmp dword [r10 + 0x4098], eax
jne 0x140051d19
mov byte [r10 + 0x409c], 1
cmp byte [r10 + 0xe50], sil
jne 0x140051d27
call fcn.1400504f0
mov r8, qword [0x1401968a8]
mov eax, dword [r8 + 0x4a90]
sub eax, 1
js 0x140051d6b
mov r8, qword [r8 + 0x4a98]
movsxd rdx, eax
add r8, 8
imul rcx, rdx, 0x38
add r8, rcx
nop
mov rax, qword [r8]
test rax, rax
je 0x140051d61
test dword [rax + 0x14], 0x8000000
jne 0x140051d7e
sub r8, 0x38
sub rdx, 1
jns 0x140051d50
cmp qword [rbx + 0x4cb8], rsi
je 0x140051d9a
comiss xmm9, dword [rbx + 0x4cd4]
jae 0x140051d9a
movss xmm1, dword [rbx + 0x18]
mulss xmm1, dword [0x1401730b4]
addss xmm1, dword [rbx + 0x4cec]
minss xmm1, xmm10
jmp 0x140051db8
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x1401730cc]
movss xmm1, dword [rbx + 0x4cec]
subss xmm1, xmm0
maxss xmm1, xmm9
movss dword [rbx + 0x4cec], xmm1
mov r12d, 0xffffffff
movups xmm0, xmmword [rbx + 0x5ec8]
mov dword [rbx + 0x4e78], esi
mov qword [rbx + 0x617c], 0xffffffffffffffff
movups xmmword [rbx + 0x5ed8], xmm0
mov dword [rbx + 0x6178], r12d
mov byte [rbx + 0x5ec8], sil
call fcn.14005b110
movaps xmm10, xmmword [rsp + 0x20]
cmp byte [rbx + 0x3f6f], sil
jne 0x140051e25
movss xmm0, dword [rbx + 0x60]
comiss xmm0, xmm9
jb 0x140051e25
movsd xmm8, qword [rbx + 0x3f58]
cvtpd2ps xmm8, xmm8
subss xmm8, xmm0
mov r14, qword [rbx + 0x3fb0]
movsxd rax, dword [rbx + 0x3fa8]
lea rbp, [r14 + rax*8]
cmp r14, rbp
je 0x140051f4b
mov rdi, qword [r14]
movzx ecx, byte [rdi + 0xbe]
movzx eax, word [rdi + 0xcc]
mov byte [rdi + 0xbf], cl
mov byte [rdi + 0xbe], sil
mov byte [rdi + 0xc0], sil
mov word [rdi + 0xce], ax
mov word [rdi + 0xcc], si
test cl, cl
jne 0x140051f3e
cmp byte [rdi + 0x3f4], sil
jne 0x140051f3e
comiss xmm8, dword [rdi + 0x274]
jbe 0x140051f3e
mov rcx, qword [rdi + 0x2a8]
mov byte [rdi + 0x3f4], 1
mov eax, dword [rcx + 0x14]
mov dword [rdi + 0x3ec], eax
mov eax, dword [rcx + 0x24]
mov dword [rdi + 0x3f0], eax
mov rcx, qword [rdi + 0x108]
test rcx, rcx
je 0x140051ed5
mov qword [rdi + 0x100], rsi
call fcn.140108960
mov qword [rdi + 0x108], rsi
mov rcx, qword [rdi + 0x2a8]
call fcn.140065fe0
mov rcx, qword [rdi + 0x1a8]
test rcx, rcx
je 0x140051f00
mov qword [rdi + 0x1a0], rsi
call fcn.140108960
mov qword [rdi + 0x1a8], rsi
mov rcx, qword [rdi + 0x1e0]
test rcx, rcx
je 0x140051f1f
mov qword [rdi + 0x1d8], rsi
call fcn.140108960
mov qword [rdi + 0x1e0], rsi
mov rcx, qword [rdi + 0x1f0]
test rcx, rcx
je 0x140051f3e
mov qword [rdi + 0x1e8], rsi
call fcn.140108960
mov qword [rdi + 0x1f0], rsi
add r14, 8
cmp r14, rbp
jne 0x140051e40
mov ebp, esi
cmp dword [rbx + 0x4df0], esi
jle 0x140052069
mov r15, rsi
mov qword [rsp + 0xb8], r13
mov r14, rsi
nop word [rax + rax]
mov rax, qword [rbx + 0x4df8]
movss xmm0, dword [r14 + rax]
comiss xmm0, xmm9
jb 0x140052048
comiss xmm0, xmm8
jae 0x140052048
mov rdi, qword [rbx + 0x4dd0]
mov r13, qword [0x1401968a8]
add rdi, r15
mov qword [rdi + 0x1f0], rsi
mov rcx, qword [rdi + 0x1e8]
test rcx, rcx
je 0x140051fc8
mov qword [rdi + 0x1e0], rsi
call fcn.140108960
mov qword [rdi + 0x1e8], rsi
mov byte [rdi + 0x239], 1
mov rcx, qword [rdi + 0x198]
test rcx, rcx
je 0x140051fee
mov qword [rdi + 0x190], rsi
call fcn.140108960
mov qword [rdi + 0x198], rsi
mov edx, esi
mov byte [rdi + 0x248], 1
cmp dword [rdi + 0x6c], esi
jle 0x140052015
mov rcx, rsi
nop
mov rax, qword [rdi + 0x18]
lea rcx, [rcx + 0x70]
inc edx
mov word [rax + rcx - 0x20], r12w
cmp edx, dword [rdi + 0x6c]
jl 0x140052000
sub rdi, qword [r13 + 0x4dd0]
movabs rax, 0x3759f22983759f23
imul rdi
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [r13 + 0x4df8]
movsxd rcx, edx
mov dword [rax + rcx*4], 0xbf800000
inc ebp
add r14, 4
add r15, 0x250
cmp ebp, dword [rbx + 0x4df0]
jl 0x140051f70
mov r13, qword [rsp + 0xb8]
mov rdi, qword [rbx + 0x4dc0]
movsxd rax, dword [rbx + 0x4db8]
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov r12, qword [rsp + 0xb0]
imul rbp, rax, 0x78
add rbp, rdi
cmp rdi, rbp
je 0x1400520bf
movss xmm0, dword [rdi + 4]
comiss xmm0, xmm9
jb 0x1400520b6
comiss xmm0, xmm8
jae 0x1400520b6
lea rcx, [rdi + 0x18]
call fcn.140069870
mov dword [rdi + 4], 0xbf800000
add rdi, 0x78
cmp rdi, rbp
jne 0x140052095
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm8, xmmword [rsp + 0x40]
cmp byte [rbx + 0x3f6f], sil
je 0x14005211e
mov rdi, qword [0x1401968a8]
mov rcx, qword [rdi + 0x4a78]
test rcx, rcx
je 0x1400520fa
mov qword [rdi + 0x4a70], rsi
call fcn.140108960
mov qword [rdi + 0x4a78], rsi
mov rcx, qword [rdi + 0x4a88]
test rcx, rcx
je 0x140052119
mov qword [rdi + 0x4a80], rsi
call fcn.140108960
mov qword [rdi + 0x4a88], rsi
call fcn.14006eaa0
mov rax, qword [rbx + 0x4ad8]
mov byte [rbx + 0x3f6f], sil
test rax, rax
je 0x140052196
cmp byte [rax + 0xbf], sil
jne 0x140052196
mov rcx, qword [0x1401968a8]
mov eax, dword [rcx + 0x3fb8]
sub eax, 1
js 0x14005218a
movsxd rdx, eax
mov rax, qword [rcx + 0x3fc0]
lea r8, [rax + rdx*8]
nop word [rax + rax]
mov rcx, qword [r8]
test rcx, rcx
je 0x140052180
cmp byte [rcx + 0xbf], sil
je 0x140052180
mov eax, dword [rcx + 0x14]
and eax, 0x10200
cmp eax, 0x10200
jne 0x14005218c
sub r8, 8
sub rdx, 1
jns 0x140052160
xor ecx, ecx
mov edx, 1
call fcn.140058f40
mov ecx, dword [rbx + 0x3fdc]
test ecx, ecx
jns 0x1400521fb
mov eax, ecx
mov edi, esi
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
cmovg edi, eax
cmp edi, ecx
jle 0x1400521fb
movsxd rax, edi
imul rcx, rax, 0x58
call fcn.1401128c4
mov rdx, qword [rbx + 0x3fe0]
mov rbp, rax
test rdx, rdx
je 0x1400521ee
movsxd rcx, dword [rbx + 0x3fd8]
imul r8, rcx, 0x58
mov rcx, rax
call fcn.140132640
mov rcx, qword [rbx + 0x3fe0]
call fcn.140108960
mov qword [rbx + 0x3fe0], rbp
mov dword [rbx + 0x3fdc], edi
lea rcx, [rbx + 0x4aa0]
mov dword [rbx + 0x3fd8], esi
xor edx, edx
call fcn.140063c60
mov ecx, dword [rbx + 0x4a74]
mov eax, ecx
test ecx, ecx
jns 0x140052278
cdq
mov edi, esi
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
cmovg edi, eax
mov eax, ecx
cmp edi, ecx
jle 0x140052278
movsxd rcx, edi
shl rcx, 2
call fcn.1401128c4
mov rdx, qword [rbx + 0x4a78]
mov rbp, rax
test rdx, rdx
je 0x140052269
movsxd r8, dword [rbx + 0x4a70]
mov rcx, rax
shl r8, 2
call fcn.140132640
mov rcx, qword [rbx + 0x4a78]
call fcn.140108960
mov qword [rbx + 0x4a78], rbp
mov eax, edi
mov dword [rbx + 0x4a74], edi
mov rbp, qword [rsp + 0xa8]
mov dword [rbx + 0x4a70], esi
test eax, eax
jne 0x1400522d1
lea ecx, [rax + 0x20]
call fcn.1401128c4
mov rdx, qword [rbx + 0x4a78]
mov rdi, rax
test rdx, rdx
je 0x1400522c0
movsxd r8, dword [rbx + 0x4a70]
mov rcx, rax
shl r8, 2
call fcn.140132640
mov rcx, qword [rbx + 0x4a78]
call fcn.140108960
mov qword [rbx + 0x4a78], rdi
mov dword [rbx + 0x4a74], 8
movsxd rcx, dword [rbx + 0x4a70]
xor edx, edx
mov rax, qword [rbx + 0x4a78]
mov dword [rax + rcx*4], esi
lea rcx, [rbx + 0x4a80]
inc dword [rbx + 0x4a70]
call fcn.140063c60
movzx eax, byte [rbx + 0x5ff9]
test al, al
je 0x140052311
sub al, 1
mov byte [rbx + 0x5ff9], al
jne 0x140052311
mov dword [rbx + 0x4954], esi
movzx eax, byte [rbx + 0x5ff8]
test al, al
je 0x14005232d
sub al, 1
mov byte [rbx + 0x5ff8], al
jne 0x14005232d
and dword [rbx + 0x5fcc], 0xffffffef
mov rax, qword [0x1401968a8]
lea rcx, str.DebugDefault
movss xmm1, dword [0x14017312c]
xor r8d, r8d
mov byte [rbx + 0x3f6d], 1
movaps xmm0, xmm1
unpcklps xmm0, xmm1
xor edx, edx
or dword [rax + 0x49b8], 2
movsd qword [rax + 0x49d8], xmm0
mov dword [rax + 0x49c0], 4
call fcn.140056990
cmp byte [rbx + 0x79], sil
je 0x1400523bb
movsx edx, byte [rbx + 0x5ffa]
cmp dl, 0xff
je 0x1400523be
mov eax, dword [rbx + 0x3f60]
and eax, 0x80000003
jge 0x140052399
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
mov eax, 0x66666667
sete sil
add esi, edx
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub esi, eax
jmp 0x1400523be
mov sil, 0xff
mov byte [rbx + 0x5ffa], sil
mov rdi, qword [rbx + 0x5f38]
movsxd rsi, dword [rbx + 0x5f30]
shl rsi, 5
add rsi, rdi
cmp rdi, rsi
je 0x1400523f8
nop
cmp dword [rdi + 4], 1
jne 0x1400523ef
mov rdx, rdi
mov rcx, rbx
call qword [rdi + 0x10]
add rdi, 0x20
cmp rdi, rsi
jne 0x1400523e0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret