Function at 0x1400940a8
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x240
mov rax, qword [0x1401e0fc0]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov rdi, rcx
xor r12d, r12d
lea rcx, [0x1403c7000]
mov esi, r12d
mov r15d, r12d
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rbx, qword [0x1403c7008]
test rbx, rbx
je 0x140094117
cmp qword [rbx], rdi
je 0x140094112
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x140094104
test rbx, rbx
jne 0x140094158
mov edx, 0x20
lea ecx, [rdx + 0x20]
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14009440d
mov qword [rax], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1403c7008]
sub eax, 0xea61
mov dword [rbx + 8], eax
mov qword [rbx + 0xc], r12
mov qword [rbx + 0x18], rcx
mov qword [0x1403c7008], rbx
inc dword [rbx + 0xc]
inc dword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 8]
cmp eax, 0xea60
jbe 0x14009440d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 8], eax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
lea rdx, [rbp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.140094004
mov r13d, eax
test eax, eax
je 0x1400941bb
lea rax, [0x140000000]
cmp rdi, rax
jb 0x1400941bb
mov edx, dword [rsp + 0x30]
add rdx, rax
cmp rdx, rax
jbe 0x1400941bb
cmp rdi, rdx
ja 0x1400941bb
sub edi, eax
jmp 0x1400941be
mov edi, r12d
mov dword [rsp + 0x44], edi
cmp dword [rbx + 0x10], 1
jne 0x1400942b6
lea rcx, [0x1401d5140]
call fcn.1400010c8
test eax, eax
jne 0x1400942b6
cmp dword [0x1401d5140], r12d
jbe 0x1400942aa
xor edx, edx
lea rcx, [0x1401d5140]
call fcn.140001228
test al, al
je 0x1400942aa
lea esi, [rdx + 1]
mov dword [rsp + 0x58], 0x1d1727a6
mov dl, byte [rbp + 0x20]
mov r15d, esi
mov dword [rsp + 0x5c], 0x4e2792c8
mov r14d, r12d
mov dword [rsp + 0x60], 0x8b0f69bc
mov dword [rsp + 0x64], 0x9d548c45
test dl, dl
je 0x140094270
mov rdi, r12
lea r12, [rbp + 0x20]
movsx ecx, dl
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
add byte [rsp + rdi + 0x58], al
inc r12
lea ecx, [r14 + 1]
cmp ecx, 0x10
lea rax, [rdi + 1]
mov dl, byte [r12]
sbb r14d, r14d
and r14d, ecx
cmp ecx, 0x10
sbb rdi, rdi
and rdi, rax
cmp dl, 0
jne 0x14009423a
xor r12d, r12d
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
jne 0x1400942aa
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventProviderEnabled]
mov rcx, qword [rsp + 0x38]
test al, al
cmovne esi, r12d
call qword [sym.imp.ADVAPI32.dll_EventUnregister]
lea rcx, [0x1401d5140]
call fcn.1400010a0
lea rdi, [0x1401d5108]
mov rcx, rdi
call fcn.1400010c8
test eax, eax
jne 0x1400943f5
cmp dword [0x1401d5108], 5
jbe 0x1400943ed
movabs rdx, 0x400000000000
mov rcx, rdi
call fcn.140001228
test al, al
je 0x1400943ed
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0xa
mov qword [rbp - 0x70], rax
lea rdx, [rbp + 0x20]
lea rax, [rsp + 0x44]
mov qword [rbp - 0x68], 4
mov qword [rbp - 0x60], rax
mov eax, r13d
neg eax
mov qword [rbp - 0x58], 4
lea rax, [rsp + 0x34]
mov qword [rbp - 0x48], 4
sbb ecx, ecx
mov qword [rbp - 0x50], rax
and dword [rsp + 0x34], ecx
mov eax, r13d
neg eax
mov qword [rbp - 0x38], 4
lea rax, [rsp + 0x30]
sbb ecx, ecx
mov qword [rbp - 0x40], rax
and dword [rsp + 0x30], ecx
lea rax, str._unknown_
test r13d, r13d
lea rcx, [rbp - 0x30]
cmove rdx, rax
call fcn.140001250
mov ecx, dword [rbx + 0xc]
lea rax, [rsp + 0x48]
mov qword [rbp - 0x20], rax
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x4c], eax
lea rax, [rsp + 0x4c]
mov qword [rbp - 0x10], rax
lea rax, [rsp + 0x50]
mov qword [rbp], rax
lea rax, [rsp + 0x38]
mov qword [rbp + 0x10], rax
mov dword [rsp + 0x48], ecx
mov qword [rbp - 0x18], 4
mov qword [rbp - 8], 4
mov dword [rsp + 0x50], esi
mov qword [rbp + 8], 4
mov dword [rsp + 0x38], r15d
mov qword [rbp + 0x18], 4
lea rax, [rsp + 0x70]
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea rdx, [0x14019ab90]
mov dword [rsp + 0x20], ntohs
call fcn.14000116c
mov rcx, rdi
call fcn.1400010a0
test r15d, r15d
je 0x140094409
test esi, esi
je 0x140094409
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbx + 0xc], r12d
lea rcx, [0x1403c7000]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.14010fb20
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret