Function at 0x18001a230
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 [0x1800cb028]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp byte [0x1800cd548], 0
jne 0x18001a4d3
mov byte [0x1800cd548], 1
lea rcx, [0x1800cd500]
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]
test rax, rax
setne dil
jne 0x18001a4f2
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
setne al
mov byte [0x1800cb100], al
mov al, byte [0x1800cb100]
test al, 1
je 0x18001a3cc
test dil, dil
jne 0x18001a539
xor eax, eax
xor ecx, ecx
xchg rbx, r8
cpuid
xchg rbx, r8
xor esi, esi
lea rdi, [rsp + 0x34]
mov dword [rdi - 4], eax
mov dword [rdi], r8d
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 0x18001a541
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r8
cpuid
xchg rbx, r8
cmp eax, 0x80000007
jb 0x18001a327
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, r8
cpuid
xchg rbx, r8
mov esi, edx
shr esi, 8
and sil, 1
mov byte [0x1800cd4e0], sil
mov rax, qword [rsp + 0x20]
mov qword [0x1800cb0f8], 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 0x18001a566
dec eax
mov ecx, 0xd1b71759
imul rcx, rax
shr rcx, 0x2d
imul ecx, ecx, 0x2710
mov eax, 0x2710
add eax, ecx
mov rcx, qword [0x1800cb0f8]
imul rax, rcx
movabs rdx, 0x346dc5d63886594b
mul rdx
shr rdx, 9
and rdx, 0xfffffffffffffffc
mov qword [0x1800cd4e8], rdx
imul rax, rcx, 0x7d0
mov qword [0x1800cd4f8], rax
imul rax, rcx, 0x1388
mov qword [0x1800cd530], rax
imul rax, rcx, 0x32
mov qword [0x1800cd4f0], rax
mov al, byte [0x1800cb100]
test al, 1
je 0x18001a570
mov rbx, 0xffffffffffffffff
mov ebp, 0xfffffff7
lea rsi, [rsp + 0x30]
lea rdi, [0x1800cd500]
mov r15, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, rdi
call r15
mov r13, qword [0x1800cd568]
mov rax, qword [rsp + 0x30]
cmp r13, rax
jg 0x18001a42a
mov qword [0x1800cd568], rax
mov r13, rax
mov rcx, rdi
call r12
mov r14, rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, rdi
call r15
mov rsi, qword [0x1800cd568]
mov rax, qword [rsp + 0x30]
cmp rsi, rax
jg 0x18001a45d
mov qword [0x1800cd568], rax
mov rsi, rax
sub rsi, r13
mov rcx, rdi
call r12
imul rax, rsi, 0x3e8
cmp rax, rbx
cmovb rbx, rax
test ebp, ebp
je 0x18001a486
mov rsi, r14
inc ebp
test rbx, rbx
jne 0x18001a400
cmp rbx, 1
adc rbx, 0
mov r8, qword [0x1800cb0f8]
imul rcx, rbx, 0xf4240
mov rax, rcx
xor edx, edx
div r8
cmp r8, rcx
mov edx, 1
cmova rax, rdx
mov qword [0x1800cd538], rax
mov rcx, rdx
cmp rdx, rax
je 0x18001a4cc
lea rdx, [rcx + rcx]
lea rdx, [rdx + rdx*4]
cmp rdx, rax
jbe 0x18001a4b7
mov qword [0x1800cd540], rcx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180062020
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, rax
lea rdx, [0x1800bc2bd]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x18001a28f
lea rdx, [0x1800bc2b9]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x18001a583
mov byte [0x1800cb100], 0
mov al, byte [0x1800cb100]
test al, 1
jne 0x18001a2bc
jmp 0x18001a3cc
mov sil, 1
jmp 0x18001a327
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 0x18001a2f9
xor esi, esi
jmp 0x18001a327
mov eax, 0x26161
jmp 0x18001a362
mov r8, qword [0x1800cb0f8]
mov rbx, r8
shl rbx, 4
jmp 0x18001a495
xor edi, edi
jmp 0x18001a28f