Function at 0x14006f9f0
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x14011f010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
mov qword [r11 - 0x40], rcx
add rcx, 0x18
call fcn.140071f00
nop
lea r14, [rbx + 8]
lea rsi, [rbx + 0x10]
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.0
mov qword [rbx], rax
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.1.0
mov qword [r14], rax
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.2.0
mov qword [rsi], rax
xor ebp, ebp
mov dword [rbx + 0x20], ebp
mov qword [rbx + 0x28], rbp
mov qword [rbx + 0x38], rbp
mov dword [rbx + 0x40], ebp
call fcn.14000ac00
movzx ecx, byte [rax + 0xb7]
and ecx, 1
mov dword [rbx + 0x20], ecx
call fcn.14000ac00
test dword [rax + 0x12c], 0x400
je 0x14006faf7
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetSystemPowerStatus]
mov r8d, ebp
cmp byte [rsp + 0x48], bpl
setne r8b
mov dword [rbx + 0x40], r8d
lea rdx, str.CRtkAudioDriverHelperForNormalUser::CRtkAudioDriverHelperForNormalUser
lea rcx, str._s_PowerState_d
call fcn.14004c3d0
mov qword [rsp + 0x40], rbx
call fcn.140012d30
mov rdi, rax
lea rcx, [rax + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
lea rcx, [rdi + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x14006fae3
cmp qword [rax + 0x10], rbx
je 0x14006faed
mov rax, qword [rax]
test rax, rax
jne 0x14006fad5
lea rdx, [rsp + 0x40]
call fcn.140006270
lea rcx, [rdi + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
cmp dword [rbx + 0x20], ebp
je 0x14006fba2
call fcn.140070380
mov qword [rsp + 0x40], rsi
call fcn.14000af30
mov rdi, rax
test rsi, rsi
je 0x14006fb52
lea rcx, [rax + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
lea rcx, [rdi + 0x50]
mov rax, qword [rcx]
test rax, rax
je 0x14006fb3e
nop dword [rax]
cmp qword [rax + 0x10], rsi
je 0x14006fb48
mov rax, qword [rax]
test rax, rax
jne 0x14006fb30
lea rdx, [rsp + 0x40]
call fcn.140006270
lea rcx, [rdi + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov qword [rsp + 0x40], r14
call fcn.14000adc0
mov rdi, rax
test r14, r14
je 0x14006fba2
lea rcx, [rax + 0x10]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
lea rcx, [rdi + 0x38]
mov rax, qword [rcx]
test rax, rax
je 0x14006fb8e
nop word [rax + rax]
cmp qword [rax + 0x10], r14
je 0x14006fb98
mov rax, qword [rax]
test rax, rax
jne 0x14006fb80
lea rdx, [rsp + 0x40]
call fcn.140006270
lea rcx, [rdi + 0x10]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov qword [rbx + 0x30], rbp
call fcn.14000ac00
test byte [rax + 0x148], 4
je 0x14006fbd5
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x1400701c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx + 0x50], rax
call fcn.14000ac00
test byte [rax + 0x40], 1
jne 0x14006fbfc
call fcn.14000ac00
test byte [rax + 0x40], 8
jne 0x14006fbfc
call fcn.14000ac00
test dword [rax + 0x17c], 0x1000
je 0x14006fc29
mov ecx, 0x20
call fcn.1400a464c
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov rcx, rax
call fcn.140096110
nop
mov qword [rbx + 0x28], rax
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a4020
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret