Function at 0x14005f600
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 [0x1400f5010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
mov qword [r11 - 0x40], rcx
add rcx, 0x18
call fcn.140061890
nop
lea r14, [rbx + 8]
lea rsi, [rbx + 0x10]
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.2.0
mov qword [rbx], rax
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.1.0
mov qword [r14], rax
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.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.140009760
movzx ecx, byte [rax + 0xb7]
and ecx, 1
mov dword [rbx + 0x20], ecx
call fcn.140009760
test dword [rax + 0x12c], 0x400
je 0x14005f707
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.14003f0e0
mov qword [rsp + 0x40], rbx
call fcn.140011360
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 0x14005f6f3
cmp qword [rax + 0x10], rbx
je 0x14005f6fd
mov rax, qword [rax]
test rax, rax
jne 0x14005f6e5
lea rdx, [rsp + 0x40]
call fcn.140005350
lea rcx, [rdi + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
cmp dword [rbx + 0x20], ebp
je 0x14005f7b2
call fcn.14005fda0
mov qword [rsp + 0x40], rsi
call fcn.140009a90
mov rdi, rax
test rsi, rsi
je 0x14005f762
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 0x14005f74e
nop dword [rax]
cmp qword [rax + 0x10], rsi
je 0x14005f758
mov rax, qword [rax]
test rax, rax
jne 0x14005f740
lea rdx, [rsp + 0x40]
call fcn.140005350
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.140009920
mov rdi, rax
test r14, r14
je 0x14005f7b2
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 0x14005f79e
nop word [rax + rax]
cmp qword [rax + 0x10], r14
je 0x14005f7a8
mov rax, qword [rax]
test rax, rax
jne 0x14005f790
lea rdx, [rsp + 0x40]
call fcn.140005350
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.140009760
test byte [rax + 0x148], 4
je 0x14005f7e5
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x14005fbe0]
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.140009760
test byte [rax + 0x40], 1
jne 0x14005f80c
call fcn.140009760
test byte [rax + 0x40], 8
jne 0x14005f80c
call fcn.140009760
test dword [rax + 0x17c], 0x1000
je 0x14005f839
mov ecx, 0x20
call fcn.14008b40c
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.14007ee30
nop
mov qword [rbx + 0x28], rax
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008ade0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret