Function at 0x140018df0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x5c8
mov rax, qword [0x1400600c0]
xor rax, rsp
mov qword [rsp + 0x5b0], rax
mov rax, qword [rsp + 0x5d0]
cvttss2si eax, dword [rax]
mov dword [rsp + 0x40], eax
mov r8d, 0x174
xor edx, edx
mov rcx, qword [rsp + 0x5d8]
call fcn.140002560
mov r11, qword [rsp + 0x5d8]
mov eax, dword [rsp + 0x40]
mov dword [r11], eax
mov rax, qword [rsp + 0x5d0]
movss xmm0, dword [rax + 0x18]
unpcklps xmm0, xmm0
cvtps2pd xmm0, xmm0
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 4], xmm0
mov rax, qword [rsp + 0x5d0]
movss xmm0, dword [rax + 0x1c]
unpcklps xmm0, xmm0
cvtps2pd xmm0, xmm0
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0xc], xmm0
mov rax, qword [rsp + 0x5d0]
movss xmm0, dword [rax + 0x20]
unpcklps xmm0, xmm0
cvtps2pd xmm0, xmm0
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0x14], xmm0
mov rax, qword [rsp + 0x5d8]
mov dword [rax + 0x1c], 0
mov rax, qword [rsp + 0x5d0]
movss xmm0, dword [rax + 0x30]
ucomiss xmm0, dword [0x14005c528]
jp 0x140018ed2
je 0x1400194de
mov rax, qword [rsp + 0x5d0]
movss xmm0, dword [rax + 0x34]
unpcklps xmm0, xmm0
cvtps2pd xmm0, xmm0
movsd qword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0x5d0]
movss xmm0, dword [rax + 0x38]
unpcklps xmm0, xmm0
cvtps2pd xmm0, xmm0
movsd qword [rsp + 0x48], xmm0
mov rax, qword [rsp + 0x5d0]
movss xmm0, dword [rax + 0x3c]
unpcklps xmm0, xmm0
cvtps2pd xmm0, xmm0
movsd qword [rsp + 0x58], xmm0
movsd xmm0, qword [rsp + 0x50]
ucomisd xmm0, qword [0x14005c460]
jp 0x140018f57
jne 0x140018f57
movsd xmm0, qword [rsp + 0x48]
ucomisd xmm0, qword [0x14005c460]
jp 0x140018f57
jne 0x140018f57
movsd xmm0, qword [rsp + 0x58]
ucomisd xmm0, qword [0x14005c460]
jp 0x140018f57
je 0x1400194de
movsd xmm0, qword [rsp + 0x50]
call section.text
movsd qword [rsp + 0x60], xmm0
movsd xmm0, qword [rsp + 0x50]
call fcn.1410a2490
movsd qword [rsp + 0x90], xmm0
movsd xmm0, qword [rsp + 0x48]
call section.text
movsd qword [rsp + 0x80], xmm0
movsd xmm0, qword [rsp + 0x48]
call fcn.1410a2490
movsd qword [rsp + 0x70], xmm0
movsd xmm0, qword [rsp + 0x58]
call section.text
movsd qword [rsp + 0x68], xmm0
movsd xmm0, qword [rsp + 0x58]
call fcn.1410a2490
movsd qword [rsp + 0x88], xmm0
movsd xmm0, qword [rsp + 0x60]
mulsd xmm0, qword [rsp + 0x68]
movsd xmm1, qword [rsp + 0x90]
mulsd xmm1, qword [rsp + 0x70]
mulsd xmm1, qword [rsp + 0x88]
subsd xmm0, xmm1
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0x20], xmm0
movsd xmm0, qword [rsp + 0x90]
xorpd xmm0, xmmword [0x14005c3f0]
mulsd xmm0, qword [rsp + 0x80]
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0x28], xmm0
movsd xmm0, qword [rsp + 0x60]
mulsd xmm0, qword [rsp + 0x88]
movsd xmm1, qword [rsp + 0x90]
mulsd xmm1, qword [rsp + 0x70]
mulsd xmm1, qword [rsp + 0x68]
addsd xmm0, xmm1
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0x30], xmm0
movsd xmm0, qword [rsp + 0x90]
mulsd xmm0, qword [rsp + 0x68]
movsd xmm1, qword [rsp + 0x60]
mulsd xmm1, qword [rsp + 0x70]
mulsd xmm1, qword [rsp + 0x88]
addsd xmm0, xmm1
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0x38], xmm0
movsd xmm0, qword [rsp + 0x60]
mulsd xmm0, qword [rsp + 0x80]
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0x40], xmm0
movsd xmm0, qword [rsp + 0x90]
mulsd xmm0, qword [rsp + 0x88]
movsd xmm1, qword [rsp + 0x60]
mulsd xmm1, qword [rsp + 0x70]
mulsd xmm1, qword [rsp + 0x68]
subsd xmm0, xmm1
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0x48], xmm0
movsd xmm0, qword [rsp + 0x80]
xorpd xmm0, xmmword [0x14005c3f0]
mulsd xmm0, qword [rsp + 0x88]
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0x50], xmm0
mov rax, qword [rsp + 0x5d8]
movsd xmm0, qword [rsp + 0x70]
movsd qword [rax + 0x58], xmm0
movsd xmm0, qword [rsp + 0x80]
mulsd xmm0, qword [rsp + 0x68]
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0x60], xmm0
mov rdx, qword [rsp + 0x5d8]
add rdx, 0x20
mov rcx, qword [rsp + 0x5d8]
add rcx, 0x68
call fcn.1400209c0
movsd xmm0, qword [rsp + 0x90]
xorpd xmm0, xmmword [0x14005c3f0]
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0xb0], xmm0
movsd xmm0, qword [rsp + 0x60]
mulsd xmm0, qword [rsp + 0x88]
movsd xmm1, qword [rsp + 0x90]
mulsd xmm1, qword [rsp + 0x70]
mulsd xmm1, qword [rsp + 0x68]
addsd xmm0, xmm1
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0xb8], xmm0
mov rax, qword [rsp + 0x5d8]
movsd xmm0, qword [rsp + 0x60]
movsd qword [rax + 0xc0], xmm0
movsd xmm0, qword [rsp + 0x90]
mulsd xmm0, qword [rsp + 0x88]
movsd xmm1, qword [rsp + 0x60]
mulsd xmm1, qword [rsp + 0x70]
mulsd xmm1, qword [rsp + 0x68]
subsd xmm0, xmm1
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0xc8], xmm0
mov rax, qword [rsp + 0x5d8]
xorpd xmm0, xmm0
movsd qword [rax + 0xd0], xmm0
movsd xmm0, qword [rsp + 0x80]
mulsd xmm0, qword [rsp + 0x68]
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0xd8], xmm0
mov rax, qword [rsp + 0x5d8]
movsd xmm0, qword [rax + 0xd8]
xorpd xmm0, xmmword [0x14005c3f0]
mov rax, qword [rsp + 0x5d8]
mulsd xmm0, qword [rax + 0xc0]
mov rcx, qword [rsp + 0x5d8]
mov rax, qword [rsp + 0x5d8]
movsd xmm1, qword [rcx + 0xc8]
mulsd xmm1, qword [rax + 0xd0]
addsd xmm0, xmm1
movsd qword [rsp + 0x78], xmm0
movsd xmm0, qword [rsp + 0x78]
call fcn.14000354c
comisd xmm0, xmmword [0x14005c450]
jbe 0x1400194de
mov rax, qword [rsp + 0x5d8]
movsd xmm0, qword [rax + 0xb0]
xorpd xmm0, xmmword [0x14005c3f0]
mov rax, qword [rsp + 0x5d8]
mulsd xmm0, qword [rax + 0xd8]
mov rcx, qword [rsp + 0x5d8]
mov rax, qword [rsp + 0x5d8]
movsd xmm1, qword [rcx + 0xb8]
mulsd xmm1, qword [rax + 0xd0]
addsd xmm0, xmm1
xorpd xmm0, xmmword [0x14005c3f0]
divsd xmm0, qword [rsp + 0x78]
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0xe0], xmm0
mov rcx, qword [rsp + 0x5d8]
mov rax, qword [rsp + 0x5d8]
movsd xmm0, qword [rcx + 0xb0]
mulsd xmm0, qword [rax + 0xc8]
mov rcx, qword [rsp + 0x5d8]
mov rax, qword [rsp + 0x5d8]
movsd xmm1, qword [rcx + 0xb8]
mulsd xmm1, qword [rax + 0xc0]
subsd xmm0, xmm1
xorpd xmm0, xmmword [0x14005c3f0]
divsd xmm0, qword [rsp + 0x78]
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0xe8], xmm0
mov rax, qword [rsp + 0x5d8]
movsd xmm0, qword [rax + 0xd8]
xorpd xmm0, xmmword [0x14005c3f0]
divsd xmm0, qword [rsp + 0x78]
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0xf0], xmm0
mov rax, qword [rsp + 0x5d8]
movsd xmm0, qword [rax + 0xc8]
divsd xmm0, qword [rsp + 0x78]
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0xf8], xmm0
mov rax, qword [rsp + 0x5d8]
movsd xmm0, qword [rax + 0xd0]
divsd xmm0, qword [rsp + 0x78]
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0x100], xmm0
mov rax, qword [rsp + 0x5d8]
movsd xmm0, qword [rax + 0xc0]
xorpd xmm0, xmmword [0x14005c3f0]
divsd xmm0, qword [rsp + 0x78]
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0x108], xmm0
mov rax, qword [rsp + 0x5d8]
mov dword [rax + 0x1c], 1
lea rdx, [rsp + 0xa0]
mov ecx, 3
call fcn.140030d50
movsx eax, al
cmp eax, 1
jne 0x1400194d4
lea rcx, [rsp + 0xa0]
call fcn.140001cc0
mov dword [rsp + 0x2a4], eax
mov dword [rsp + 0x2a8], 0x1c0
mov ecx, dword [rsp + 0x2a4]
mov eax, dword [rsp + 0x2a8]
sub eax, ecx
movsxd rdx, eax
movsxd rax, dword [rsp + 0x2a4]
lea rcx, [rsp + rax + 0xa0]
lea r8, str.rapido__RapidoHookStart_:_Quad_Correction_enabled_n
call fcn.140002190
mov dword [rsp + 0x2a0], eax
cmp dword [rsp + 0x2a0], 0
jl 0x1400194ae
mov ecx, dword [rsp + 0x2a4]
mov eax, dword [rsp + 0x2a8]
sub eax, ecx
cmp dword [rsp + 0x2a0], eax
jl 0x1400194c2
mov eax, dword [rsp + 0x2a8]
sub eax, 1
cdqe
mov byte [rsp + rax + 0xa0], 0
lea rdx, [rsp + 0xa0]
mov ecx, 3
call fcn.140030d40
xor eax, eax
test eax, eax
jne 0x140019418
mov rax, qword [rsp + 0x5d8]
mov dword [rax + 0x110], 0
mov rax, qword [rsp + 0x5d0]
cvttss2si eax, dword [rax + 0x1ac0]
and eax, 1
test eax, eax
je 0x140019cb0
mov rax, qword [rsp + 0x5d0]
movss xmm0, dword [rax + 0x1ae4]
unpcklps xmm0, xmm0
cvtps2pd xmm0, xmm0
movsd qword [rsp + 0x2f8], xmm0
mov rax, qword [rsp + 0x5d0]
movss xmm0, dword [rax + 0x1ae8]
unpcklps xmm0, xmm0
cvtps2pd xmm0, xmm0
movsd qword [rsp + 0x368], xmm0
mov rax, qword [rsp + 0x5d0]
movss xmm0, dword [rax + 0x1aec]
unpcklps xmm0, xmm0
cvtps2pd xmm0, xmm0
movsd qword [rsp + 0x390], xmm0
mov rax, qword [rsp + 0x5d0]
movss xmm0, dword [rax + 0x1af0]
unpcklps xmm0, xmm0
cvtps2pd xmm0, xmm0
movsd qword [rsp + 0x398], xmm0
mov rax, qword [rsp + 0x5d0]
movss xmm0, dword [rax + 0x1af4]
unpcklps xmm0, xmm0
cvtps2pd xmm0, xmm0
movsd qword [rsp + 0x328], xmm0
mov rax, qword [rsp + 0x5d0]
movss xmm0, dword [rax + 0x1af8]
unpcklps xmm0, xmm0
cvtps2pd xmm0, xmm0
movsd qword [rsp + 0x2c8], xmm0
mov rax, qword [rsp + 0x5d0]
movss xmm0, dword [rax + 0x1afc]
unpcklps xmm0, xmm0
cvtps2pd xmm0, xmm0
movsd qword [rsp + 0x388], xmm0
mov rax, qword [rsp + 0x5d0]
movss xmm0, dword [rax + 0x1b00]
unpcklps xmm0, xmm0
cvtps2pd xmm0, xmm0
movsd qword [rsp + 0x380], xmm0
movsd xmm0, qword [rsp + 0x328]
movsd qword [rsp + 0x350], xmm0
movsd xmm0, qword [rsp + 0x2c8]
xorpd xmm0, xmmword [0x14005c3f0]
movsd qword [rsp + 0x340], xmm0
movsd xmm0, qword [rsp + 0x2f8]
movsd qword [rsp + 0x2d0], xmm0
movsd xmm0, qword [rsp + 0x368]
movsd qword [rsp + 0x338], xmm0
movsd xmm0, qword [rsp + 0x388]
xorpd xmm0, xmmword [0x14005c3f0]
movsd qword [rsp + 0x360], xmm0
movsd xmm0, qword [rsp + 0x380]
xorpd xmm0, xmmword [0x14005c3f0]
movsd qword [rsp + 0x2b8], xmm0
movsd xmm0, qword [rsp + 0x390]
xorpd xmm0, xmmword [0x14005c3f0]
movsd qword [rsp + 0x348], xmm0
movsd xmm0, qword [rsp + 0x398]
movsd qword [rsp + 0x378], xmm0
movsd xmm0, qword [rsp + 0x350]
addsd xmm0, qword [rsp + 0x360]
mulsd xmm0, qword [0x14005c438]
movsd qword [rsp + 0x320], xmm0
movsd xmm0, qword [rsp + 0x2d0]
addsd xmm0, qword [rsp + 0x348]
mulsd xmm0, qword [0x14005c438]
movsd qword [rsp + 0x2b0], xmm0
movsd xmm0, qword [rsp + 0x340]
addsd xmm0, qword [rsp + 0x2b8]
mulsd xmm0, qword [0x14005c438]
movsd qword [rsp + 0x2c0], xmm0
movsd xmm0, qword [rsp + 0x338]
addsd xmm0, qword [rsp + 0x378]
mulsd xmm0, qword [0x14005c438]
movsd qword [rsp + 0x2e0], xmm0
movsd xmm0, qword [rsp + 0x350]
subsd xmm0, qword [rsp + 0x360]
mulsd xmm0, qword [0x14005c438]
movsd qword [rsp + 0x330], xmm0
movsd xmm0, qword [rsp + 0x2d0]
subsd xmm0, qword [rsp + 0x348]
mulsd xmm0, qword [0x14005c438]
movsd qword [rsp + 0x370], xmm0
movsd xmm0, qword [rsp + 0x340]
subsd xmm0, qword [rsp + 0x2b8]
mulsd xmm0, qword [0x14005c438]
movsd qword [rsp + 0x2d8], xmm0
movsd xmm0, qword [rsp + 0x338]
subsd xmm0, qword [rsp + 0x378]
mulsd xmm0, qword [0x14005c438]
movsd qword [rsp + 0x358], xmm0
movsd xmm2, qword [rsp + 0x370]
subsd xmm2, qword [rsp + 0x330]
movsd xmm0, qword [rsp + 0x370]
subsd xmm0, qword [rsp + 0x330]
mulsd xmm2, xmm0
movsd xmm1, qword [rsp + 0x358]
subsd xmm1, qword [rsp + 0x2d8]
movsd xmm0, qword [rsp + 0x358]
subsd xmm0, qword [rsp + 0x2d8]
mulsd xmm1, xmm0
movapd xmm0, xmm2
addsd xmm0, xmm1
movsd qword [rsp + 0x2f0], xmm0
movsd xmm0, qword [0x14005c450]
comisd xmm0, xmmword [rsp + 0x2f0]
jbe 0x140019868
xorpd xmm0, xmm0
movsd qword [rsp + 0x2f0], xmm0
xorpd xmm0, xmm0
movsd qword [rsp + 0x310], xmm0
xorpd xmm0, xmm0
movsd qword [rsp + 0x318], xmm0
jmp 0x1400198c7
movsd xmm0, qword [rsp + 0x2f0]
call fcn.140001a98
movsd qword [rsp + 0x2f0], xmm0
movsd xmm0, qword [rsp + 0x358]
subsd xmm0, qword [rsp + 0x2d8]
divsd xmm0, qword [rsp + 0x2f0]
movsd qword [rsp + 0x310], xmm0
movsd xmm0, qword [rsp + 0x370]
subsd xmm0, qword [rsp + 0x330]
divsd xmm0, qword [rsp + 0x2f0]
movsd qword [rsp + 0x318], xmm0
movsd xmm2, qword [rsp + 0x320]
subsd xmm2, qword [rsp + 0x2b0]
movsd xmm0, qword [rsp + 0x320]
subsd xmm0, qword [rsp + 0x2b0]
mulsd xmm2, xmm0
movsd xmm1, qword [rsp + 0x2c0]
subsd xmm1, qword [rsp + 0x2e0]
movsd xmm0, qword [rsp + 0x2c0]
subsd xmm0, qword [rsp + 0x2e0]
mulsd xmm1, xmm0
movapd xmm0, xmm2
addsd xmm0, xmm1
movsd qword [rsp + 0x2e8], xmm0
movsd xmm0, qword [0x14005c450]
comisd xmm0, xmmword [rsp + 0x2e8]
jbe 0x140019964
xorpd xmm0, xmm0
movsd qword [rsp + 0x2e8], xmm0
xorpd xmm0, xmm0
movsd qword [rsp + 0x300], xmm0
xorpd xmm0, xmm0
movsd qword [rsp + 0x308], xmm0
jmp 0x1400199c3
movsd xmm0, qword [rsp + 0x2e8]
call fcn.140001a98
movsd qword [rsp + 0x2e8], xmm0
movsd xmm0, qword [rsp + 0x2c0]
subsd xmm0, qword [rsp + 0x2e0]
divsd xmm0, qword [rsp + 0x2e8]
movsd qword [rsp + 0x300], xmm0
movsd xmm0, qword [rsp + 0x320]
subsd xmm0, qword [rsp + 0x2b0]
divsd xmm0, qword [rsp + 0x2e8]
movsd qword [rsp + 0x308], xmm0
mov rax, qword [rsp + 0x5d8]
mov dword [rax + 0x110], 1
mov rax, qword [rsp + 0x5d0]
movss xmm0, dword [rax + 0x1ac4]
unpcklps xmm0, xmm0
cvtps2pd xmm0, xmm0
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0x114], xmm0
mov rax, qword [rsp + 0x5d0]
movss xmm0, dword [rax + 0x1ac8]
unpcklps xmm0, xmm0
cvtps2pd xmm0, xmm0
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0x11c], xmm0
mov rax, qword [rsp + 0x5d0]
movss xmm0, dword [rax + 0x1acc]
unpcklps xmm0, xmm0
cvtps2pd xmm0, xmm0
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0x124], xmm0
mov rax, qword [rsp + 0x5d0]
movss xmm0, dword [rax + 0x1ad0]
unpcklps xmm0, xmm0
cvtps2pd xmm0, xmm0
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0x12c], xmm0
mov rax, qword [rsp + 0x5d8]
movsd xmm0, qword [rsp + 0x310]
movsd qword [rax + 0x13c], xmm0
mov rax, qword [rsp + 0x5d8]
movsd xmm0, qword [rsp + 0x318]
movsd qword [rax + 0x134], xmm0
mov rax, qword [rsp + 0x5d8]
movsd xmm0, qword [rsp + 0x300]
movsd qword [rax + 0x14c], xmm0
mov rax, qword [rsp + 0x5d8]
movsd xmm0, qword [rsp + 0x308]
movsd qword [rax + 0x144], xmm0
movsd xmm0, qword [rsp + 0x2f0]
mulsd xmm0, qword [0x14005c438]
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0x154], xmm0
movsd xmm0, qword [rsp + 0x2e8]
mulsd xmm0, qword [0x14005c438]
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0x15c], xmm0
movsd xmm0, qword [rsp + 0x320]
addsd xmm0, qword [rsp + 0x2b0]
mulsd xmm0, qword [0x14005c438]
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0x164], xmm0
movsd xmm0, qword [rsp + 0x2c0]
addsd xmm0, qword [rsp + 0x2e0]
mulsd xmm0, qword [0x14005c438]
mov rax, qword [rsp + 0x5d8]
movsd qword [rax + 0x16c], xmm0
lea rdx, [rsp + 0x3a0]
mov ecx, 3
call fcn.140030d50
movsx eax, al
cmp eax, 1
jne 0x140019ca6
lea rcx, [rsp + 0x3a0]
call fcn.140001cc0
mov dword [rsp + 0x5a4], eax
mov dword [rsp + 0x5a8], 0x1c0
mov rax, qword [rsp + 0x5d8]
movsd xmm0, qword [0x14005c4e0]
mulsd xmm0, qword [rax + 0x16c]
cvttsd2si r11d, xmm0
mov rax, qword [rsp + 0x5d8]
movsd xmm0, qword [0x14005c4e0]
mulsd xmm0, qword [rax + 0x164]
cvttsd2si r10d, xmm0
mov rax, qword [rsp + 0x5d8]
movsd xmm0, qword [0x14005c4e0]
mulsd xmm0, qword [rax + 0x15c]
cvttsd2si r8d, xmm0
mov rax, qword [rsp + 0x5d8]
movsd xmm0, qword [0x14005c4e0]
mulsd xmm0, qword [rax + 0x154]
cvttsd2si r9d, xmm0
mov ecx, dword [rsp + 0x5a4]
mov eax, dword [rsp + 0x5a8]
sub eax, ecx
movsxd rdx, eax
movsxd rax, dword [rsp + 0x5a4]
lea rcx, [rsp + rax + 0x3a0]
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r8d
lea r8, str.rapido__RapidoHookStart_:_Piezo_K1_ld_K2_ld_K3_ld_K4_ld_n
call fcn.140002190
mov dword [rsp + 0x5a0], eax
cmp dword [rsp + 0x5a0], 0
jl 0x140019c80
mov ecx, dword [rsp + 0x5a4]
mov eax, dword [rsp + 0x5a8]
sub eax, ecx
cmp dword [rsp + 0x5a0], eax
jl 0x140019c94
mov eax, dword [rsp + 0x5a8]
sub eax, 1
cdqe
mov byte [rsp + rax + 0x3a0], 0
lea rdx, [rsp + 0x3a0]
mov ecx, 3
call fcn.140030d40
xor eax, eax
test eax, eax
jne 0x140019b67
mov rcx, qword [rsp + 0x5b0]
xor rcx, rsp
call fcn.140001280
add rsp, 0x5c8
ret