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

Disassembly:
mov r11, rsp
push rbp
push rbx
push rdi
push r14
push r15
lea rbp, [r11 - 0x168]
sub rsp, 0x240
mov rax, qword [0x1800b7160]
xor rax, rsp
mov qword [rbp + 0x120], rax
xor r14d, r14d
mov qword [r11 + 0x20], rsi
mov qword [rbp - 0x80], r8
mov rdi, rdx
mov rbx, rcx
mov qword [r11 - 0x30], r12
xor edx, edx
mov dword [rsp + 0x78], r14d
lea r8d, [r14 + 0x40]
mov dword [rsp + 0x60], r14d
lea rcx, [rbp + 0x40]
mov r12d, r14d
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
lea rcx, [rbp - 0x70]
mov dword [rsp + 0x7c], r14d
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x78], r14
call qword [sym.imp.api_ms_win_core_profile_l1_1_0.dll_QueryPerformanceCounter]
nop dword [rax + rax]
lea r15d, [r14 + 1]
test rbx, rbx
je 0x1800373f5
mov esi, dword [rbx]
lea eax, [rsi - 1]
cmp eax, r15d
ja 0x1800373f5
cmp qword [rbx + 8], r14
je 0x1800373f5
test rdi, rdi
je 0x1800373f5
mov eax, dword [rdi]
inc eax
test eax, 0xfffffffd
jne 0x1800373f5
xor edx, edx
mov qword [rsp + 0x230], r13
lea r8d, [r14 + 0x70]
lea rcx, [rbp - 0x38]
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
mov r13d, dword [rbx + 0x28]
mov dword [rbp - 0x40], 0x80000001
mov dword [rbp - 0x3c], 0x78
test r13d, r13d
jne 0x18000b583
cmp esi, 2
je 0x1800372d8
mov rax, qword [rbx + 0x18]
mov qword [rdi + 8], rax
mov rcx, qword [rbx + 0x20]
test rcx, rcx
jne 0x1800372eb
mov eax, dword [rdi]
cmp eax, 0xffffffff
jne 0x180037366
mov r15, rdi
mov rcx, qword [rbp - 0x80]
lea rax, [rbp - 0x40]
movzx edx, word [rbx + 0x10]
lea r8, [rdi + 8]
mov qword [rsp + 0x50], rcx
test r13d, r13d
mov rcx, qword [rbx + 8]
mov r9, r12
cmove rax, r14
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x38]
mov qword [rsp + 0x38], rax
mov rax, qword [rbx + 0x30]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.18000b5a0
mov ebx, eax
cmp dword [rsp + 0x7c], r14d
jne 0x1800373d2
test r12, r12
jne 0x1800373e7
mov r15d, 1
mov r13, qword [rsp + 0x230]
lea rcx, [rbp - 0x78]
call qword [sym.imp.api_ms_win_core_profile_l1_1_0.dll_QueryPerformanceCounter]
nop dword [rax + rax]
mov r8, qword [rbp - 0x78]
sub r8, qword [rbp - 0x70]
mov r9d, dword [0x1800b7018]
mov r12, qword [rsp + 0x238]
mov rsi, qword [rsp + 0x288]
test r9d, r9d
je 0x18000b562
lea rcx, [0x1800b7018]
call fcn.180008044
test al, al
jne 0x18003741f
mov eax, ebx
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.18002d5c0
add rsp, 0x240
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret
mov dword [rbp - 0x30], 0xc
mov dword [rbp - 0x28], r13d
jmp 0x18000b476
mov eax, dword [rbx + 0x40]
mov dword [rsp + 0x78], eax
mov eax, dword [rbx + 0x44]
mov dword [rsp + 0x60], eax
jmp 0x18000b47f
xor r8d, r8d
xor edx, edx
call fcn.18006eba4
mov r12, rax
test rax, rax
jne 0x18003731f
test byte [0x1800b78f1], 4
je 0x180037315
lea ecx, [rax + 0x3e]
lea rdx, [0x18009f0b0]
call fcn.180087008
mov ebx, 8
jmp 0x18000b512
mov ecx, r14d
cmp dword [rax + 4], r14d
jbe 0x18000b494
mov eax, ecx
shl rax, 6
movzx edx, word [rax + r12 + 0x20]
cmp dx, 2
jne 0x180037349
mov dword [rax + r12 + 0x40], 0x10
jmp 0x180037358
cmp dx, 0x17
jne 0x180037358
mov dword [rax + r12 + 0x40], 0x1c
inc ecx
cmp ecx, dword [r12 + 4]
jb 0x18003732c
jmp 0x18000b494
cmp qword [rbx + 0x30], r14
je 0x1800373be
mov ecx, 0x40
call fcn.180017d38
mov r15, rax
test rax, rax
jne 0x1800373a0
test byte [0x1800b78f1], 4
je 0x180037396
lea ecx, [rax + 0x3f]
lea rdx, [0x18009f0b0]
call fcn.180087008
mov ebx, 8
jmp 0x18000b503
movups xmm0, xmmword [rdi]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdi + 0x10]
mov qword [rax + 0x30], rdi
mov dword [rax + 0x38], 1
movups xmmword [rax + 0x10], xmm1
jmp 0x18000b4a2
mov dword [rbp + 0x40], eax
lea r15, [rbp + 0x40]
mov dword [rsp + 0x7c], 1
jmp 0x18000b4a2
movups xmm0, xmmword [r15]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [r15 + 0x10]
movups xmmword [rdi + 0x10], xmm1
jmp 0x18000b503
mov rcx, r12
call sym.DNSAPI.dll_DnsApiFree
nop
jmp 0x18000b50c
test byte [0x1800b78f1], 4
mov ebx, 0x57
je 0x18000b51a
lea ecx, [rbx - 0x1a]
mov r8d, ebx
lea rdx, [0x18009f0b0]
call fcn.1800876bc
nop
jmp 0x18000b51a
lea rdi, [0x180020ee0]
cmp r9d, 5
jbe 0x1800375f8
lea rcx, [0x1800b7018]
call fcn.180008044
test al, al
je 0x1800375f8
lea rax, [rbp - 0x80]
mov qword [rbp - 0x80], r15
mov qword [rbp + 0xa0], rax
lea rcx, str.ETW0
lea rax, [rbp - 0x68]
mov qword [rbp + 0xa8], 8
mov qword [rbp + 0xb0], rax
lea rax, [rbp - 0x60]
mov qword [rbp + 0xc0], rax
lea rax, [rbp - 0x58]
mov qword [rbp + 0xd0], rax
mov rax, qword [0x1800b79a8]
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x50]
mov qword [rbp + 0xe0], rax
lea rax, [rsp + 0x7c]
mov qword [rbp + 0xf0], rax
lea rax, [rsp + 0x78]
mov qword [rbp + 0x100], rax
lea rax, [rbp - 0x48]
mov qword [rbp + 0x110], rax
movzx eax, word [0x1800a1e34]
mov dword [rsp + 0x6c], eax
movabs rax, 0x400000000000
mov qword [rsp + 0x70], rax
mov rax, qword [0x1800b7020]
mov qword [rbp + 0x80], rax
mov qword [rbp - 0x68], r8
mov qword [rbp + 0xb8], 8
mov qword [rbp - 0x60], r8
mov qword [rbp + 0xc8], 8
mov qword [rbp - 0x58], r8
mov qword [rbp + 0xd8], 8
mov qword [rbp + 0xe8], 8
mov dword [rsp + 0x7c], 3
mov qword [rbp + 0xf8], 4
mov dword [rsp + 0x78], ebx
mov qword [rbp + 0x108], 4
mov qword [rbp - 0x48], 0x1000000
mov qword [rbp + 0x118], 8
mov dword [rsp + 0x68], 0xb000000
movzx eax, word [rax]
mov dword [rbp + 0x88], eax
lea rax, [0x1800a1e3e]
mov qword [rbp + 0x90], rax
lea rax, [0x1800a2368]
sub eax, ecx
mov dword [rbp + 0x8c], 2
cmp qword [0x1800b7040], rdi
mov dword [rbp + 0x98], 0xbc
mov dword [rbp + 0x9c], r15d
mov dword [rsp + 0x60], eax
jne 0x1800375f8
lea rdx, [rbp + 0x80]
call fcn.180085a30
lea rdx, [rsp + 0x68]
test al, al
je 0x1800375cb
lea r9, [rbp + 0x80]
mov byte [rsp + 0x20], al
call fcn.180085c90
jmp 0x1800375f8
mov rcx, qword [0x1800b7038]
lea rax, [rbp + 0x80]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0xa
call qword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventWriteTransfer]
nop dword [rax + rax]
lock xadd dword [0x1800b7fd0], r15d
inc r15d
cmp r15d, 0x400
jne 0x18000b562
xchg dword [0x1800b7fd0], r14d
cmp qword [0x1800b7040], rdi
jne 0x18000b562
mov rcx, qword [0x1800b7048]
call fcn.180020f2c
nop
jmp 0x18000b562