Function at 0x140063950
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 [0x1400ff010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
mov qword [r11 - 0x40], rcx
add rcx, 0x18
call fcn.140065c40
nop
lea r14, [rbx + 8]
lea rsi, [rbx + 0x10]
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.0
mov qword [rbx], rax
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.2.0
mov qword [r14], rax
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.1.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.140009c60
movzx ecx, byte [rax + 0xb7]
and ecx, 1
mov dword [rbx + 0x20], ecx
call fcn.140009c60
test dword [rax + 0x12c], 0x400
je 0x140063a57
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.1400430e0
mov qword [rsp + 0x40], rbx
call fcn.140011a10
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 0x140063a43
cmp qword [rax + 0x10], rbx
je 0x140063a4d
mov rax, qword [rax]
test rax, rax
jne 0x140063a35
lea rdx, [rsp + 0x40]
call fcn.140005800
lea rcx, [rdi + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
cmp dword [rbx + 0x20], ebp
je 0x140063b02
call fcn.140064110
mov qword [rsp + 0x40], rsi
call fcn.140009f90
mov rdi, rax
test rsi, rsi
je 0x140063ab2
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 0x140063a9e
nop dword [rax]
cmp qword [rax + 0x10], rsi
je 0x140063aa8
mov rax, qword [rax]
test rax, rax
jne 0x140063a90
lea rdx, [rsp + 0x40]
call fcn.140005800
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.140009e20
mov rdi, rax
test r14, r14
je 0x140063b02
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 0x140063aee
nop word [rax + rax]
cmp qword [rax + 0x10], r14
je 0x140063af8
mov rax, qword [rax]
test rax, rax
jne 0x140063ae0
lea rdx, [rsp + 0x40]
call fcn.140005800
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.140009c60
test byte [rax + 0x148], 4
je 0x140063b35
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x140063f50]
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.140009c60
test byte [rax + 0x40], 1
jne 0x140063b5c
call fcn.140009c60
test byte [rax + 0x40], 8
jne 0x140063b5c
call fcn.140009c60
test dword [rax + 0x17c], 0x1000
je 0x140063b89
mov ecx, 0x20
call fcn.14009255c
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.140085bf0
nop
mov qword [rbx + 0x28], rax
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140091f30
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret