Function at 0x140016c70
Capabilities:
Get common file path
Set registry value

Disassembly:
push rbx
mov eax, 0x1a80
call fcn.1400dab40
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14012ce40]
xor rax, rsp
mov qword [rsp + 0x1a78], rax
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x140016ccd
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140016cc4
mov rcx, rax
call fcn.140050830
jmp 0x140016cc6
xor eax, eax
mov qword [0x1401370f0], rax
lea rdx, str.InstallSIService__
mov rcx, rax
call fcn.140050c00
mov word [rsp + 0x50], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.1400b57e0
mov word [rsp + 0x860], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x862]
call fcn.1400b57e0
mov rbx, qword [0x140136ce8]
test rbx, rbx
jne 0x140016d79
lea ecx, [rbx + 0x30]
call fcn.140084d88
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140016d70
mov ecx, 0x20
call fcn.140084d88
nop
test rax, rax
je 0x140016d5f
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0
jmp 0x140016d61
xor eax, eax
mov qword [rbx + 0x28], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x140016d72
xor ebx, ebx
mov qword [0x140136ce8], rbx
mov r9d, 0x104
lea r8, [rsp + 0x860]
lea rdx, str.SERVICE_NAME
mov rcx, rbx
call fcn.14004a950
mov word [rsp + 0x260], 0
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x262]
call fcn.1400b57e0
mov edx, 0x100
lea rcx, [rsp + 0x260]
call fcn.140015c60
mov dword [rsp + 0x38], 1
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x140016e02
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140016df9
mov rcx, rax
call fcn.140050830
jmp 0x140016dfb
xor eax, eax
mov qword [0x1401370f0], rax
mov dword [rsp + 0x20], 1
lea r9, str.BlockSISvc
lea r8, [rsp + 0x260]
lea rdx, str.SaveDwordToHKLM__s__s__d
mov rcx, rax
call fcn.140050c00
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x140016e5b
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140016e52
mov rcx, rax
call fcn.140050830
jmp 0x140016e54
xor eax, eax
mov qword [0x1401370f0], rax
lea r9, str.BlockSISvc
lea r8, [rsp + 0x260]
lea rdx, str.SaveValueToHKLM__s__s
mov rcx, rax
call fcn.140050c00
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x30]
call fcn.140048010
mov rbx, rax
test rax, rax
je 0x140016ec9
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.BlockSISvc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140016f10
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x140016efc
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140016ef3
mov rcx, rax
call fcn.140050830
jmp 0x140016ef5
xor eax, eax
mov qword [0x1401370f0], rax
lea r8, str.SaveValueToHKLM__RegCreateKeyEx_failed
mov edx, 0x3f3
mov rcx, rax
call fcn.140050e40
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [0x1400ec900]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400b2160
lea r8, [rsp + 0x860]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400b2160
mov word [rsp + 0xa70], 0
mov word [rsp + 0x460], 0
xor edx, edx
mov r8d, 0x3fe
lea rcx, [rsp + 0x462]
call fcn.1400b57e0
lea r9, str._install
lea r8, [0x1400f5f70]
mov edx, 0x200
lea rcx, [rsp + 0x460]
call fcn.1400b1010
lea r8, [rsp + 0x460]
mov edx, 0x800
lea rcx, [rsp + 0xa70]
call fcn.1400b2160
lea r8, [rsp + 0xa70]
lea rdx, [rsp + 0x50]
mov ecx, 1
call fcn.14004eb10
mov word [rsp + 0xa70], 0
mov word [rsp + 0x460], 0
xor edx, edx
mov r8d, 0x3fe
lea rcx, [rsp + 0x462]
call fcn.1400b57e0
lea r9, str._stop
lea r8, [0x1400f5f70]
mov edx, 0x200
lea rcx, [rsp + 0x460]
call fcn.1400b1010
lea r8, [rsp + 0x460]
mov edx, 0x800
lea rcx, [rsp + 0xa70]
call fcn.1400b2160
lea r8, [rsp + 0xa70]
lea rdx, [rsp + 0x50]
mov ecx, 1
call fcn.14004eb10
mov word [rsp + 0xa70], 0
mov word [rsp + 0x460], 0
xor edx, edx
mov r8d, 0x3fe
lea rcx, [rsp + 0x462]
call fcn.1400b57e0
lea r9, str._start
lea r8, [0x1400f5f70]
mov edx, 0x200
lea rcx, [rsp + 0x460]
call fcn.1400b1010
lea r8, [rsp + 0x460]
mov edx, 0x800
lea rcx, [rsp + 0xa70]
call fcn.1400b2160
lea r8, [rsp + 0xa70]
lea rdx, [rsp + 0x50]
mov ecx, 1
call fcn.14004eb10
mov rcx, qword [rsp + 0x1a78]
xor rcx, rsp
call fcn.1400b09d0
add rsp, 0x1a80
pop rbx
ret