Function at 0x140023ed0
Capabilities:
Create process on windows
Get common file path
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x14007d038]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov r8d, 4
lea rdx, str.CppWindowsService_in_OnStop
mov rbx, rcx
call fcn.1400246f0
lea rcx, str.Stop_FMAPOCTL_service_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edx, edx
mov byte [0x14007ff2a], 1
lea rcx, [0x140067a40]
lea r8d, [rdx + 1]
call qword [sym.imp.RPCRT4.dll_RpcServerUnregisterIf]
mov edx, eax
lea rcx, str.RpcServerUnregisterIf_returned:_0x_x_n
call fcn.1400231f0
mov rdx, qword [0x1400811f8]
lea rcx, [0x140067a40]
xor r8d, r8d
call qword [sym.imp.RPCRT4.dll_RpcEpUnregister]
mov edx, eax
lea rcx, str.RpcEpUnregister_returned:_0x_x_n
call fcn.1400231f0
xor edi, edi
cmp qword [0x1400811f8], rdi
je 0x140023f89
lea rcx, [0x1400811f8]
call qword [sym.imp.RPCRT4.dll_RpcBindingVectorFree]
mov qword [0x1400811f8], rdi
mov rbx, qword [rbx + 0x58]
test rbx, rbx
je 0x140024131
mov rcx, qword [rbx + 0x568]
mov byte [rbx + 0x448], 1
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x570]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea r9, str.AudioMonitorCloseAll
mov dword [rsp + 0x20], 1
lea r8, str.SOFTWAREFortemedia
mov rcx, rbx
call fcn.14001b050
xor edx, edx
lea rcx, [rbp + 0x210]
mov r8d, 0x200
call fcn.140028230
xor edx, edx
lea rcx, [rbp + 0x10]
mov r8d, 0x200
call fcn.140028230
mov edx, 0x100
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r9, [rbp + 0x10]
mov edx, 0x200
lea r8, str._sFMAPOHover.exe__mngr_close
lea rcx, [rbp + 0x210]
call fcn.140002050
xor edx, edx
lea rcx, [rbp - 0x5c]
lea r8d, [rdx + 0x64]
call fcn.140028230
xor eax, eax
mov dword [rbp - 0x60], 0x68
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rsp + 0x60]
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140024131
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x80]
mov r9d, 8
mov qword [rsp + 0x68], rdi
lea r8, [rsp + 0x68]
mov dword [rbp - 0x80], 8
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0xb]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140024131
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140024131
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x50], rax
lea r8, [rbp + 0x210]
lea rax, [rbp - 0x60]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor edx, edx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.140024cf0
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret