Function at 0x140008150
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
sub rsp, 0xb8
mov rdi, qword [0x140190ed8]
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], r14
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
movaps xmmword [rax - 0x58], xmm9
movaps xmmword [rax - 0x68], xmm10
movaps xmmword [rax - 0x78], xmm11
movaps xmmword [rsp + 0x40], xmm12
test rdi, rdi
jne 0x1400081b7
mov r8d, 0x110d
lea rdx, [0x1400c8930]
lea rcx, [0x1400c8e30]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rdi, qword [0x140190ed8]
mov ebx, dword [rdi + 0x5c10]
sub ebx, 1
js 0x1400082ad
movsxd rbp, ebx
shl rbp, 5
mov r14, rbp
cmp ebx, dword [rdi + 0x5c10]
jl 0x1400081f2
mov r8d, 0x702
lea rdx, [0x1400c8730]
lea rcx, [0x1400cd8f8]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rax, qword [rdi + 0x5c18]
cmp dword [rax + rbp + 4], 7
jne 0x14000829c
cmp ebx, dword [rdi + 0x5c10]
jl 0x140008226
mov r8d, 0x702
lea rdx, [0x1400c8730]
lea rcx, [0x1400cd8f8]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rcx, qword [rdi + 0x5c18]
lea rsi, [rcx + r14]
cmp rsi, rcx
jb 0x140008249
movsxd rax, dword [rdi + 0x5c10]
shl rax, 5
add rax, rcx
cmp rsi, rax
jb 0x140008263
mov r8d, 0x71a
lea rdx, [0x1400c8730]
lea rcx, [0x1400cd958]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rcx, qword [rdi + 0x5c18]
movsxd r8, dword [rdi + 0x5c10]
sub rsi, rcx
sar rsi, 5
sub r8, rsi
mov rax, rsi
shl rax, 5
add rcx, rax
shl r8, 5
sub r8, 0x20
lea rdx, [rcx + 0x20]
call sub.VCRUNTIME140.dll_memcpy
dec dword [rdi + 0x5c10]
sub r14, 0x20
sub rbp, 0x20
sub ebx, 1
jns 0x1400081d0
xor edx, edx
mov rcx, rdi
call fcn.140006640
call fcn.140014b10
mov rbx, qword [0x140190ed8]
xor esi, esi
cmp byte [rbx + 0x5bc9], sil
jne 0x140008351
cmp dword [rbx + 0x5bf0], esi
je 0x1400082f4
mov r8d, 0x3150
lea rdx, [0x1400c8930]
lea rcx, [0x1400cd5a0]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14000834a
lea r8, [rsp + 0xd0]
mov qword [rsp + 0xd0], rsi
call fcn.1400035f0
mov rbp, rax
test rax, rax
je 0x14000834a
mov rdx, qword [rsp + 0xd0]
test rdx, rdx
je 0x14000832f
mov rcx, rax
call fcn.14001c170
mov rcx, qword [0x140190ed8]
test rcx, rcx
je 0x140008341
dec dword [rcx + 0xf4]
mov rcx, rbp
call qword [sym.imp.ucrtbase.dll_free]
mov byte [rbx + 0x5bc9], 1
movss xmm0, dword [rbx + 0x5bcc]
xorps xmm12, xmm12
comiss xmm0, xmm12
jbe 0x1400083f0
subss xmm0, dword [rbx + 0x18]
comiss xmm12, xmm0
movss dword [rbx + 0x5bcc], xmm0
jb 0x1400083f0
mov rbp, qword [rbx + 0x20]
test rbp, rbp
je 0x1400083e3
mov rax, qword [0x140190ed8]
lea rcx, [rsp + 0xd0]
mov qword [rsp + 0xd0], rsi
mov dword [rax + 0x5bcc], esi
call fcn.14001c520
lea rdx, [0x1400cd63c]
mov rcx, rbp
mov r14, rax
call fcn.140003440
mov rbp, rax
test rax, rax
je 0x1400083ea
mov r8, qword [rsp + 0xd0]
mov r9, rax
mov edx, 1
mov rcx, r14
call qword [sym.imp.ucrtbase.dll_fwrite]
mov rcx, rbp
call qword [sym.imp.ucrtbase.dll_fclose]
jmp 0x1400083ea
mov byte [rbx + 0xdc], 1
mov dword [rbx + 0x5bcc], esi
inc dword [rdi + 0x3e70]
movss xmm0, dword [rdi + 0x18]
cvtps2pd xmm0, xmm0
mov byte [rdi + 0x3e7c], 1
mov word [rdi + 0x5b82], si
mov dword [rdi + 0x3ee0], esi
addsd xmm0, qword [rdi + 0x3e68]
movsd qword [rdi + 0x3e68], xmm0
mov ecx, dword [rdi + 0x5b9c]
test ecx, ecx
jns 0x140008448
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x5b98]
test eax, eax
cmovg edx, eax
call fcn.14001e8b0
movss xmm11, dword [0x1400d54f4]
movss xmm10, dword [0x1400d5430]
mov dword [rdi + 0x5b98], esi
movsxd rax, dword [rdi + 0x5e08]
movss xmm1, dword [rdi + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [rdi + rax*4 + 0x5d18]
addss xmm0, dword [rdi + 0x5e10]
movss dword [rdi + 0x5e10], xmm0
movss dword [rdi + rax*4 + 0x5d18], xmm1
mov eax, 0x88888889
mov ecx, dword [rdi + 0x5e08]
movss xmm2, dword [rdi + 0x5e10]
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 [rdi + 0x5e0c]
inc eax
mov dword [rdi + 0x5e08], ecx
mov ecx, 0x3c
cmp eax, ecx
cmovl ecx, eax
comiss xmm2, xmm12
mov dword [rdi + 0x5e0c], ecx
jbe 0x1400084f2
movd xmm0, ecx
movaps xmm1, xmm10
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
divss xmm1, xmm2
jmp 0x1400084f6
movaps xmm1, xmm11
movss dword [rdi + 0xe0], xmm1
mov ecx, dword [rdi + 0x37e4]
test ecx, ecx
jns 0x140008524
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x37e0]
test eax, eax
cmovg edx, eax
call fcn.14001e6e0
mov dword [rdi + 0x37e0], esi
movzx ecx, byte [rdi + 0x7a]
call fcn.140014080
mov rbp, qword [0x140190ed8]
cmp dword [rbp + 0x48c0], 1
je 0x14000855d
mov r8d, 0x32ba
lea rdx, [0x1400c8930]
lea rcx, [0x1400cd6f8]
call qword [sym.imp.ucrtbase.dll__wassert]
cmp dword [rbp + 0x48c0], esi
jg 0x14000857f
mov r8d, 0x702
lea rdx, [0x1400c8730]
lea rcx, [0x1400cd8f8]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rax, qword [rbp + 0x48c8]
mov r14d, esi
mov rcx, qword [rax]
mov qword [rcx], 5
mov dword [rcx + 8], esi
movsd xmm0, qword [rbp + 0x10]
movsd qword [rcx + 0xc], xmm0
mov eax, dword [rbp + 0x48c0]
test eax, eax
jle 0x140008680
mov rbx, rsi
test rbx, rbx
js 0x1400085bb
cmp r14d, eax
jl 0x1400085d5
mov r8d, 0x702
lea rdx, [0x1400c8730]
lea rcx, [0x1400cd8f8]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rax, qword [rbp + 0x48c8]
movaps xmm3, xmm12
inc r14d
mov rcx, qword [rax + rbx*8]
inc rbx
movsd xmm4, qword [rcx + 0xa8]
movsd xmm2, qword [rcx + 0xb0]
movaps xmm1, xmm4
addss xmm1, dword [rcx + 4]
movsd qword [rcx + 0xa0], xmm2
movaps xmm0, xmm4
shufps xmm0, xmm0, 0x55
addss xmm0, dword [rcx + 8]
mov qword [rcx + 0xb0], rsi
movss dword [rcx + 0x14], xmm1
movss xmm1, dword [rcx + 0xc]
mov qword [rcx + 0xa8], rsi
subss xmm1, xmm4
movss dword [rcx + 0x18], xmm0
movaps xmm0, xmm4
shufps xmm0, xmm0, 0x55
movsd qword [rcx + 0x98], xmm4
addss xmm1, xmm2
movss xmm2, dword [rcx + 0x10]
subss xmm2, xmm0
movaps xmm0, xmm12
maxss xmm3, xmm1
addss xmm2, dword [rcx + 0xa4]
movss dword [rcx + 0x1c], xmm3
maxss xmm0, xmm2
movss dword [rcx + 0x20], xmm0
mov eax, dword [rbp + 0x48c0]
cmp r14d, eax
jl 0x1400085b1
mov rax, qword [rdi + 0x58]
mov rbx, qword [0x140190ed8]
mov byte [rax + 0x18], 1
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400086c2
mov rbx, qword [rbx + 0x58]
cmp dword [rbx + 0x58], esi
jg 0x1400086bb
mov r8d, 0x702
lea rdx, [0x1400c8730]
lea rcx, [0x1400cd8f8]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rax, qword [rbx + 0x60]
mov rcx, qword [rax]
call fcn.140011670
mov rax, qword [rdi + 0x3c38]
cmp qword [rax + 0x40], rsi
jne 0x1400086ee
mov r8d, 0x1136
lea rdx, [0x1400c8930]
lea rcx, [0x1400c9580]
call qword [sym.imp.ucrtbase.dll__wassert]
movss xmm6, dword [0x1400d550c]
movaps xmm9, xmm11
mov eax, dword [rdi + 0x48c0]
movaps xmm7, xmm6
movaps xmm8, xmm11
mov ebx, esi
test eax, eax
jle 0x14000878f
mov rbp, rsi
test rbp, rbp
js 0x14000871d
cmp ebx, eax
jl 0x140008737
mov r8d, 0x702
lea rdx, [0x1400c8730]
lea rcx, [0x1400cd8f8]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rax, qword [rdi + 0x48c8]
mov rcx, qword [rax + rbp*8]
movss xmm3, dword [rcx + 4]
comiss xmm9, xmm3
movss xmm2, dword [rcx + 8]
movaps xmm0, xmm3
addss xmm0, dword [rcx + 0xc]
movaps xmm1, xmm2
addss xmm1, dword [rcx + 0x10]
jbe 0x140008766
movaps xmm9, xmm3
comiss xmm8, xmm2
jbe 0x140008770
movaps xmm8, xmm2
comiss xmm0, xmm6
jbe 0x140008778
movaps xmm6, xmm0
comiss xmm1, xmm7
jbe 0x140008780
movaps xmm7, xmm1
mov eax, dword [rdi + 0x48c0]
inc ebx
inc rbp
cmp ebx, eax
jl 0x140008714
movss dword [rdi + 0x3c64], xmm9
movss dword [rdi + 0x3c68], xmm8
movss dword [rdi + 0x3c6c], xmm6
movss dword [rdi + 0x3c70], xmm7
mov eax, dword [rdi + 0x38c4]
movss xmm6, dword [rdi + 0x38c8]
movaps xmm9, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x80]
movaps xmm7, xmmword [rsp + 0x90]
mov dword [rdi + 0x3c5c], eax
movss xmm0, dword [rdi + 0x3c60]
ucomiss xmm0, xmm6
jp 0x1400087ef
je 0x1400088c2
comiss xmm6, xmm12
ja 0x14000880f
mov r8d, 0x193
lea rdx, [0x1400d2620]
lea rcx, [0x1400d2680]
call qword [sym.imp.ucrtbase.dll__wassert]
movss dword [rdi + 0x3c60], xmm6
lea r14, [rdi + 0x3e0c]
movss xmm6, dword [0x1400d5450]
mov ebx, esi
mov ebp, 0x800
nop dword [rax]
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
test ebx, ebx
je 0x140008887
movss xmm1, dword [rdi + 0x3c60]
minss xmm1, xmm0
divss xmm1, xmm0
movaps xmm0, xmm10
subss xmm0, xmm1
call sub.ucrtbase.dll_acosf
movaps xmm1, xmm6
divss xmm1, xmm0
movaps xmm0, xmm1
call sub.ucrtbase.dll_ceilf
cvttss2si eax, xmm0
inc eax
cdq
sub eax, edx
sar eax, 1
add eax, eax
cmp eax, 0x64
jge 0x140008880
mov eax, 0x64
jmp 0x14000888c
cmp eax, ebp
cmovg eax, ebp
jmp 0x14000888c
mov eax, 0x30
mov byte [r14], al
inc ebx
inc r14
cmp ebx, 0x40
jl 0x140008830
movss xmm0, dword [0x1400d53d8]
call sub.ucrtbase.dll_cosf
movss xmm1, dword [rdi + 0x3c60]
movaps xmm2, xmm10
subss xmm2, xmm0
divss xmm1, xmm2
movss dword [rdi + 0x3e08], xmm1
mov r8d, esi
movaps xmm6, xmmword [rsp + 0xa0]
mov dword [rdi + 0x3c74], esi
cmp byte [rdi + 0x38c0], sil
je 0x1400088ec
mov dword [rdi + 0x3c74], 1
mov r8d, 1
mov edx, r8d
cmp byte [rdi + 0x38c1], sil
je 0x140008911
mov rax, qword [rdi + 0x3c38]
mov rcx, qword [rax + 0x40]
test byte [rcx], 4
jne 0x140008911
or edx, 2
mov dword [rdi + 0x3c74], edx
cmp byte [rdi + 0x38c2], sil
je 0x140008923
or edx, 4
mov dword [rdi + 0x3c74], edx
test byte [rdi + 0xc], 8
je 0x140008932
or edx, 8
mov dword [rdi + 0x3c74], edx
mov eax, dword [rdi + 0x48c0]
mov ebx, esi
test eax, eax
jle 0x14000898d
mov rbp, rsi
test rbp, rbp
js 0x14000894a
cmp ebx, eax
jl 0x140008964
mov r8d, 0x702
lea rdx, [0x1400c8730]
lea rcx, [0x1400cd8f8]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rax, qword [rdi + 0x48c8]
xorps xmm0, xmm0
inc ebx
mov rcx, qword [rax + rbp*8]
inc rbp
movups xmmword [rcx + 0x48], xmm0
movups xmmword [rcx + 0x58], xmm0
movups xmmword [rcx + 0x68], xmm0
mov eax, dword [rdi + 0x48c0]
cmp ebx, eax
jl 0x140008941
cmp byte [rdi + 0x4a74], sil
je 0x1400089c8
mov eax, dword [rdi + 0x4a94]
cmp eax, dword [rdi + 0x3f50]
jne 0x1400089c8
mov rcx, qword [0x140190ed8]
cmp dword [rcx + 0x3f50], eax
jne 0x1400089b9
mov dword [rcx + 0x3f54], eax
cmp dword [rcx + 0x3f80], eax
jne 0x1400089c8
mov byte [rcx + 0x3f84], 1
cmp dword [rdi + 0x3f40], esi
jne 0x1400089d8
mov dword [rdi + 0x3f48], esi
jmp 0x1400089ea
mov eax, dword [rdi + 0x3f3c]
test eax, eax
je 0x1400089f0
cmp dword [rdi + 0x3f50], eax
jne 0x1400089f0
mov dword [rdi + 0x3f4c], esi
mov eax, dword [rdi + 0x3f3c]
test eax, eax
je 0x140008a2a
movss xmm1, dword [rdi + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [rdi + 0x3f48]
movss dword [rdi + 0x3f48], xmm0
cmp dword [rdi + 0x3f50], eax
je 0x140008a2a
addss xmm1, dword [rdi + 0x3f4c]
movss dword [rdi + 0x3f4c], xmm1
mov dword [rdi + 0x3f40], eax
mov eax, dword [rdi + 0x3f50]
mov dword [rdi + 0x3f3c], esi
mov word [rdi + 0x3f44], si
test eax, eax
je 0x140008a71
cmp dword [rdi + 0x3f54], eax
je 0x140008a71
cmp dword [rdi + 0x3f80], eax
jne 0x140008a71
test byte [rdi + 0x5ca4], 1
je 0x140008a6c
lea rcx, [0x1400c95b0]
call fcn.14001d270
call fcn.1400072a0
mov ebx, dword [rdi + 0x3f50]
test ebx, ebx
je 0x140008a90
movss xmm0, dword [rdi + 0x18]
addss xmm0, dword [rdi + 0x3f58]
movss dword [rdi + 0x3f58], xmm0
mov rax, qword [rdi + 0x3f70]
movss xmm0, dword [rdi + 0x18]
addss xmm0, dword [rdi + 0x3f94]
mov qword [rdi + 0x3f88], rax
movzx eax, byte [rdi + 0x3f60]
mov byte [rdi + 0x3f85], al
mov eax, dword [rdi + 0x5b08]
movss dword [rdi + 0x3f94], xmm0
mov dword [rdi + 0x3f80], ebx
mov dword [rdi + 0x3f54], esi
mov byte [rdi + 0x3f61], sil
mov byte [rdi + 0x3f84], sil
mov byte [rdi + 0x3f5c], sil
test eax, eax
je 0x140008af5
cmp ebx, eax
je 0x140008af5
mov dword [rdi + 0x5b08], esi
test ebx, ebx
jne 0x140008b0e
mov dword [rdi + 0x4760], esi
mov byte [rdi + 0x4764], sil
mov dword [rdi + 0x4768], esi
jmp 0x140008b55
mov eax, dword [rdi + 0x4768]
test eax, eax
je 0x140008b55
test al, 2
je 0x140008b2f
mov ecx, 0x20e
call fcn.1400022b0
mov dword [rax + 4], ebx
mov dword [rax], ebx
mov word [rax + 8], si
test dword [rdi + 0x4768], 0xfffffffd
je 0x140008b55
mov r8d, 0x1189
lea rdx, [0x1400c8930]
lea rcx, [0x1400c88c0]
call qword [sym.imp.ucrtbase.dll__wassert]
mov eax, dword [rdi + 0x4be8]
movss xmm0, dword [rdi + 0x4bf0]
mov dword [rdi + 0x4bec], eax
test eax, eax
je 0x140008b88
addss xmm0, dword [rdi + 0x18]
mov dword [rdi + 0x4bf4], esi
mov dword [rdi + 0x4be8], esi
movss dword [rdi + 0x4bf0], xmm0
jmp 0x140008bc2
comiss xmm0, xmm12
jbe 0x140008bc2
movss xmm2, dword [rdi + 0x18]
movss xmm0, dword [0x1400d53e4]
movaps xmm1, xmm2
addss xmm1, dword [rdi + 0x4bf4]
addss xmm2, xmm2
movss dword [rdi + 0x4bf4], xmm1
maxss xmm0, xmm2
comiss xmm1, xmm0
jb 0x140008bc2
mov qword [rdi + 0x4bf0], rsi
mov eax, dword [rdi + 0x4ae4]
mov dword [rdi + 0x4ae8], eax
mov qword [rdi + 0x4ae0], 0x7f7fffff
mov word [rdi + 0x4a75], si
mov dword [rdi + 0x4af0], esi
call fcn.140012a40
call fcn.1400187e0
call fcn.140013220
call fcn.140007d20
mov rbx, qword [0x140190ed8]
mov rcx, qword [rbx + 0x3f08]
test rcx, rcx
je 0x140008d22
mov eax, dword [rbx + 0x3f50]
mov dword [rbx + 0x3f54], eax
cmp dword [rbx + 0x3f80], eax
jne 0x140008c2c
mov byte [rbx + 0x3f84], 1
cmp qword [rcx + 0x378], rsi
jne 0x140008c4f
mov r8d, 0x1069
lea rdx, [0x1400c8930]
lea rcx, [0x1400c9520]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rax, qword [rbx + 0x3f08]
mov r14, qword [rax + 0x378]
cmp byte [rbx + 0xe10], sil
je 0x140008d19
cmp qword [0x140190ed8], rsi
lea rbp, [rbx + 0xe08]
jne 0x140008c94
mov r8d, 0x2055
lea rdx, [0x1400c8930]
lea rcx, [0x1400cad38]
call qword [sym.imp.ucrtbase.dll__wassert]
test rbp, rbp
jne 0x140008ca7
mov rbp, qword [0x140190ed8]
add rbp, 0xe08
movss xmm0, dword [rbp]
movss xmm1, dword [0x1400d5508]
comiss xmm0, xmm1
movss xmm2, dword [rbp + 4]
jb 0x140008d19
comiss xmm2, xmm1
jb 0x140008d19
movss xmm0, dword [rbx + 0xe08]
lea rdx, [rsp + 0xd0]
movss xmm1, dword [rbx + 0xe0c]
mov r8d, 1
subss xmm0, dword [rbx + 0x3f64]
subss xmm1, dword [rbx + 0x3f68]
mov rcx, r14
movss dword [rsp + 0xd0], xmm0
movss dword [rsp + 0xd4], xmm1
call fcn.1400118d0
mov rcx, qword [rbx + 0x3f08]
call fcn.140011440
jmp 0x140008d5c
mov qword [rbx + 0x3f08], rsi
jmp 0x140008d57
mov rcx, qword [rbx + 0x3f70]
test rcx, rcx
je 0x140008d5c
mov eax, dword [rbx + 0x3f50]
cmp dword [rcx + 0x7c], eax
jne 0x140008d5c
mov dword [rbx + 0x3f54], eax
cmp dword [rbx + 0x3f80], eax
jne 0x140008d4e
mov byte [rbx + 0x3f84], 1
cmp byte [rbx + 0xe10], sil
jne 0x140008d5c
call fcn.1400072a0
mov r8, qword [0x140190ed8]
mov eax, dword [r8 + 0x4898]
sub eax, 1
js 0x140008d9f
mov r8, qword [r8 + 0x48a0]
movsxd rdx, eax
add r8, 8
imul rcx, rdx, 0x38
add r8, rcx
mov rax, qword [r8]
test rax, rax
je 0x140008d95
test dword [rax + 0x14], 0x8000000
jne 0x140008db6
sub r8, 0x38
sub rdx, 1
jns 0x140008d84
cmp qword [rdi + 0x4a38], rsi
je 0x140008dd2
movss xmm0, dword [rdi + 0x4a54]
comiss xmm0, xmm12
jbe 0x140008dd2
movss xmm1, dword [rdi + 0x18]
mulss xmm1, dword [0x1400d5464]
addss xmm1, dword [rdi + 0x4a6c]
minss xmm1, xmm10
jmp 0x140008df0
movss xmm0, dword [rdi + 0x18]
mulss xmm0, dword [0x1400d5470]
movss xmm1, dword [rdi + 0x4a6c]
subss xmm1, xmm0
maxss xmm1, xmm12
movss dword [rdi + 0x4a6c], xmm1
movups xmm0, xmmword [rdi + 0x5ba8]
mov dword [rdi + 0x4a70], esi
mov qword [rdi + 0x5e18], 0xffffffffffffffff
movups xmmword [rdi + 0x5bb8], xmm0
mov dword [rdi + 0x5e14], 0xffffffff
mov byte [rdi + 0x5ba8], sil
call fcn.140013840
mov eax, dword [rdi + 0x3e90]
movaps xmm10, xmmword [rsp + 0x60]
cmp dword [rdi + 0x3ea0], eax
jle 0x140008e61
mov r8d, 0x11d0
lea rdx, [0x1400c8930]
lea rcx, [0x1400c9600]
call qword [sym.imp.ucrtbase.dll__wassert]
mov eax, dword [rdi + 0x3e90]
cmp byte [rdi + 0x3e7f], sil
jne 0x140008e8b
movss xmm0, dword [rdi + 0x80]
comiss xmm12, xmm0
ja 0x140008e8b
movsd xmm11, qword [rdi + 0x3e68]
cvtpd2ps xmm11, xmm11
subss xmm11, xmm0
mov ebp, esi
test eax, eax
je 0x140009020
mov r14, rsi
test r14, r14
js 0x140008ea1
cmp ebp, eax
jl 0x140008ebb
mov r8d, 0x702
lea rdx, [0x1400c8730]
lea rcx, [0x1400cd8f8]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rax, qword [rdi + 0x3e98]
mov rbx, qword [rax + r14*8]
movzx ecx, byte [rbx + 0xb6]
movzx eax, word [rbx + 0xc2]
mov byte [rbx + 0xb7], cl
mov byte [rbx + 0xb6], sil
mov byte [rbx + 0xb8], sil
mov word [rbx + 0xc4], ax
mov word [rbx + 0xc2], si
test cl, cl
jne 0x14000900d
cmp byte [rbx + 0x3d4], sil
jne 0x14000900d
comiss xmm11, dword [rbx + 0x264]
jbe 0x14000900d
mov rcx, qword [rbx + 0x298]
mov byte [rbx + 0x3d4], 1
mov eax, dword [rcx + 0x14]
mov dword [rbx + 0x3cc], eax
mov eax, dword [rcx + 0x24]
mov dword [rbx + 0x3d0], eax
mov rcx, qword [rbx + 0xf8]
test rcx, rcx
je 0x140008f6b
mov rax, qword [0x140190ed8]
mov qword [rbx + 0xf0], rsi
test rax, rax
je 0x140008f5e
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rbx + 0xf8], rsi
mov rcx, qword [rbx + 0x298]
call fcn.140020510
mov rcx, qword [rbx + 0x198]
test rcx, rcx
je 0x140008fa9
mov rax, qword [0x140190ed8]
mov qword [rbx + 0x190], rsi
test rax, rax
je 0x140008f9c
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rbx + 0x198], rsi
mov rcx, qword [rbx + 0x1d0]
test rcx, rcx
je 0x140008fdb
mov rax, qword [0x140190ed8]
mov qword [rbx + 0x1c8], rsi
test rax, rax
je 0x140008fce
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rbx + 0x1d0], rsi
mov rcx, qword [rbx + 0x1e0]
test rcx, rcx
je 0x14000900d
mov rax, qword [0x140190ed8]
mov qword [rbx + 0x1d8], rsi
test rax, rax
je 0x140009000
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rbx + 0x1e0], rsi
mov eax, dword [rdi + 0x3e90]
inc ebp
inc r14
cmp ebp, eax
jne 0x140008e98
mov eax, dword [rdi + 0x4b78]
mov ebx, esi
test eax, eax
jle 0x1400090eb
mov rbp, rsi
test ebx, ebx
js 0x14000903b
cmp ebx, eax
jl 0x140009055
mov r8d, 0x702
lea rdx, [0x1400c8730]
lea rcx, [0x1400cd8f8]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rax, qword [rdi + 0x4b80]
movss xmm0, dword [rax + rbp]
comiss xmm0, xmm12
jb 0x1400090d7
test ebx, ebx
js 0x140009073
cmp ebx, dword [rdi + 0x4b78]
jl 0x14000908d
mov r8d, 0x702
lea rdx, [0x1400c8730]
lea rcx, [0x1400cd8f8]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rax, qword [rdi + 0x4b80]
comiss xmm11, dword [rax + rbp]
jbe 0x1400090d7
test ebx, ebx
js 0x1400090a7
cmp ebx, dword [rdi + 0x4b50]
jl 0x1400090c1
mov r8d, 0x702
lea rdx, [0x1400c8730]
lea rcx, [0x1400cd8f8]
call qword [sym.imp.ucrtbase.dll__wassert]
movsxd rax, ebx
imul rcx, rax, 0x238
add rcx, qword [rdi + 0x4b58]
call fcn.14002e540
mov eax, dword [rdi + 0x4b78]
inc ebx
add rbp, 4
cmp ebx, eax
jl 0x140009033
mov eax, dword [rdi + 0x4b40]
mov ebp, esi
mov qword [rsp + 0xb0], r15
test eax, eax
jle 0x1400091d7
mov r15, rsi
mov r14, rsi
nop dword [rax]
test r15, r15
js 0x140009119
cmp ebp, eax
jl 0x140009133
mov r8d, 0x702
lea rdx, [0x1400c8730]
lea rcx, [0x1400cd8f8]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rax, qword [rdi + 0x4b48]
movss xmm0, dword [r14 + rax + 4]
comiss xmm0, xmm12
jb 0x1400091c0
test r15, r15
js 0x140009154
cmp ebp, dword [rdi + 0x4b40]
jl 0x14000916e
mov r8d, 0x702
lea rdx, [0x1400c8730]
lea rcx, [0x1400cd8f8]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rax, qword [rdi + 0x4b48]
comiss xmm11, dword [r14 + rax + 4]
jbe 0x1400091c0
test r15, r15
js 0x14000918a
cmp ebp, dword [rdi + 0x4b40]
jl 0x1400091a4
mov r8d, 0x702
lea rdx, [0x1400c8730]
lea rcx, [0x1400cd8f8]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rbx, qword [rdi + 0x4b48]
lea rcx, [rbx + 0x10]
add rcx, r14
call fcn.1400250a0
mov dword [r14 + rbx + 4], 0xbf800000
mov eax, dword [rdi + 0x4b40]
inc ebp
inc r15
add r14, 0x70
cmp ebp, eax
jl 0x140009110
movaps xmm12, xmmword [rsp + 0x40]
movaps xmm11, xmmword [rsp + 0x50]
cmp byte [rdi + 0x3e7f], sil
je 0x140009258
mov rax, qword [0x140190ed8]
mov rbx, rax
mov rcx, qword [rax + 0x4880]
test rcx, rcx
je 0x140009228
mov qword [rax + 0x4878], rsi
test rax, rax
je 0x140009214
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov rax, qword [0x140190ed8]
mov qword [rbx + 0x4880], rsi
mov rcx, qword [rbx + 0x4890]
test rcx, rcx
je 0x140009253
mov qword [rbx + 0x4888], rsi
test rax, rax
je 0x140009246
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rbx + 0x4890], rsi
call fcn.14002e710
mov rax, qword [rdi + 0x48d0]
mov byte [rdi + 0x3e7f], sil
test rax, rax
je 0x14000927b
cmp byte [rax + 0xb7], sil
jne 0x14000927b
xor ecx, ecx
call fcn.140011560
mov ecx, dword [rdi + 0x3ec4]
test ecx, ecx
jns 0x1400092a1
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x3ec0]
test eax, eax
cmovg edx, eax
call fcn.14001e650
mov dword [rdi + 0x3ec0], esi
mov ecx, dword [rdi + 0x48ac]
test ecx, ecx
jns 0x1400092cd
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x48a8]
test eax, eax
cmovg edx, eax
call fcn.14001e5c0
lea rbx, [rdi + 0x4878]
mov dword [rdi + 0x48a8], esi
mov ecx, dword [rbx + 4]
test ecx, ecx
jns 0x1400092f9
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.14001e8b0
mov dword [rbx], esi
cmp dword [rbx + 4], esi
jne 0x14000930d
mov edx, 8
mov rcx, rbx
call fcn.14001e8b0
movsxd rcx, dword [rbx]
xor edx, edx
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], esi
lea rcx, [rdi + 0x4888]
inc dword [rbx]
call fcn.14001dc60
mov rbp, qword [0x140190ed8]
mov dword [rbp + 0x5cd8], esi
cmp byte [rbp + 0x5cd3], sil
je 0x1400094b8
mov r15d, dword [rbp + 0x3f40]
xor edx, edx
mov ecx, 0x20e
mov dword [rbp + 0x4a70], 7
lea r8d, [rdx + 1]
call fcn.1400125b0
test al, al
je 0x14000936d
mov byte [rbp + 0x5cd3], sil
mov r14d, dword [rbp + 0xe24]
cmp r14d, 0x3000
je 0x1400093a5
movzx ecx, byte [rbp + 0x5cd4]
xor r8d, r8d
xor edx, edx
call fcn.140012780
test al, al
je 0x1400093a5
test r15d, r15d
je 0x1400093a5
mov dword [rbp + 0x5cd8], r15d
mov byte [rbp + 0x5cd3], sil
mov ebx, esi
cmp r14d, 0x3000
jne 0x1400093c6
xor r8d, r8d
xor edx, edx
mov ecx, ebx
call fcn.140012780
test al, al
je 0x1400093c6
mov byte [rbp + 0x5cd4], bl
inc ebx
cmp ebx, 3
jl 0x1400093a7
mov rax, qword [0x140190ed8]
xor ecx, ecx
or dword [rax + 0x47c8], 0x40
mov dword [rax + 0x4828], 0x3f333333
call fcn.140016260
test al, al
je 0x1400094b8
mov edx, r15d
lea rcx, [0x1400cd738]
call fcn.14002f860
lea rcx, [0x1400cd750]
call fcn.14002f860
lea rax, [0x1400cd76c]
mov qword [rsp + 0x20], rax
lea rax, [0x1400cd774]
mov qword [rsp + 0x28], rax
lea rax, [0x1400cd77c]
mov qword [rsp + 0x30], rax
cmp r14d, 0x3000
jne 0x14000944a
lea rcx, [0x1400cd790]
call fcn.14002f860
jmp 0x140009482
movzx r8d, byte [rbp + 0x5cd4]
lea rdx, [0x1400cd7d0]
test r15d, r15d
mov eax, 0x10
mov rcx, rsi
cmove rcx, rax
mov rax, qword [0x140190ed8]
mov r8, qword [rsp + r8*8 + 0x20]
add rax, 0x38d8
add rcx, rax
call fcn.14002f9a0
mov rax, qword [0x140190ed8]
mov rcx, qword [rax + 0x3ef0]
test dword [rcx + 0x14], 0x2000000
jne 0x1400094b3
mov r8d, 0x2724
lea rdx, [0x1400c8930]
lea rcx, [0x1400ccb50]
call qword [sym.imp.ucrtbase.dll__wassert]
call fcn.140010a70
mov rbx, qword [0x140190ed8]
mov r15, qword [rsp + 0xb0]
mov dword [rbx + 0x3f38], esi
mov eax, dword [rbx + 0x5cf0]
inc eax
cmp dword [rbx + 0x3e70], eax
jne 0x1400095aa
mov ebp, dword [rbx + 0x3f40]
test ebp, ebp
jne 0x1400094f1
mov ebp, dword [rbx + 0x3f50]
cmp dword [rbx + 0x5cf8], ebp
je 0x140009535
mov dword [rbx + 0x5cf8], ebp
mov dword [rbx + 0x5cf4], 0xffffffff
mov ecx, dword [rbx + 0x5d04]
test ecx, ecx
jns 0x14000952f
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x5d00]
test eax, eax
cmovg edx, eax
call fcn.14001e780
mov dword [rbx + 0x5d00], esi
test ebp, ebp
je 0x1400095aa
movsxd rax, dword [rbx + 0x5cf4]
test eax, eax
js 0x14000956b
cmp eax, dword [rbx + 0x5d00]
jge 0x14000956b
lea rcx, [rax + rax*8]
mov rax, qword [rbx + 0x5d08]
cmp byte [rax + rcx*8 + 5], sil
jne 0x140009565
cmp byte [rax + rcx*8 + 4], 2
jle 0x14000956b
inc dword [rbx + 0x5cf4]
movsxd rdx, dword [rbx + 0x5cf4]
cmp edx, 0xffffffff
jne 0x14000957f
mov dword [rbx + 0x3f38], ebp
jmp 0x1400095aa
test edx, edx
js 0x1400095aa
cmp edx, dword [rbx + 0x5d00]
jge 0x1400095aa
mov rax, qword [rbx + 0x5d08]
lea rbp, [rdx + rdx*8]
mov ecx, dword [rax + rbp*8]
mov dword [rbx + 0x3f38], ecx
mov rax, qword [rbx + 0x5d08]
inc byte [rax + rbp*8 + 4]
movzx eax, byte [rdi + 0x5cd1]
mov r14, qword [rsp + 0xe8]
mov rbp, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xd8]
test al, al
je 0x1400095dd
sub al, 1
mov byte [rdi + 0x5cd1], al
jne 0x1400095dd
mov dword [rdi + 0x4774], esi
movzx eax, byte [rdi + 0x5cd0]
test al, al
je 0x140009605
sub al, 1
mov byte [rdi + 0x5cd0], al
jne 0x140009605
lea rcx, [0x1400c9660]
call fcn.14001d270
and dword [rdi + 0x5ca4], 0xffffffef
mov rax, qword [0x140190ed8]
lea rcx, [0x1400c96a8]
movss xmm1, dword [0x1400d54d4]
xor r8d, r8d
mov byte [rdi + 0x3e7d], 1
movaps xmm0, xmm1
unpcklps xmm0, xmm1
xor edx, edx
or dword [rax + 0x47c8], 2
movsd qword [rax + 0x47e8], xmm0
mov dword [rax + 0x47d0], 4
call fcn.14000e040
mov rax, qword [rdi + 0x3ef0]
cmp byte [rax + 0xbe], 1
je 0x140009675
mov r8d, 0x1208
lea rdx, [0x1400c8930]
lea rcx, [0x1400c96c0]
call qword [sym.imp.ucrtbase.dll__wassert]
cmp byte [rdi + 0x85], sil
je 0x1400096c0
movsx edx, byte [rdi + 0x5cd2]
cmp dl, 0xff
je 0x1400096c3
mov eax, dword [rdi + 0x3e70]
and eax, 0x80000003
jge 0x14000969e
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 0x1400096c3
mov sil, 0xff
mov edx, 1
mov byte [rdi + 0x5cd2], sil
mov rcx, rdi
add rsp, 0xb8
pop rdi
pop rsi
jmp fcn.140006640