Function at 0x140059330
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rbp, qword [0x140151998]
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
mov ebx, dword [rbp + 0x5f90]
sub ebx, 1
movaps xmmword [rax - 0x58], xmm9
movaps xmmword [rax - 0x68], xmm10
js 0x1400593d6
movsxd rdi, ebx
shl rdi, 5
mov rsi, rdi
nop
mov rax, qword [rbp + 0x5f98]
cmp dword [rdi + rax + 4], 7
jne 0x1400593c9
movsxd r8, dword [rbp + 0x5f90]
mov rcx, rax
mov rdx, rsi
sub rdx, rax
add rdx, rax
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 sub.VCRUNTIME140.dll_memmove
dec dword [rbp + 0x5f90]
sub rsi, 0x20
sub rdi, 0x20
sub ebx, 1
jns 0x140059380
mov rbx, qword [rbp + 0x5f98]
movsxd rdi, dword [rbp + 0x5f90]
shl rdi, 5
add rdi, rbx
cmp rbx, rdi
je 0x140059408
cmp dword [rbx + 4], 0
jne 0x1400593ff
mov rdx, rbx
mov rcx, rbp
call qword [rbx + 0x10]
add rbx, 0x20
cmp rbx, rdi
jne 0x1400593f0
mov rax, qword [0x140151998]
cmp byte [rax + 0x5e], 0
je 0x14005941f
test byte [rax + 0xc], 2
jne 0x14005941f
mov byte [rax + 0x5e], 0
mov rbx, qword [0x140151998]
cmp byte [rbx + 0x5f48], 0
jne 0x14005951a
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140059513
lea rdx, [0x140087958]
call fcn.1400526a0
mov rdi, rax
test rax, rax
je 0x140059513
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov r14d, eax
cmp eax, 0xffffffff
je 0x14005950a
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14005950a
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x14005950a
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14005950a
cmp rsi, 0xffffffffffffffff
je 0x14005950a
mov rcx, rsi
call fcn.140055650
mov r14, rax
test rax, rax
je 0x14005950a
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x1400594ea
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r14
call fcn.140055700
jmp 0x140059513
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140059500
mov rdx, rsi
mov rcx, r14
call fcn.1400550a0
mov rcx, r14
call fcn.140055700
jmp 0x140059513
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov byte [rbx + 0x5f48], 1
movss xmm0, dword [rbx + 0x5f4c]
xorps xmm9, xmm9
xor r14d, r14d
comiss xmm0, xmm9
jbe 0x140059560
subss xmm0, dword [rbx + 0x18]
comiss xmm9, xmm0
movss dword [rbx + 0x5f4c], xmm0
jb 0x140059560
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140059552
call fcn.14005dfb0
jmp 0x140059559
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5f4c], r14d
inc dword [rbp + 0x3f60]
movss xmm0, dword [rbp + 0x18]
cvtps2pd xmm0, xmm0
mov byte [rbp + 0x3f6c], 1
mov word [rbp + 0x5e98], r14w
mov dword [rbp + 0x3ff8], r14d
addsd xmm0, qword [rbp + 0x3f58]
movsd qword [rbp + 0x3f58], xmm0
mov ecx, dword [rbp + 0x5eb4]
test ecx, ecx
jns 0x1400595bb
mov eax, ecx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, ecx
lea rcx, [rbp + 0x5eb0]
test eax, eax
cmovg edx, eax
call fcn.14003fea0
movss xmm6, dword [0x14013f71c]
movss xmm10, dword [0x14013f678]
mov dword [rbp + 0x5eb0], r14d
movsxd rax, dword [rbp + 0x61f4]
movss xmm1, dword [rbp + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [rbp + rax*4 + 0x6104]
addss xmm0, dword [rbp + 0x61fc]
movss dword [rbp + 0x61fc], xmm0
movss dword [rbp + rax*4 + 0x6104], xmm1
mov eax, 0x88888889
mov ecx, dword [rbp + 0x61f4]
movss xmm2, dword [rbp + 0x61fc]
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 [rbp + 0x61f8]
inc eax
mov dword [rbp + 0x61f4], ecx
mov ecx, 0x3c
cmp eax, ecx
cmovl ecx, eax
comiss xmm2, xmm9
mov dword [rbp + 0x61f8], ecx
jbe 0x140059665
movd xmm0, ecx
movaps xmm1, xmm10
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
divss xmm1, xmm2
jmp 0x140059668
movaps xmm1, xmm6
lea rcx, [rbp + 0x3f90]
movss dword [rbp + 0xd4], xmm1
xor edx, edx
call fcn.1400646a0
movzx ecx, byte [rbp + 0x5a]
call fcn.1400609b0
mov rdx, qword [0x140151998]
mov rax, qword [rdx + 0x4b18]
mov rcx, qword [rax]
mov qword [rcx + 4], 5
mov dword [rcx + 0xc], r14d
movsd xmm0, qword [rdx + 0x10]
movsd qword [rcx + 0x10], xmm0
mov rcx, qword [rdx + 0x4b18]
movsxd rax, dword [rdx + 0x4b10]
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x14005976b
nop dword [rax]
mov rax, qword [rcx]
movaps xmm3, xmm9
add rcx, 8
movsd xmm4, qword [rax + 0xb8]
movsd xmm2, qword [rax + 0xc0]
movaps xmm1, xmm4
movsd qword [rax + 0xb0], xmm2
movaps xmm0, xmm4
shufps xmm0, xmm0, 0x55
mov qword [rax + 0xc0], r14
mov qword [rax + 0xb8], r14
movsd qword [rax + 0xa8], xmm4
addss xmm0, dword [rax + 0xc]
addss xmm1, dword [rax + 8]
movss dword [rax + 0x1c], xmm0
movaps xmm0, xmm4
movss dword [rax + 0x18], xmm1
movss xmm1, dword [rax + 0x10]
shufps xmm0, xmm0, 0x55
subss xmm1, xmm4
addss xmm1, xmm2
movss xmm2, dword [rax + 0x14]
subss xmm2, xmm0
movaps xmm0, xmm9
maxss xmm3, xmm1
addss xmm2, dword [rax + 0xb4]
movss dword [rax + 0x20], xmm3
maxss xmm0, xmm2
movss dword [rax + 0x24], xmm0
cmp rcx, rdx
jne 0x1400596d0
mov rax, qword [rbp + 0x38]
movaps xmm8, xmm6
movss xmm4, dword [0x1400897bc]
movaps xmm7, xmm6
movaps xmm5, xmm4
mov byte [rax + 0x18], 1
mov rbx, qword [0x140151998]
mov rcx, qword [rbx + 0x4b18]
movsxd rax, dword [rbx + 0x4b10]
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x1400597eb
mov rax, qword [rcx]
movss xmm3, dword [rax + 8]
comiss xmm8, xmm3
movss xmm2, dword [rax + 0xc]
movaps xmm0, xmm3
addss xmm0, dword [rax + 0x10]
movaps xmm1, xmm2
addss xmm1, dword [rax + 0x14]
jbe 0x1400597ca
movaps xmm8, xmm3
comiss xmm7, xmm2
jbe 0x1400597d2
movaps xmm7, xmm2
comiss xmm0, xmm4
jbe 0x1400597da
movaps xmm4, xmm0
comiss xmm1, xmm5
jbe 0x1400597e2
movaps xmm5, xmm1
add rcx, 8
cmp rcx, rdx
jne 0x1400597a3
movss dword [rbx + 0x3d64], xmm8
lea rcx, [rbx + 0x3d48]
movss dword [rbx + 0x3d68], xmm7
movss dword [rbx + 0x3d6c], xmm4
movss dword [rbx + 0x3d70], xmm5
mov eax, dword [rbx + 0x39cc]
movss xmm1, dword [rbx + 0x39d0]
mov dword [rbx + 0x3d5c], eax
call fcn.14003e2f0
mov edx, r14d
mov dword [rbx + 0x3d74], r14d
cmp byte [rbx + 0x39c8], r14b
je 0x14005984e
mov dword [rbx + 0x3d74], 1
mov edx, 1
mov ecx, edx
cmp byte [rbx + 0x39c9], r14b
je 0x14005986b
mov rax, qword [rbx + 0x38]
test byte [rax], 4
jne 0x14005986b
or ecx, 2
mov dword [rbx + 0x3d74], ecx
cmp byte [rbx + 0x39ca], r14b
je 0x14005987d
or ecx, 4
mov dword [rbx + 0x3d74], ecx
test byte [rbx + 0xc], 8
je 0x14005988c
or ecx, 8
mov dword [rbx + 0x3d74], ecx
mov rax, qword [0x140151998]
mov rcx, qword [rax + 0x48]
test rcx, rcx
jne 0x1400598a7
mov rax, qword [rax + 0x38]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx]
call fcn.14005e840
mov rcx, qword [rbp + 0x4b18]
movsxd rax, dword [rbp + 0x4b10]
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x1400598e0
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rcx]
add rcx, 8
mov byte [rax + 0x48], r14b
cmp rcx, rdx
jne 0x1400598d0
cmp byte [rbp + 0x4d2c], r14b
je 0x14005991b
mov eax, dword [rbp + 0x4d4c]
cmp eax, dword [rbp + 0x406c]
jne 0x14005991b
mov rcx, qword [0x140151998]
cmp dword [rcx + 0x406c], eax
jne 0x14005990c
mov dword [rcx + 0x4070], eax
cmp dword [rcx + 0x409c], eax
jne 0x14005991b
mov byte [rcx + 0x40a0], 1
cmp dword [rbp + 0x405c], r14d
jne 0x14005992d
mov dword [rbp + 0x4064], r14d
jmp 0x14005993f
mov eax, dword [rbp + 0x4058]
test eax, eax
je 0x140059946
cmp dword [rbp + 0x406c], eax
jne 0x140059946
mov dword [rbp + 0x4068], r14d
mov eax, dword [rbp + 0x4058]
test eax, eax
je 0x140059980
movss xmm1, dword [rbp + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [rbp + 0x4064]
movss dword [rbp + 0x4064], xmm0
cmp dword [rbp + 0x406c], eax
je 0x140059980
addss xmm1, dword [rbp + 0x4068]
movss dword [rbp + 0x4068], xmm1
mov dword [rbp + 0x405c], eax
mov eax, dword [rbp + 0x406c]
mov dword [rbp + 0x4058], r14d
mov word [rbp + 0x4060], r14w
test eax, eax
je 0x1400599cd
cmp dword [rbp + 0x4070], eax
je 0x1400599cd
cmp dword [rbp + 0x409c], eax
jne 0x1400599cd
test byte [rbp + 0x602c], 1
je 0x1400599c4
lea rcx, str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.14004ee40
xor edx, edx
xor ecx, ecx
call fcn.14005e580
mov ecx, dword [rbp + 0x406c]
test ecx, ecx
je 0x1400599ec
movss xmm0, dword [rbp + 0x18]
addss xmm0, dword [rbp + 0x4074]
movss dword [rbp + 0x4074], xmm0
mov rax, qword [rbp + 0x4090]
movss xmm0, dword [rbp + 0x18]
addss xmm0, dword [rbp + 0x40b4]
mov qword [rbp + 0x40a8], rax
movzx eax, byte [rbp + 0x407c]
mov byte [rbp + 0x40a1], al
mov eax, dword [rbp + 0x5e00]
movss dword [rbp + 0x40b4], xmm0
mov dword [rbp + 0x409c], ecx
mov dword [rbp + 0x4070], r14d
mov byte [rbp + 0x407d], r14b
mov byte [rbp + 0x40a0], r14b
mov byte [rbp + 0x4078], r14b
test eax, eax
je 0x140059a53
cmp ecx, eax
je 0x140059a53
mov dword [rbp + 0x5e00], r14d
test ecx, ecx
jne 0x140059a6e
mov dword [rbp + 0x4978], r14d
mov byte [rbp + 0x497c], r14b
mov dword [rbp + 0x4984], r14d
jmp 0x140059a97
mov eax, dword [rbp + 0x4984]
test eax, eax
je 0x140059a97
test al, 2
je 0x140059a97
mov rax, qword [0x140151998]
mov dword [rax + 0x4190], ecx
mov dword [rax + 0x418c], ecx
mov word [rax + 0x4194], r14w
mov ecx, dword [rbp + 0x4eb0]
test ecx, ecx
je 0x140059aba
movss xmm0, dword [rbp + 0x4ecc]
comiss xmm0, dword [rbp + 0x3d24]
jb 0x140059ac1
mov dword [rbp + 0x4ec0], ecx
jmp 0x140059ac1
mov dword [rbp + 0x4ec0], r14d
mov rax, qword [rbp + 0x4010]
test rax, rax
je 0x140059ae9
movss xmm0, dword [rbp + 0x4ecc]
comiss xmm0, dword [rbp + 0x3d24]
jb 0x140059af0
mov eax, dword [rax + 0x10]
mov dword [rbp + 0x4ec4], eax
jmp 0x140059af0
mov dword [rbp + 0x4ec4], r14d
movss xmm0, dword [rbp + 0x4eb8]
mov dword [rbp + 0x4eb4], ecx
test ecx, ecx
je 0x140059b1f
addss xmm0, dword [rbp + 0x18]
mov dword [rbp + 0x4ebc], r14d
mov dword [rbp + 0x4eb0], r14d
movss dword [rbp + 0x4eb8], xmm0
jmp 0x140059b59
comiss xmm0, xmm9
jbe 0x140059b59
movss xmm2, dword [rbp + 0x18]
movss xmm0, dword [0x14013f66c]
movaps xmm1, xmm2
addss xmm1, dword [rbp + 0x4ebc]
addss xmm2, xmm2
movss dword [rbp + 0x4ebc], xmm1
maxss xmm0, xmm2
comiss xmm1, xmm0
jb 0x140059b59
mov qword [rbp + 0x4eb8], r14
mov eax, dword [rbp + 0x4dac]
mov dword [rbp + 0x4db0], eax
mov qword [rbp + 0x4da8], 0x7f7fffff
mov word [rbp + 0x4d2d], r14w
mov dword [rbp + 0x4db8], r14d
call fcn.140061240
call fcn.140056b00
call fcn.1400619a0
call fcn.140060580
mov rbx, qword [0x140151998]
mov rcx, qword [rbx + 0x4020]
test rcx, rcx
je 0x140059c6c
mov eax, dword [rbx + 0x406c]
mov dword [rbx + 0x4070], eax
cmp dword [rbx + 0x409c], eax
jne 0x140059bc5
mov byte [rbx + 0x40a0], 1
mov r9, qword [rcx + 0x388]
cmp byte [rbx + 0x100], r14b
je 0x140059c63
lea rcx, [rbx + 0xf8]
test rcx, rcx
je 0x140059bea
mov rax, rcx
jmp 0x140059bf7
mov rax, qword [0x140151998]
add rax, 0xf8
movss xmm0, dword [rax]
movss xmm1, dword [0x1400897b8]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x140059c63
comiss xmm2, xmm1
jb 0x140059c63
movss xmm0, dword [rcx]
lea rdx, [rsp + 0xa0]
movss xmm1, dword [rcx + 4]
mov r8d, 1
subss xmm0, dword [rbx + 0x4084]
subss xmm1, dword [rbx + 0x4088]
mov rcx, r9
movss dword [rsp + 0xa0], xmm0
movss dword [rsp + 0xa4], xmm1
call fcn.14005f7c0
mov rcx, qword [rbx + 0x4020]
xor edx, edx
call fcn.140051130
jmp 0x140059cad
mov qword [rbx + 0x4020], r14
jmp 0x140059ca4
mov rcx, qword [rbx + 0x4090]
test rcx, rcx
je 0x140059cad
mov eax, dword [rbx + 0x406c]
cmp dword [rcx + 0x84], eax
jne 0x140059cad
mov dword [rbx + 0x4070], eax
cmp dword [rbx + 0x409c], eax
jne 0x140059c9b
mov byte [rbx + 0x40a0], 1
cmp byte [rbx + 0x100], r14b
jne 0x140059cad
xor edx, edx
xor ecx, ecx
call fcn.14005e580
mov r8, qword [0x140151998]
movss xmm7, dword [0x14013f6dc]
mov eax, dword [r8 + 0x4ae0]
sub eax, 1
js 0x140059cfb
mov r8, qword [r8 + 0x4ae8]
movsxd rdx, eax
add r8, 8
imul rcx, rdx, 0x38
add r8, rcx
nop dword [rax]
mov rax, qword [r8]
test rax, rax
je 0x140059cf1
test dword [rax + 0x14], 0x8000000
jne 0x140059d12
sub r8, 0x38
sub rdx, 1
jns 0x140059ce0
cmp qword [rbp + 0x4cf0], r14
je 0x140059d2a
movss xmm0, dword [rbp + 0x4d0c]
comiss xmm0, xmm9
jbe 0x140059d2a
movss xmm1, dword [rbp + 0x18]
mulss xmm1, xmm7
addss xmm1, dword [rbp + 0x4d28]
minss xmm1, xmm10
jmp 0x140059d48
movss xmm0, dword [rbp + 0x18]
mulss xmm0, dword [0x14013f6e0]
movss xmm1, dword [rbp + 0x4d28]
subss xmm1, xmm0
maxss xmm1, xmm9
movss dword [rbp + 0x4d28], xmm1
movups xmm0, xmmword [rbp + 0x5f28]
mov dword [rbp + 0x4ec8], r14d
mov qword [rbp + 0x6204], 0xffffffffffffffff
movups xmmword [rbp + 0x5f38], xmm0
mov dword [rbp + 0x6200], 0xffffffff
mov byte [rbp + 0x5f28], r14b
call fcn.140062040
cmp byte [rbp + 0x3f6f], r14b
jne 0x140059daa
movss xmm0, dword [rbp + 0x60]
comiss xmm9, xmm0
ja 0x140059daa
movsd xmm6, qword [rbp + 0x3f58]
cvtpd2ps xmm6, xmm6
subss xmm6, xmm0
mov rdi, qword [rbp + 0x3fb0]
movsxd rax, dword [rbp + 0x3fa8]
lea rsi, [rdi + rax*8]
cmp rdi, rsi
je 0x140059ed0
mov rbx, qword [rdi]
movzx ecx, byte [rbx + 0xbe]
movzx eax, word [rbx + 0xcc]
mov byte [rbx + 0xbf], cl
mov byte [rbx + 0xbe], r14b
mov byte [rbx + 0xc0], r14b
mov word [rbx + 0xce], ax
mov word [rbx + 0xcc], r14w
test cl, cl
jne 0x140059ec3
cmp byte [rbx + 0x3fc], r14b
jne 0x140059ec3
comiss xmm6, dword [rbx + 0x274]
jbe 0x140059ec3
mov rcx, qword [rbx + 0x2a8]
mov byte [rbx + 0x3fc], 1
mov eax, dword [rcx + 0x14]
mov dword [rbx + 0x3f4], eax
mov eax, dword [rcx + 0x24]
mov dword [rbx + 0x3f8], eax
mov rcx, qword [rbx + 0x108]
test rcx, rcx
je 0x140059e5a
mov qword [rbx + 0x100], r14
call fcn.140055700
mov qword [rbx + 0x108], r14
mov rcx, qword [rbx + 0x2a8]
call fcn.14003f3d0
mov rcx, qword [rbx + 0x1a8]
test rcx, rcx
je 0x140059e85
mov qword [rbx + 0x1a0], r14
call fcn.140055700
mov qword [rbx + 0x1a8], r14
mov rcx, qword [rbx + 0x1e0]
test rcx, rcx
je 0x140059ea4
mov qword [rbx + 0x1d8], r14
call fcn.140055700
mov qword [rbx + 0x1e0], r14
mov rcx, qword [rbx + 0x1f0]
test rcx, rcx
je 0x140059ec3
mov qword [rbx + 0x1e8], r14
call fcn.140055700
mov qword [rbx + 0x1f0], r14
add rdi, 8
cmp rdi, rsi
jne 0x140059dc5
mov ebx, r14d
cmp dword [rbp + 0x4e40], r14d
jle 0x140059f1b
mov rdi, r14
nop
mov rax, qword [rbp + 0x4e48]
movss xmm0, dword [rdi + rax]
comiss xmm0, xmm9
jb 0x140059f0d
comiss xmm6, xmm0
jbe 0x140059f0d
movsxd rax, ebx
imul rcx, rax, 0x250
add rcx, qword [rbp + 0x4e20]
call fcn.14007d740
inc ebx
add rdi, 4
cmp ebx, dword [rbp + 0x4e40]
jl 0x140059ee0
mov rbx, qword [rbp + 0x4e10]
movsxd rax, dword [rbp + 0x4e08]
imul rdi, rax, 0x88
add rdi, rbx
cmp rbx, rdi
je 0x140059f64
nop dword [rax + rax]
movss xmm0, dword [rbx + 4]
comiss xmm0, xmm9
jb 0x140059f58
comiss xmm6, xmm0
jbe 0x140059f58
mov rcx, rbx
call fcn.14007d810
add rbx, 0x88
cmp rbx, rdi
jne 0x140059f40
cmp byte [rbp + 0x3f6f], r14b
je 0x140059fb7
mov rbx, qword [0x140151998]
mov rcx, qword [rbx + 0x4ac8]
test rcx, rcx
je 0x140059f93
mov qword [rbx + 0x4ac0], r14
call fcn.140055700
mov qword [rbx + 0x4ac8], r14
mov rcx, qword [rbx + 0x4ad8]
test rcx, rcx
je 0x140059fb2
mov qword [rbx + 0x4ad0], r14
call fcn.140055700
mov qword [rbx + 0x4ad8], r14
call fcn.14007d550
mov rax, qword [rbp + 0x4b20]
mov byte [rbp + 0x3f6f], r14b
test rax, rax
je 0x14005a029
cmp byte [rax + 0xbf], r14b
jne 0x14005a029
mov rcx, qword [0x140151998]
mov eax, dword [rcx + 0x3fb8]
sub eax, 1
js 0x14005a01d
movsxd rdx, eax
mov rax, qword [rcx + 0x3fc0]
lea r8, [rax + rdx*8]
mov rcx, qword [r8]
test rcx, rcx
je 0x14005a013
cmp byte [rcx + 0xbf], r14b
je 0x14005a013
mov eax, dword [rcx + 0x14]
and eax, 0x10200
cmp eax, 0x10200
jne 0x14005a01f
sub r8, 8
sub rdx, 1
jns 0x140059ff3
xor ecx, ecx
mov edx, 1
call fcn.140051130
mov ecx, dword [rbp + 0x3fdc]
test ecx, ecx
jns 0x14005a08f
mov eax, ecx
mov ebx, r14d
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
cmovg ebx, eax
cmp ebx, ecx
jle 0x14005a08f
movsxd rax, ebx
imul rcx, rax, 0x68
call fcn.140055650
mov rdx, qword [rbp + 0x3fe0]
mov rdi, rax
test rdx, rdx
je 0x14005a082
movsxd rcx, dword [rbp + 0x3fd8]
imul r8, rcx, 0x68
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbp + 0x3fe0]
call fcn.140055700
mov qword [rbp + 0x3fe0], rdi
mov dword [rbp + 0x3fdc], ebx
lea rcx, [rbp + 0x4af0]
mov dword [rbp + 0x3fd8], r14d
xor edx, edx
call fcn.1400401f0
lea rbx, [rbp + 0x4ac0]
mov ecx, dword [rbx + 4]
test ecx, ecx
jns 0x14005a0cb
mov eax, ecx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.14003fea0
mov dword [rbx], r14d
cmp dword [rbx + 4], r14d
jne 0x14005a0e1
mov edx, 8
mov rcx, rbx
call fcn.14003fea0
movsxd rcx, dword [rbx]
xor edx, edx
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], r14d
lea rcx, [rbp + 0x4ad0]
inc dword [rbx]
call fcn.1400401f0
call fcn.140060340
mov rbx, qword [0x140151998]
mov dword [rbx + 0x4054], r14d
mov eax, dword [rbx + 0x60a0]
inc eax
cmp dword [rbx + 0x3f60], eax
jne 0x14005a1f0
mov edi, dword [rbx + 0x405c]
test edi, edi
jne 0x14005a133
mov edi, dword [rbx + 0x406c]
cmp dword [rbx + 0x60a8], edi
je 0x14005a179
mov dword [rbx + 0x60a8], edi
mov dword [rbx + 0x60a4], 0xffffffff
mov ecx, dword [rbx + 0x60b4]
test ecx, ecx
jns 0x14005a172
mov eax, ecx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x60b0]
test eax, eax
cmovg edx, eax
call fcn.140064580
mov dword [rbx + 0x60b0], r14d
test edi, edi
je 0x14005a1f0
movsxd rcx, dword [rbx + 0x60a4]
test ecx, ecx
js 0x14005a1b4
mov eax, ecx
cmp ecx, dword [rbx + 0x60b0]
jge 0x14005a1c7
mov r8, qword [rbx + 0x60b8]
lea rdx, [rcx + rcx*8]
cmp byte [r8 + rdx*8 + 5], r14b
jne 0x14005a1ac
cmp byte [r8 + rdx*8 + 4], 2
jle 0x14005a1c7
inc ecx
mov dword [rbx + 0x60a4], ecx
mov eax, ecx
cmp ecx, 0xffffffff
jne 0x14005a1c3
mov dword [rbx + 0x4054], edi
jmp 0x14005a1f0
test ecx, ecx
js 0x14005a1f0
cmp eax, dword [rbx + 0x60b0]
jge 0x14005a1f0
cdqe
lea rdx, [rax + rax*8]
mov rax, qword [rbx + 0x60b8]
mov ecx, dword [rax + rdx*8]
mov dword [rbx + 0x4054], ecx
mov rax, qword [rbx + 0x60b8]
inc byte [rax + rdx*8 + 4]
mov r15, qword [0x140151998]
movss xmm0, dword [r15 + 0x606c]
comiss xmm9, xmm0
jae 0x14005a2c4
movsxd rax, dword [r15 + 0x4a7c]
lea rbx, [r15 + 0x39dc]
shl rax, 4
lea rdi, [r15 + 0x39d8]
mulss xmm0, xmm7
add rbx, rax
add rdi, rax
lea rsi, [rax + 0x39d4]
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
movss xmm1, dword [0x14013f670]
lea r9, [rsi + r15]
mulss xmm0, xmm1
movaps xmm2, xmm1
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
addss xmm0, xmm1
call fcn.14004e3d0
movsxd rax, dword [r15 + 0x4a7c]
add rax, 0x39e
add rax, rax
mov dword [r15 + rax*8], 0x3f800000
movss xmm0, dword [r15 + 0x606c]
subss xmm0, dword [r15 + 0x18]
comiss xmm9, xmm0
movss dword [r15 + 0x606c], xmm0
jb 0x14005a2c4
mov rcx, qword [0x140151998]
movsxd rax, dword [rcx + 0x4a7c]
cmp eax, 0x35
je 0x14005a2ba
movups xmm0, xmmword [rcx + 0x6070]
add rax, rax
movups xmmword [rcx + rax*8 + 0x39d4], xmm0
mov dword [rcx + 0x4a7c], 0x35
movzx eax, byte [rbp + 0x605d]
test al, al
je 0x14005a2e7
sub al, 1
mov byte [rbp + 0x605d], al
jne 0x14005a2e7
mov dword [rbp + 0x4990], r14d
mov byte [rbp + 0x605e], r14b
movzx eax, byte [rbp + 0x605c]
test al, al
je 0x14005a31d
sub al, 1
mov byte [rbp + 0x605c], al
jne 0x14005a31d
lea rcx, str._Debug_Log:_Auto_disabled_some_ImGuiDebugLogFlags_after_2_frames__n
call fcn.14004ee40
mov eax, dword [rbp + 0x6058]
not eax
mov dword [rbp + 0x6058], r14d
and dword [rbp + 0x602c], eax
mov byte [rbp + 0x3f6d], 1
lea rcx, str.DebugDefault
mov rax, qword [0x140151998]
xor r8d, r8d
xor edx, edx
or dword [rax + 0x4a08], 2
mov dword [rax + 0x4a28], 0x43c80000
mov dword [rax + 0x4a2c], 0x43c80000
mov dword [rax + 0x4a10], 4
call fcn.140049c00
cmp byte [rbp + 0x7a], r14b
je 0x14005a3ac
movsx ecx, byte [rbp + 0x6064]
cmp cl, 0xff
je 0x14005a3af
mov eax, dword [rbp + 0x3f60]
and eax, 0x80000003
jge 0x14005a387
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
mov eax, 0x66666667
sete r14b
add r14d, ecx
imul r14d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub r14d, eax
jmp 0x14005a3af
mov r14b, 0xff
mov byte [rbp + 0x6064], r14b
mov rbx, qword [rbp + 0x5f98]
movsxd rdi, dword [rbp + 0x5f90]
shl rdi, 5
add rdi, rbx
cmp rbx, rdi
je 0x14005a3e8
cmp dword [rbx + 4], 1
jne 0x14005a3df
mov rdx, rbx
mov rcx, rbp
call qword [rbx + 0x10]
add rbx, 0x20
cmp rbx, rdi
jne 0x14005a3d0
movaps xmm6, xmmword [rsp + 0x70]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm7, xmmword [rsp + 0x60]
mov rsp, r11
pop r15
pop r14
pop rdi
ret