Function at 0x1400907f0
Capabilities:
Print debug messages

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rsi, rcx
mov r8d, 4
lea rdx, str.CppWindowsService_in_OnStop
call fcn.140092780
lea rdi, [rsi - 0x168]
lea rbx, [rsi + 0x40]
xor ebp, ebp
test rdi, rdi
cmove rbx, rbp
call fcn.140012d30
lea rcx, [rax + 0x20]
mov rdx, rbx
call fcn.14000ae90
lea rbx, [rsi + 0x38]
test rdi, rdi
cmove rbx, rbp
call fcn.14000af30
lea rcx, [rax + 0x28]
mov rdx, rbx
call fcn.14000ae90
mov r8d, 0x10d
lea rdx, str.CServiceMain::OnStop
lea rcx, str._s__d_Start
call fcn.14004c3d0
mov rcx, qword [rsi + 0x60]
test rcx, rcx
je 0x140090893
call fcn.14002d550
mov qword [rsi + 0x60], rbp
mov rcx, qword [rsi + 0x68]
test rcx, rcx
je 0x1400908ab
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x20]
mov qword [rsi + 0x68], rbp
mov rbx, qword [rsi + 0x70]
mov edi, 0xffffffff
test rbx, rbx
je 0x14009090a
mov eax, dword [0x140125ca8]
cmp eax, 1
jne 0x1400908d4
call fcn.140072dd0
call fcn.140074f40
mov eax, dword [0x140125ca8]
dec eax
mov dword [0x140125ca8], eax
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400908f9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov edx, 0x10
mov rcx, rbx
call fcn.1400a404c
mov qword [rsi + 0x70], rbp
mov rcx, qword [rsi + 0x78]
test rcx, rcx
je 0x14009091c
call fcn.14001d580
mov qword [rsi + 0x78], rbp
mov r14, qword [rsi + 0x80]
test r14, r14
je 0x1400909e0
lea rax, vtable.CRtkAudioDriverHelper.2.0
mov qword [r14], rax
lea rax, vtable.CRtkAudioDriverHelper.0
mov qword [r14 + 8], rax
lea rax, vtable.CRtkAudioDriverHelper.1.0
mov qword [r14 + 0x10], rax
call fcn.14000adc0
lea rcx, [rax + 0x10]
lea rdx, [r14 + 8]
call fcn.14000ae90
call fcn.140012d30
lea rcx, [rax + 0x20]
mov rdx, r14
call fcn.14000ae90
call fcn.14000ac00
test byte [rax + 0x50], 0x10
je 0x14009098d
call fcn.140012c60
lea rcx, [rax + 0x18]
lea rdx, [r14 + 0x10]
call fcn.14000ae90
nop
mov eax, dword [0x140125ca8]
cmp eax, 1
jne 0x1400909a8
call fcn.140072dd0
call fcn.140074f40
mov eax, dword [0x140125ca8]
dec eax
mov dword [0x140125ca8], eax
mov rdx, qword [r14 + 0x18]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400909cc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov edx, 0x28
mov rcx, r14
call fcn.1400a404c
mov qword [rsi + 0x80], rbp
mov rbx, qword [rsi + 0xb0]
test rbx, rbx
je 0x140090a1c
lea rax, vtable.CSurfaceDolbyDSPControl.0
mov qword [rbx], rax
call fcn.14000adc0
lea rcx, [rax + 0x10]
mov rdx, rbx
call fcn.14000ae90
nop
mov edx, 0x28
mov rcx, rbx
call fcn.1400a404c
mov qword [rsi + 0xb0], rbp
mov rcx, qword [rsi + 0xb8]
test rcx, rcx
je 0x140090a3d
add rcx, 0x58
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsi + 0xb8], rbp
mov rcx, qword [rsi + 0xc0]
test rcx, rcx
je 0x140090a5a
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsi + 0xc0], rbp
mov rdi, qword [rsi + 0xc8]
test rdi, rdi
je 0x140090ab3
lea rax, vtable.CRtkBssGen4PresetLoader.1.0
mov qword [rdi], rax
lea rax, vtable.CRtkBssGen4PresetLoader.0
mov qword [rdi + 8], rax
call fcn.140012d30
lea rcx, [rax + 0x20]
lea rdx, [rdi + 8]
call fcn.14000ae90
call fcn.14000adc0
lea rcx, [rax + 0x10]
mov rdx, rdi
call fcn.14000ae90
nop
mov edx, 0x10
mov rcx, rdi
call fcn.1400a404c
mov qword [rsi + 0xc8], rbp
mov r14, qword [rsi + 0xd0]
test r14, r14
je 0x140090ba8
lea rax, vtable.CAudioModuleAPI.1.0
mov qword [r14], rax
lea rax, vtable.CAudioModuleAPI.0
mov qword [r14 + 0x20], rax
mov rcx, qword [r14 + 0xd8]
test rcx, rcx
je 0x140090af1
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [r14 + 0xd8], rbp
mov rcx, qword [r14 + 0xe8]
test rcx, rcx
je 0x140090b0a
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [r14 + 0xe8], rbp
mov rcx, qword [r14 + 0xe0]
test rcx, rcx
je 0x140090b23
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [r14 + 0xe0], rbp
lea rcx, [r14 + 0x58]
call fcn.140015380
lea rcx, [r14 + 0x88]
call fcn.140018e80
call fcn.14000adc0
lea rcx, [rax + 0x10]
lea rdx, [r14 + 0x20]
call fcn.14000ae90
lea rcx, [r14 + 0x150]
call fcn.14000b9a0
lea rcx, [r14 + 0x120]
call fcn.14000b9a0
lea rcx, [r14 + 0xf0]
call fcn.140019870
lea rcx, [r14 + 0x88]
call fcn.140018fd0
lea rcx, [r14 + 0x58]
call fcn.140015380
lea rcx, [r14 + 0x28]
cmp dword [rcx + 0x28], 0
jne 0x140090b94
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_DeleteCriticalSection]
nop
mov edx, 0x180
mov rcx, r14
call fcn.1400a404c
mov qword [rsi + 0xd0], rbp
mov r8d, BSTR_UserUnmarshal
lea rdx, str.CServiceMain::OnStop
lea rcx, str._s__d_End
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
jmp fcn.14004c3d0