Function at 0x1400d82e0
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.1400dad80
lea rdi, [rsi - 0x170]
lea rbx, [rsi + 0x40]
xor r15d, r15d
test rdi, rdi
cmove rbx, r15
call fcn.14001d830
lea rcx, [rax + 0x20]
mov rdx, rbx
call fcn.140014720
lea rbx, [rsi + 0x38]
test rdi, rdi
cmove rbx, r15
call fcn.1400147e0
lea rcx, [rax + 0x28]
mov rdx, rbx
call fcn.140014720
mov r8d, 0x10b
lea rdx, str.CServiceMain::OnStop
lea rcx, str._s__d_Start
call fcn.140075db0
mov rcx, qword [rsi + 0x60]
test rcx, rcx
je 0x1400d837a
call fcn.140048290
mov qword [rsi + 0x60], r15
mov rcx, qword [rsi + 0x68]
test rcx, rcx
je 0x1400d8399
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax + 0x20]
call qword [case.0x14005eeb3.0]
mov qword [rsi + 0x68], r15
mov rbx, qword [rsi + 0x70]
mov ebp, 0xffffffff
test rbx, rbx
je 0x1400d8402
mov eax, dword [0x1401b26ac]
cmp eax, 1
jne 0x1400d83c2
call fcn.1400a5c30
call fcn.1400a7b60
mov eax, dword [0x1401b26ac]
dec eax
mov dword [0x1401b26ac], eax
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400d83f1
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
nop
mov edx, 0x10
mov rcx, rbx
call fcn.1400f4438
mov qword [rsi + 0x70], r15
mov rcx, qword [rsi + 0x78]
test rcx, rcx
je 0x1400d8414
call fcn.14002aa20
mov qword [rsi + 0x78], r15
mov rdi, qword [rsi + 0x80]
test rdi, rdi
je 0x1400d84f1
lea rax, vtable.CRtkAudioDriverHelper.0
mov qword [rdi], rax
lea rax, vtable.CRtkAudioDriverHelper.1.0
mov qword [rdi + 8], rax
lea rax, vtable.CRtkAudioDriverHelper.2.0
mov qword [rdi + 0x10], rax
call fcn.140014660
lea rcx, [rax + 0x10]
lea rdx, [rdi + 8]
call fcn.140014720
call fcn.14001d830
lea rcx, [rax + 0x20]
mov rdx, rdi
call fcn.140014720
call fcn.140014310
test byte [rax + 0xc8], 0x10
jne 0x1400d8481
cmp dword [rdi + 0x28], 0
jne 0x1400d8481
cmp dword [rdi + 0x2c], 0
je 0x1400d8494
call fcn.14001d770
lea rcx, [rax + 0x18]
lea rdx, [rdi + 0x10]
call fcn.140014720
nop
mov eax, dword [0x1401b26ac]
cmp eax, 1
jne 0x1400d84af
call fcn.1400a5c30
call fcn.1400a7b60
mov eax, dword [0x1401b26ac]
dec eax
mov dword [0x1401b26ac], eax
mov rdx, qword [rdi + 0x18]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x1400d84dd
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
nop
mov edx, 0x30
mov rcx, rdi
call fcn.1400f4438
mov qword [rsi + 0x80], r15
mov rbx, qword [rsi + 0xb0]
test rbx, rbx
je 0x1400d852d
lea rax, vtable.CSurfaceDolbyDSPControl.0
mov qword [rbx], rax
call fcn.140014660
lea rcx, [rax + 0x10]
mov rdx, rbx
call fcn.140014720
nop
mov edx, 0x28
mov rcx, rbx
call fcn.1400f4438
mov qword [rsi + 0xb0], r15
mov rcx, qword [rsi + 0xb8]
test rcx, rcx
je 0x1400d8555
add rcx, 0x58
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [case.0x14005eeb3.0]
mov qword [rsi + 0xb8], r15
mov rcx, qword [rsi + 0xc0]
test rcx, rcx
je 0x1400d8579
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [case.0x14005eeb3.0]
mov qword [rsi + 0xc0], r15
mov r14, qword [rsi + 0xc8]
test r14, r14
je 0x1400d85ef
lea rax, vtable.CRtkApoConditionPresetLoader.0
mov qword [r14], rax
lea rax, vtable.CRtkApoConditionPresetLoader.2.0
mov qword [r14 + 8], rax
lea rax, vtable.CRtkApoConditionPresetLoader.1.0
mov qword [r14 + 0x10], rax
call fcn.1400147e0
lea rcx, [rax + 0x28]
lea rdx, [r14 + 0x10]
call fcn.140014720
call fcn.14001d830
lea rcx, [rax + 0x20]
lea rdx, [r14 + 8]
call fcn.140014720
call fcn.140014660
lea rcx, [rax + 0x10]
mov rdx, r14
call fcn.140014720
nop
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, r14
call fcn.1400f4438
mov qword [rsi + 0xc8], r15
mov r8d, BSTR_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.140075db0