Function at 0x140080a50
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.1400827e0
lea rdi, [rsi - 0x168]
lea rbx, [rsi + 0x40]
xor ebp, ebp
test rdi, rdi
cmove rbx, rbp
call fcn.140011a10
lea rcx, [rax + 0x20]
mov rdx, rbx
call fcn.140009ef0
lea rbx, [rsi + 0x38]
test rdi, rdi
cmove rbx, rbp
call fcn.140009f90
lea rcx, [rax + 0x28]
mov rdx, rbx
call fcn.140009ef0
mov r8d, 0x10d
lea rdx, str.CServiceMain::OnStop
lea rcx, str._s__d_Start
call fcn.1400430e0
mov rcx, qword [rsi + 0x60]
test rcx, rcx
je 0x140080af3
call fcn.140027c60
mov qword [rsi + 0x60], rbp
mov rcx, qword [rsi + 0x68]
test rcx, rcx
je 0x140080b0b
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 0x140080b6a
mov eax, dword [0x140103ee0]
cmp eax, 1
jne 0x140080b34
call fcn.140066b10
call fcn.140068ad0
mov eax, dword [0x140103ee0]
dec eax
mov dword [0x140103ee0], eax
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140080b59
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov edx, 0x10
mov rcx, rbx
call fcn.140091f5c
mov qword [rsi + 0x70], rbp
mov rcx, qword [rsi + 0x78]
test rcx, rcx
je 0x140080b7c
call fcn.140016f60
mov qword [rsi + 0x78], rbp
mov r14, qword [rsi + 0x80]
test r14, r14
je 0x140080c40
lea rax, vtable.CRtkAudioDriverHelper.2.0
mov qword [r14], rax
lea rax, vtable.CRtkAudioDriverHelper.1.0
mov qword [r14 + 8], rax
lea rax, vtable.CRtkAudioDriverHelper.0
mov qword [r14 + 0x10], rax
call fcn.140009e20
lea rcx, [rax + 0x10]
lea rdx, [r14 + 8]
call fcn.140009ef0
call fcn.140011a10
lea rcx, [rax + 0x20]
mov rdx, r14
call fcn.140009ef0
call fcn.140009c60
test byte [rax + 0x50], 0x10
je 0x140080bed
call fcn.140011940
lea rcx, [rax + 0x18]
lea rdx, [r14 + 0x10]
call fcn.140009ef0
nop
mov eax, dword [0x140103ee0]
cmp eax, 1
jne 0x140080c08
call fcn.140066b10
call fcn.140068ad0
mov eax, dword [0x140103ee0]
dec eax
mov dword [0x140103ee0], eax
mov rdx, qword [r14 + 0x18]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140080c2c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov edx, 0x28
mov rcx, r14
call fcn.140091f5c
mov qword [rsi + 0x80], rbp
mov rbx, qword [rsi + 0xb8]
test rbx, rbx
je 0x140080c7c
lea rax, vtable.CSurfaceDolbyDSPControl.0
mov qword [rbx], rax
call fcn.140009e20
lea rcx, [rax + 0x10]
mov rdx, rbx
call fcn.140009ef0
nop
mov edx, 0x28
mov rcx, rbx
call fcn.140091f5c
mov qword [rsi + 0xb8], rbp
mov rcx, qword [rsi + 0xc0]
test rcx, rcx
je 0x140080c9d
add rcx, 0x58
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsi + 0xc0], rbp
mov rcx, qword [rsi + 0xc8]
test rcx, rcx
je 0x140080cba
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsi + 0xc8], rbp
mov r8d, BSTR_UserFree
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.1400430e0