Function at 0x180002fc0
Capabilities:
Check for time delay via queryperformancecounter
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [str.LoadLibraryA]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp byte [0x1800a8600], 0
jne 0x18000327a
mov byte [0x1800a8600], 1
lea rcx, [0x1800a85b8]
mov edx, 0x1000
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
lea rcx, str.MOZ_TIMESTAMP_MODE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rsi, rax
test rax, rax
jne 0x180003299
test rsi, rsi
setne sil
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
setne al
mov byte [0x1800a6250], al
mov al, byte [0x1800a6250]
test al, 1
je 0x180003161
test sil, sil
jne 0x1800032dd
xor eax, eax
xor ecx, ecx
xchg rbx, rbp
cpuid
xchg rbx, rbp
xor esi, esi
lea rdi, [rsp + 0x34]
mov dword [rdi - 4], eax
mov dword [rdi], ebp
mov dword [rdi + 4], ecx
mov dword [rdi + 8], edx
lea rdx, str.GenuntelineI
mov r8d, 0xc
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
test eax, eax
jne 0x1800032e5
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, rbp
cpuid
xchg rbx, rbp
cmp eax, 0x80000007
jb 0x1800030bc
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, rbp
cpuid
xchg rbx, rbp
mov esi, edx
shr esi, 8
and sil, 1
mov byte [0x1800a8598], sil
mov rax, qword [rsp + 0x20]
mov qword [0x1800a6248], rax
xor eax, eax
lea rcx, [rsp + 0x30]
mov dword [rcx], eax
lea rsi, [rsp + 0x2c]
mov dword [rsi], eax
lea r8, [rsp + 0x28]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAdjustment]
mov eax, dword [rsi]
test eax, eax
je 0x18000330a
dec eax
mov ecx, 0xd1b71759
imul rcx, rax
shr rcx, 0x2d
imul ecx, ecx, 0x2710
mov eax, 0x2710
add eax, ecx
mov rcx, qword [0x1800a6248]
imul rax, rcx
movabs rdx, 0x346dc5d63886594b
mul rdx
shr rdx, 9
and rdx, 0xfffffffffffffffc
mov qword [0x1800a85a0], rdx
imul rax, rcx, 0x7d0
mov qword [0x1800a85b0], rax
imul rax, rcx, 0x1388
mov qword [0x1800a85e8], rax
imul rax, rcx, 0x32
mov qword [0x1800a85a8], rax
mov al, byte [0x1800a6250]
test al, 1
je 0x180003314
mov rbx, 0xffffffffffffffff
mov r13d, 0xfffffff7
lea rdi, [rsp + 0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, rdi
call rbp
lea rcx, [0x1800a85b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rsi, qword [0x1800a8620]
mov rax, qword [rsp + 0x30]
cmp rsi, rax
jg 0x1800031b5
mov qword [0x1800a8620], rax
mov rsi, rax
lea r14, [0x1800a85b8]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r12, rdi
mov rcx, rdi
mov r15, rbp
call rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r14, qword [0x1800a8620]
mov rax, qword [rsp + 0x30]
cmp r14, rax
jg 0x1800031f4
mov qword [0x1800a8620], rax
mov r14, rax
sub r14, rsi
lea rcx, [0x1800a85b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
imul rax, r14, 0x3e8
cmp rax, rbx
cmovb rbx, rax
test r13d, r13d
je 0x180003229
mov rdi, r12
mov rbp, r15
inc r13d
test rbx, rbx
jne 0x180003188
test rbx, rbx
mov eax, 1
cmovne rax, rbx
mov rbp, qword [0x1800a6248]
imul rcx, rax, 0xf4240
mov rax, rcx
xor edx, edx
div rbp
cmp rbp, rcx
mov edx, 1
cmova rax, rdx
mov qword [0x1800a85f0], rax
mov rcx, rdx
cmp rdx, rax
je 0x180003273
lea rdx, [rcx + rcx]
lea rdx, [rdx + rdx*4]
cmp rdx, rax
jbe 0x18000325e
mov qword [0x1800a85f8], rcx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18004bde0
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [0x180097851]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x18000301e
lea rdx, [0x18009784d]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x180003327
mov byte [0x1800a6250], 0
mov al, byte [0x1800a6250]
test al, 1
jne 0x180003052
jmp 0x180003161
mov sil, 1
jmp 0x1800030bc
lea rdx, str.AuthcAMDenti
mov r8d, 0xc
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
test eax, eax
je 0x18000308e
xor esi, esi
jmp 0x1800030bc
mov eax, 0x26161
jmp 0x1800030f7
mov rbp, qword [0x1800a6248]
mov rax, rbp
shl rax, 4
jmp 0x18000323c
xor esi, esi
jmp 0x180003025