Function at 0x140097c20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
add rcx, 0x20
call fcn.14009c120
nop
lea r14, [rbx + 8]
lea rdi, [rbx + 0x10]
lea rsi, [rbx + 0x18]
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.3.0
mov qword [rbx], rax
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.0
mov qword [r14], rax
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.1.0
mov qword [rdi], rax
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.2.0
mov qword [rsi], rax
xor r15d, r15d
mov qword [rbx + 0x28], r15
mov qword [rbx + 0x30], r15
mov qword [rbx + 0x40], r15
mov dword [rbx + 0x48], r15d
call fcn.14000bb10
movzx ecx, byte [rax + 0x12f]
and ecx, 1
mov dword [rbx + 0x28], ecx
call fcn.14000bb10
test dword [rax + 0x2ec], 0x100000
je 0x140097d42
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetSystemPowerStatus]
mov r8d, r15d
cmp byte [rsp + 0x40], r15b
setne r8b
mov dword [rbx + 0x2c], r8d
lea rdx, str.CRtkAudioDriverHelperForNormalUser::CRtkAudioDriverHelperForNormalUser
lea rcx, str._s_PowerState_d
call fcn.14006dd20
mov qword [rsp + 0x38], rdi
call fcn.140039360
mov rbp, rax
test rdi, rdi
je 0x140097d42
lea rcx, [rax + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
lea rcx, [rbp + 0x30]
mov rax, qword [rcx]
test rax, rax
je 0x140097d2e
nop dword [rax]
cmp qword [rax + 0x10], rdi
je 0x140097d38
mov rax, qword [rax]
test rax, rax
jne 0x140097d20
lea rdx, [rsp + 0x38]
call fcn.140006d60
lea rcx, [rbp + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
call fcn.14000bb10
test dword [rax + 0x1a4], 0x400
je 0x140097dc6
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetSystemPowerStatus]
mov r8d, r15d
cmp byte [rsp + 0x40], r15b
setne r8b
mov dword [rbx + 0x48], r8d
lea rdx, str.CRtkAudioDriverHelperForNormalUser::CRtkAudioDriverHelperForNormalUser
lea rcx, str._s_PowerState_d
call fcn.14006dd20
mov qword [rsp + 0x38], rbx
call fcn.140014b20
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 0x140097db2
cmp qword [rax + 0x10], rbx
je 0x140097dbc
mov rax, qword [rax]
test rax, rax
jne 0x140097da4
lea rdx, [rsp + 0x38]
call fcn.140006d60
lea rcx, [rdi + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
cmp dword [rbx + 0x28], r15d
je 0x140097e72
call fcn.140098820
mov qword [rsp + 0x38], rsi
call fcn.14000be90
mov rdi, rax
test rsi, rsi
je 0x140097e22
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 0x140097e0e
nop dword [rax]
cmp qword [rax + 0x10], rsi
je 0x140097e18
mov rax, qword [rax]
test rax, rax
jne 0x140097e00
lea rdx, [rsp + 0x38]
call fcn.140006d60
lea rcx, [rdi + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov qword [rsp + 0x38], r14
call fcn.14000bd10
mov rdi, rax
test r14, r14
je 0x140097e72
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 0x140097e5e
nop word [rax + rax]
cmp qword [rax + 0x10], r14
je 0x140097e68
mov rax, qword [rax]
test rax, rax
jne 0x140097e50
lea rdx, [rsp + 0x38]
call fcn.140006d60
lea rcx, [rdi + 0x10]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov qword [rbx + 0x38], r15
call fcn.14000bb10
test byte [rax + 0x1c0], 4
je 0x140097ea6
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
mov r9, rbx
lea r8, [0x140098660]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx + 0x58], rax
call fcn.14000bb10
test byte [rax + 0xb8], 1
jne 0x140097ed3
call fcn.14000bb10
test byte [rax + 0xb8], 8
jne 0x140097ed3
call fcn.14000bb10
test dword [rax + 0x1f4], 0x1000
je 0x140097ef9
mov ecx, 0x20
call fcn.1400df6d0
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rcx, rax
call fcn.1400cfc10
nop
mov qword [rbx + 0x30], rax
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400df340
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret