Function at 0x140046ec0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push r14
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov r14, rcx
mov rbx, r8
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140047490
mov rax, qword [rbp + 0x10]
xor edx, edx
sub rax, qword [0x140099f88]
imul rax, rax, 0xf4240
mov qword [rsp + 0x240], r12
div qword [0x140099f80]
mov qword [rsp + 0x230], r15
xor r15d, r15d
mov r12, rax
add r12, qword [0x140099f90]
cmp byte [0x140099b70], r15b
je 0x140046f96
lea rax, str.Tundra_SaveScanCache
mov dword [rbp + 0xc0], r15d
xorps xmm0, xmm0
mov qword [rbp + 0xc8], rax
lea rcx, [rbp + 0x18]
mov dword [rbp + 0xe8], 0x32
movdqu xmmword [rbp + 0xd0], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14004749d
mov rax, qword [rbp + 0x18]
xor edx, edx
sub rax, qword [0x140099f88]
imul rax, rax, 0xf4240
div qword [0x140099f80]
add rax, qword [0x140099f90]
mov qword [rbp + 0xe0], rax
mov qword [rsp + 0x270], rsi
lea rcx, [rbp - 0x80]
xorps xmm0, xmm0
mov qword [rsp + 0x248], rdi
mov rdi, qword [r14 + 0x18]
mov qword [rsp + 0x238], r13
mov rsi, qword [rdi + 0x10]
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], r15
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], r15
movdqa xmmword [rbp - 0x70], xmm0
call fcn.140007d90
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x60], rax
call fcn.140007d90
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x58], rax
call fcn.140007d90
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x50], rax
call fcn.140007d90
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x48], rax
call fcn.140007d90
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x40], rax
call fcn.140007d90
mov rcx, qword [rbp - 0x58]
mov r13d, dword [r14 + 0x20]
mov qword [rbp - 0x38], rax
mov eax, dword [rcx]
mov dword [rsp + 0x30], eax
mov rax, qword [rcx + 0x20]
mov rcx, qword [rbp - 0x50]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rbp - 0x30], xmm0
mov eax, dword [rcx]
mov dword [rsp + 0x30], eax
mov rax, qword [rcx + 0x20]
mov rcx, qword [rbp - 0x48]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rbp - 0x20], xmm0
mov eax, dword [rcx]
mov dword [rsp + 0x30], eax
mov rax, qword [rcx + 0x20]
mov dword [rbp], r15d
mov r15d, r13d
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
shl r15, 3
movaps xmmword [rbp - 0x10], xmm0
mov rax, qword [rdi + 8]
mov rdx, qword [rax + 0x18]
add rdx, 7
and rdx, 0xfffffffffffffff8
lea rcx, [rdx + r15]
cmp rcx, qword [rax + 0x10]
jbe 0x1400470b8
mov rdx, r15
mov rcx, rdi
call fcn.14003b680
xor edx, edx
mov rax, qword [rdi + 8]
lea rcx, [rdx + r15]
mov rbx, qword [rax + 0x28]
mov qword [rax + 0x18], rcx
add rbx, rdx
mov rax, qword [rdi + 8]
mov rdx, qword [rax + 0x20]
add rdx, qword [rax + 0x18]
mov qword [rdi + 0x10], rdx
xor edx, edx
mov eax, dword [r14 + 0x24]
test eax, eax
je 0x140047119
xor r8d, r8d
mov r9d, eax
nop dword [rax + rax]
mov rax, qword [r14 + 0x28]
mov rax, qword [r8 + rax]
test rax, rax
je 0x14004710f
nop dword [rax]
mov qword [rbx + rdx*8], rax
inc edx
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140047100
add r8, 8
sub r9, 1
jne 0x1400470f0
lea rdx, [rbx + r13*8]
mov rcx, rbx
mov r8, rdx
lea r9, [0x140046d30]
sub r8, rbx
sar r8, 3
call fcn.140047750
mov r8, qword [r14]
test r8, r8
je 0x140047193
movsxd rdx, dword [r8 + 8]
lea rcx, [r8 + 8]
mov r15d, dword [r8 + 4]
xor eax, eax
sub eax, dword [rcx]
add rdx, rcx
neg eax
lea rcx, [r8 + 0xc]
sbb rax, rax
and rdx, rax
xor eax, eax
mov qword [rbp + 0x188], rdx
sub eax, dword [rcx]
movsxd rdx, dword [rcx]
add rdx, rcx
lea rcx, [r8 + 0x10]
neg eax
sbb rax, rax
and rdx, rax
xor eax, eax
mov qword [rsp + 0x70], rdx
sub eax, dword [rcx]
movsxd rdx, dword [rcx]
add rdx, rcx
neg eax
sbb rax, rax
and rdx, rax
jmp 0x1400471a6
xor eax, eax
mov r15d, eax
mov qword [rbp + 0x188], rax
mov qword [rsp + 0x70], rax
mov edx, eax
mov rax, qword [r14 + 0x38]
xor ecx, ecx
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x20], rdx
call fcn.140058a54
mov qword [rbp + 0x50], rax
lea rdx, [rbp + 0x60]
mov qword [rbp + 0x30], rax
mov r8, rbx
mov qword [rbp + 0x48], rbx
lea rcx, [rax - 0x93a80]
mov r9d, r15d
mov qword [rbp + 0x38], rcx
lea rax, [rsp + 0x40]
mov qword [rbp + 0x58], rax
lea rcx, [rbp - 0x80]
mov qword [rbp + 0x40], rcx
lea rax, [rbp + 0x20]
mov qword [rbp + 0x60], rax
mov rcx, r13
lea rax, [rbp + 0x28]
mov qword [rbp + 0x68], rax
lea rax, [rbp + 0x30]
movaps xmm0, xmmword [rbp + 0x60]
mov qword [rbp + 0x70], rax
lea rax, [rbp + 0x38]
mov qword [rbp + 0x78], rax
lea rax, [rbp - 0x80]
movaps xmm1, xmmword [rbp + 0x70]
mov qword [rbp + 0x80], rax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x88], rax
lea rax, [rbp + 0x188]
mov qword [rbp + 0x90], rax
lea rax, [rsp + 0x70]
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x188]
movaps xmmword [rbp + 0xf0], xmm0
movaps xmm0, xmmword [rbp + 0x80]
movaps xmmword [rbp + 0x100], xmm1
movaps xmm1, xmmword [rbp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xf0]
movaps xmmword [rbp + 0x120], xmm1
movups xmm1, xmmword [rbp + 0x50]
mov qword [rsp + 0x20], rax
movaps xmmword [rbp + 0x110], xmm0
movups xmm0, xmmword [rbp + 0x40]
movaps xmmword [rbp + 0x70], xmm1
movaps xmmword [rbp + 0x60], xmm0
call fcn.140047a90
mov rcx, qword [rbp - 0x60]
xor r15d, r15d
mov qword [r14], r15
mov rdx, qword [rcx + 0x10]
lea r8d, [r15 + 4]
add rcx, 0x18
call fcn.140007f10
lea r8d, [r15 + 4]
mov dword [rax], 0x6d072211
mov rcx, qword [rbp - 0x60]
mov ebx, dword [rbp]
mov rdx, qword [rcx + 0x10]
add rcx, 0x18
call fcn.140007f10
lea rdx, [rbp + 0xa0]
mov dword [rax], ebx
movaps xmm0, xmmword [rbp - 0x30]
mov rcx, qword [rbp - 0x60]
movaps xmmword [rbp + 0xa0], xmm0
call fcn.140007980
movaps xmm0, xmmword [rbp - 0x20]
lea rdx, [rbp + 0xb0]
mov rcx, qword [rbp - 0x60]
movaps xmmword [rbp + 0xb0], xmm0
call fcn.140007980
movaps xmm0, xmmword [rbp - 0x10]
lea rdx, [rbp + 0x40]
mov rcx, qword [rbp - 0x60]
movaps xmmword [rbp + 0x40], xmm0
call fcn.140007980
mov rcx, qword [rbp - 0x60]
lea r8d, [r15 + 4]
mov rdx, qword [rcx + 0x10]
add rcx, 0x18
call fcn.140007f10
mov rdx, qword [rbp + 0x178]
lea rcx, [rbp - 0x80]
mov dword [rax], 0x6d072211
call fcn.140007bb0
lea rcx, [rbp - 0x80]
movzx ebx, al
call fcn.140007aa0
mov rcx, qword [rsp + 0x40]
mov r13, qword [rsp + 0x238]
test rcx, rcx
je 0x140047386
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
mov rdx, qword [rsp + 0x60]
neg r8
lock add qword [rdx], r8
call fcn.140058710
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400473a9
mov rdx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
mov rax, qword [rsp + 0x60]
neg rdx
lock add qword [rax], rdx
call fcn.140058710
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400473cc
mov rdx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
mov rax, qword [rsp + 0x60]
neg rdx
lock add qword [rax], rdx
call fcn.140058710
mov qword [rsp + 0x50], r15
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x68], r15
mov rax, qword [rdi + 8]
mov qword [rdi + 0x10], rsi
cmp qword [rax + 0x20], rsi
jbe 0x1400473ff
mov rax, qword [rax]
mov qword [rdi + 8], rax
cmp qword [rax + 0x20], rsi
ja 0x1400473f2
mov rax, qword [rdi + 8]
lea rcx, [rbp + 0xc0]
sub rsi, qword [rax + 0x20]
mov qword [rax + 0x18], rsi
call fcn.140001250
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rdi, qword [rsp + 0x248]
mov rsi, qword [rsp + 0x270]
test eax, eax
je 0x140047483
mov rax, qword [rsp + 0x30]
xor edx, edx
sub rax, qword [0x140099f88]
imul rax, rax, 0xf4240
div qword [0x140099f80]
sub rax, r12
add rax, qword [0x140099f90]
lock add qword [0x140099850], rax
mov r12, qword [rsp + 0x240]
movzx eax, bl
mov r15, qword [rsp + 0x230]
add rsp, 0x250
pop r14
pop rbx
pop rbp
ret
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013a60
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013a60
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013a60
int3