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

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov r15, rcx
mov rbx, r8
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140048c1e
mov rax, qword [rbp + 0x10]
xor edx, edx
sub rax, qword [0x14009c1f8]
imul rax, rax, 0xf4240
mov qword [rsp + 0x240], r12
div qword [0x14009c1f0]
mov qword [rsp + 0x238], r13
xor r13d, r13d
mov r12, rax
add r12, qword [0x14009c200]
cmp byte [0x14009bbec], r13b
je 0x140048716
lea rax, str.Tundra_SaveScanCache
mov dword [rbp + 0xc0], r13d
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 0x140048c2b
mov rax, qword [rbp + 0x18]
xor edx, edx
sub rax, qword [0x14009c1f8]
imul rax, rax, 0xf4240
div qword [0x14009c1f0]
add rax, qword [0x14009c200]
mov qword [rbp + 0xe0], rax
mov qword [rsp + 0x270], rsi
lea rcx, [rbp - 0x80]
mov rsi, qword [r15 + 0x18]
xorps xmm0, xmm0
mov qword [rsp + 0x248], rdi
mov qword [rsp + 0x230], r14
mov r14, qword [rsi + 0x10]
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], r13d
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], r13
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], r13
movdqa xmmword [rbp - 0x70], xmm0
call fcn.140008c80
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x60], rax
call fcn.140008c80
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x58], rax
call fcn.140008c80
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x50], rax
call fcn.140008c80
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x48], rax
call fcn.140008c80
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x40], rax
call fcn.140008c80
mov rcx, qword [rbp - 0x58]
mov ebx, dword [r15 + 0x20]
mov qword [rbp - 0x38], rax
shl rbx, 3
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], r13d
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rbp - 0x10], xmm0
mov rax, qword [rsi + 8]
mov rdx, qword [rax + 0x18]
add rdx, 7
and rdx, 0xfffffffffffffff8
lea rcx, [rdx + rbx]
cmp rcx, qword [rax + 0x10]
jbe 0x140048836
mov rdx, rbx
mov rcx, rsi
call fcn.14003cf60
mov rdx, r13
mov rax, qword [rsi + 8]
lea rcx, [rdx + rbx]
mov ebx, r13d
mov rdi, qword [rax + 0x28]
mov qword [rax + 0x18], rcx
add rdi, rdx
mov rax, qword [rsi + 8]
mov rdx, qword [rax + 0x20]
add rdx, qword [rax + 0x18]
mov qword [rsi + 0x10], rdx
mov eax, dword [r15 + 0x24]
test eax, eax
je 0x1400488a1
mov rdx, r13
mov r8d, eax
nop word [rax + rax]
mov rax, qword [r15 + 0x28]
mov rax, qword [rdx + rax]
test rax, rax
je 0x140048897
nop dword [rax]
cmp dword [rax + 0x28], r13d
jne 0x14004888e
mov ecx, ebx
inc ebx
mov qword [rdi + rcx*8], rax
mov rax, qword [rax + 0x38]
test rax, rax
jne 0x140048880
add rdx, 8
sub r8, 1
jne 0x140048870
mov eax, ebx
lea r9, [0x1400484b0]
mov rcx, rdi
lea rdx, [rdi + rax*8]
mov r8, rdx
sub r8, rdi
sar r8, 3
call fcn.140048ee0
mov r8, qword [r15]
test r8, r8
je 0x14004891d
movsxd rdx, dword [r8 + 8]
lea rcx, [r8 + 8]
mov r13d, 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 0x14004892b
xor edx, edx
mov qword [rbp + 0x188], rdx
mov qword [rsp + 0x70], rdx
mov rax, qword [r15 + 0x38]
xor ecx, ecx
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x20], rdx
call fcn.14005a7c4
mov qword [rbp + 0x50], rax
lea rdx, [rbp + 0x60]
mov qword [rbp + 0x30], rax
mov r8, rdi
mov qword [rbp + 0x48], rdi
lea rcx, [rax - 0x93a80]
mov r9d, r13d
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
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 ecx, ebx
movaps xmmword [rbp + 0x110], xmm0
movups xmm0, xmmword [rbp + 0x40]
mov qword [rsp + 0x20], rax
movaps xmmword [rbp + 0x70], xmm1
movaps xmmword [rbp + 0x60], xmm0
call fcn.140049220
mov rcx, qword [rbp - 0x60]
xor edi, edi
mov qword [r15], rdi
mov rdx, qword [rcx + 0x10]
lea r8d, [rdi + 4]
add rcx, 0x18
call fcn.140008e00
lea r8d, [rdi + 4]
mov dword [rax], 0x6d072211
mov rcx, qword [rbp - 0x60]
mov ebx, dword [rbp]
mov rdx, qword [rcx + 0x10]
add rcx, 0x18
call fcn.140008e00
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.140008870
movaps xmm0, xmmword [rbp - 0x20]
lea rdx, [rbp + 0xb0]
mov rcx, qword [rbp - 0x60]
movaps xmmword [rbp + 0xb0], xmm0
call fcn.140008870
movaps xmm0, xmmword [rbp - 0x10]
lea rdx, [rbp + 0x40]
mov rcx, qword [rbp - 0x60]
movaps xmmword [rbp + 0x40], xmm0
call fcn.140008870
mov rcx, qword [rbp - 0x60]
lea r8d, [rdi + 4]
mov rdx, qword [rcx + 0x10]
add rcx, 0x18
call fcn.140008e00
mov rdx, qword [rbp + 0x178]
lea rcx, [rbp - 0x80]
mov dword [rax], 0x6d072211
call fcn.140008aa0
lea rcx, [rbp - 0x80]
movzx ebx, al
call fcn.140008990
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140048b01
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
mov rdx, qword [rsp + 0x60]
neg r8
lock add qword [rdx], r8
call fcn.14005a480
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140048b24
mov rdx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
mov rax, qword [rsp + 0x60]
neg rdx
lock add qword [rax], rdx
call fcn.14005a480
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140048b47
mov rdx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
mov rax, qword [rsp + 0x60]
neg rdx
lock add qword [rax], rdx
call fcn.14005a480
mov qword [rsp + 0x50], rdi
xorps xmm0, xmm0
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x68], rdi
mov rdi, qword [rsp + 0x248]
movdqu xmmword [rsp + 0x40], xmm0
mov rax, qword [rsi + 8]
mov qword [rsi + 0x10], r14
cmp qword [rax + 0x20], r14
jbe 0x140048b8d
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rax]
mov qword [rsi + 8], rax
cmp qword [rax + 0x20], r14
ja 0x140048b80
mov rax, qword [rsi + 8]
lea rcx, [rbp + 0xc0]
sub r14, qword [rax + 0x20]
mov qword [rax + 0x18], r14
call fcn.140001370
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r14, qword [rsp + 0x230]
mov rsi, qword [rsp + 0x270]
test eax, eax
je 0x140048c11
mov rax, qword [rsp + 0x30]
xor edx, edx
sub rax, qword [0x14009c1f8]
imul rax, rax, 0xf4240
div qword [0x14009c1f0]
sub rax, r12
add rax, qword [0x14009c200]
lock add qword [0x14009bad0], rax
mov r12, qword [rsp + 0x240]
movzx eax, bl
mov r13, qword [rsp + 0x238]
add rsp, 0x250
pop r15
pop rbx
pop rbp
ret
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140014f00
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140014f00
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140014f00
int3