Function at 0x140057df0
Capabilities:
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov rsi, rcx
mov r8d, 4
lea rdx, str.CppWindowsService_in_OnStop
call fcn.140059910
lea rdi, [rsi - 0x130]
lea rbx, [rsi + 0x40]
xor r13d, r13d
test rdi, rdi
cmove rbx, r13
call fcn.14000eef0
lea rcx, [rax + 0x20]
mov rdx, rbx
call fcn.140008520
lea rbx, [rsi + 0x38]
test rdi, rdi
cmove rbx, r13
call fcn.1400085d0
lea rcx, [rax + 0x28]
mov rdx, rbx
call fcn.140008520
mov r8d, 0xfc
lea rdx, str.CServiceMain::OnStop
lea rcx, str._s__d_Start
call fcn.140026f80
mov rbx, qword [rsi + 0x50]
or edi, 0xffffffff
test rbx, rbx
je 0x140057fcc
lea rax, vtable.CAudioDeviceMuteStateHandler.4.0
mov qword [rbx], rax
lea rax, vtable.CAudioDeviceMuteStateHandler.3.0
mov qword [rbx + 8], rax
lea rax, vtable.CAudioDeviceMuteStateHandler.2.0
mov qword [rbx + 0x10], rax
lea rax, vtable.CAudioDeviceMuteStateHandler.1.0
mov qword [rbx + 0x18], rax
lea rax, vtable.CAudioDeviceMuteStateHandler.0
mov qword [rbx + 0x20], rax
cmp dword [rbx + 0x34], r13d
jne 0x140057ed8
cmp dword [rbx + 0x38], r13d
je 0x140057eff
call fcn.14000edf0
lea rcx, [rax + 0x88]
lea rdx, [rbx + 8]
call fcn.140008520
call fcn.14000ecd0
lea rcx, [rax + 0x10]
lea rdx, [rbx + 0x18]
call fcn.140008520
cmp dword [rbx + 0x3c], 0
jne 0x140057f0b
cmp dword [rbx + 0x40], 0
je 0x140057f56
call fcn.14000edf0
lea rcx, [rax + 0x88]
lea rdx, [rbx + 8]
call fcn.140008520
call fcn.14000ecd0
lea rcx, [rax + 0x10]
lea rdx, [rbx + 0x18]
call fcn.140008520
call fcn.1400085d0
lea rcx, [rax + 0x28]
lea rdx, [rbx + 0x20]
call fcn.140008520
call fcn.1400083c0
lea rcx, [rax + 0x18]
lea rdx, [rbx + 0x10]
call fcn.140008520
cmp dword [rbx + 0x30], 0
jne 0x140057f68
cmp dword [rbx + 0x4c], 0
jne 0x140057f68
cmp dword [rbx + 0x50], 0
je 0x140057f7a
call fcn.14000eef0
lea rcx, [rax + 0x20]
mov rdx, rbx
call fcn.140008520
nop
mov eax, dword [0x1400bea58]
cmp eax, 1
jne 0x140057f95
call fcn.140046870
call fcn.1400482a0
mov eax, dword [0x1400bea58]
dec eax
mov dword [0x1400bea58], eax
mov rdx, qword [rbx + 0x28]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140057fbb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov edx, 0x60
mov rcx, rbx
call fcn.14006624c
mov qword [rsi + 0x50], r13
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x140057fe4
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x20]
mov qword [rsi + 0x58], r13
mov rbx, qword [rsi + 0x60]
test rbx, rbx
je 0x14005803e
mov eax, dword [0x1400bea58]
cmp eax, 1
jne 0x140058008
call fcn.140046870
call fcn.1400482a0
mov eax, dword [0x1400bea58]
dec eax
mov dword [0x1400bea58], eax
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005802d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov edx, 0x10
mov rcx, rbx
call fcn.14006624c
mov qword [rsi + 0x60], r13
mov rcx, qword [rsi + 0x68]
test rcx, rcx
je 0x140058050
call fcn.1400129f0
mov qword [rsi + 0x68], r13
mov rbx, qword [rsi + 0x70]
test rbx, rbx
je 0x14005810c
lea rax, vtable.CRtkAudioDriverHelper.1.0
mov qword [rbx], rax
lea rax, vtable.CRtkAudioDriverHelper.2.0
mov qword [rbx + 8], rax
lea rax, vtable.CRtkAudioDriverHelper.0
mov qword [rbx + 0x10], rax
cmp dword [rbx + 0x20], 0
je 0x140058097
call fcn.14000edf0
lea rcx, [rax + 0x88]
mov rdx, rbx
call fcn.140008520
call fcn.1400083c0
lea rcx, [rax + 0x18]
lea rdx, [rbx + 0x10]
call fcn.140008520
call fcn.14000eef0
lea rcx, [rax + 0x20]
lea rdx, [rbx + 8]
call fcn.140008520
nop
mov eax, dword [0x1400bea58]
cmp eax, 1
jne 0x1400580d7
call fcn.140046870
call fcn.1400482a0
mov eax, dword [0x1400bea58]
dec eax
mov dword [0x1400bea58], eax
mov rdx, qword [rbx + 0x18]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400580fb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov edx, 0x28
mov rcx, rbx
call fcn.14006624c
mov qword [rsi + 0x70], r13
mov rbx, qword [rsi + 0xa8]
test rbx, rbx
je 0x14005814b
lea rax, vtable.CSurfaceDolbyDSPControl.0
mov qword [rbx], rax
call fcn.14000edf0
lea rcx, [rax + 0x88]
mov rdx, rbx
call fcn.140008520
nop
mov edx, 0x28
mov rcx, rbx
call fcn.14006624c
mov qword [rsi + 0xa8], r13
mov r8d, 0x106
lea rdx, str.CServiceMain::OnStop
lea rcx, str._s__d_End
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp fcn.140026f80