Function at 0x1400c9080
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, rcx
mov r8d, 4
lea rdx, str.CppWindowsService_in_OnStop
call fcn.1400cb910
lea rdi, [rsi - 0x168]
lea rbx, [rsi + 0x40]
xor r15d, r15d
test rdi, rdi
cmove rbx, r15
call fcn.140014b20
lea rcx, [rax + 0x20]
mov rdx, rbx
call fcn.14000bdd0
lea rbx, [rsi + 0x38]
test rdi, rdi
cmove rbx, r15
call fcn.14000be90
lea rcx, [rax + 0x28]
mov rdx, rbx
call fcn.14000bdd0
mov r8d, 0x113
lea rdx, str.CServiceMain::OnStop
lea rcx, str._s__d_Start
call fcn.14006dd20
mov rcx, qword [rsi + 0x60]
test rcx, rcx
je 0x1400c911a
call fcn.14003d530
mov qword [rsi + 0x60], r15
mov rcx, qword [rsi + 0x68]
test rcx, rcx
je 0x1400c9139
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax + 0x20]
call qword [case.0x140050923.0]
mov qword [rsi + 0x68], r15
mov rbx, qword [rsi + 0x70]
mov ebp, 0xffffffff
test rbx, rbx
je 0x1400c91a2
mov eax, dword [0x1401802b8]
cmp eax, 1
jne 0x1400c9162
call fcn.14009d170
call fcn.14009f0a0
mov eax, dword [0x1401802b8]
dec eax
mov dword [0x1401802b8], eax
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400c9191
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140050923.0]
nop
mov edx, 0x10
mov rcx, rbx
call fcn.1400df368
mov qword [rsi + 0x70], r15
mov rcx, qword [rsi + 0x78]
test rcx, rcx
je 0x1400c91b4
call fcn.140021a90
mov qword [rsi + 0x78], r15
mov rdi, qword [rsi + 0x80]
test rdi, rdi
je 0x1400c9291
lea rax, vtable.CRtkAudioDriverHelper.2.0
mov qword [rdi], rax
lea rax, vtable.CRtkAudioDriverHelper.0
mov qword [rdi + 8], rax
lea rax, vtable.CRtkAudioDriverHelper.1.0
mov qword [rdi + 0x10], rax
call fcn.14000bd10
lea rcx, [rax + 0x10]
lea rdx, [rdi + 8]
call fcn.14000bdd0
call fcn.140014b20
lea rcx, [rax + 0x20]
mov rdx, rdi
call fcn.14000bdd0
call fcn.14000bb10
test byte [rax + 0xc8], 0x10
jne 0x1400c9221
cmp dword [rdi + 0x24], 0
jne 0x1400c9221
cmp dword [rdi + 0x28], 0
je 0x1400c9234
call fcn.140014a60
lea rcx, [rax + 0x18]
lea rdx, [rdi + 0x10]
call fcn.14000bdd0
nop
mov eax, dword [0x1401802b8]
cmp eax, 1
jne 0x1400c924f
call fcn.14009d170
call fcn.14009f0a0
mov eax, dword [0x1401802b8]
dec eax
mov dword [0x1401802b8], eax
mov rdx, qword [rdi + 0x18]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x1400c927d
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140050923.0]
nop
mov edx, 0x30
mov rcx, rdi
call fcn.1400df368
mov qword [rsi + 0x80], r15
mov rbx, qword [rsi + 0xb0]
test rbx, rbx
je 0x1400c92cd
lea rax, vtable.CSurfaceDolbyDSPControl.0
mov qword [rbx], rax
call fcn.14000bd10
lea rcx, [rax + 0x10]
mov rdx, rbx
call fcn.14000bdd0
nop
mov edx, 0x28
mov rcx, rbx
call fcn.1400df368
mov qword [rsi + 0xb0], r15
mov rcx, qword [rsi + 0xb8]
test rcx, rcx
je 0x1400c92f5
add rcx, 0x58
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [case.0x140050923.0]
mov qword [rsi + 0xb8], r15
mov rcx, qword [rsi + 0xc0]
test rcx, rcx
je 0x1400c9319
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [case.0x140050923.0]
mov qword [rsi + 0xc0], r15
mov r14, qword [rsi + 0xc8]
test r14, r14
je 0x1400c938f
lea rax, vtable.CRtkBssGen4PresetLoader.2.0
mov qword [r14], rax
lea rax, vtable.CRtkBssGen4PresetLoader.1.0
mov qword [r14 + 8], rax
lea rax, vtable.CRtkBssGen4PresetLoader.0
mov qword [r14 + 0x10], rax
call fcn.14000be90
lea rcx, [rax + 0x28]
lea rdx, [r14 + 0x10]
call fcn.14000bdd0
call fcn.140014b20
lea rcx, [rax + 0x20]
lea rdx, [r14 + 8]
call fcn.14000bdd0
call fcn.14000bd10
lea rcx, [rax + 0x10]
mov rdx, r14
call fcn.14000bdd0
nop
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, r14
call fcn.1400df368
mov qword [rsi + 0xc8], r15
mov r8d, LPSAFEARRAY_UserFree
lea rdx, str.CServiceMain::OnStop
lea rcx, str._s__d_End
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
jmp fcn.14006dd20