Function at 0x140039d1c
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r12, [0x1400dbec0]
mov rdi, rax
lea rax, [0x14009e368]
lea rdx, [0x1400dbe70]
mov r9d, 0x64
mov r8, rbx
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.14003b1f4
mov ecx, dword [0x1400aac78]
movzx eax, word [0x1400aac7c]
mov r13d, 1
mov dword [rsp + 0x70], ecx
mov rcx, rdi
mov dword [0x1400db7f8], r13d
mov word [rsp + 0x74], ax
jmp 0x140039ded
lea rdx, str.UnregServer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140039e65
lea rdx, str.RegServer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140039e52
lea rdx, str.Service
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140039e4d
mov rcx, rbx
lea rdx, [rsp + 0x70]
call fcn.14002f04c
mov rbx, rax
test rax, rax
jne 0x140039daa
and qword [rsp + 0x38], 0
and dword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
mov edi, 0x20019
lea r8, str.AppID
lea rcx, [rsp + 0x38]
mov r9d, edi
mov rdx, 0xffffffff80000000
call fcn.14003a60c
mov ebx, eax
test eax, eax
je 0x140039eae
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140039e46
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140039f88
mov r8d, r13d
jmp 0x140039e55
xor r8d, r8d
mov edx, r13d
mov rcx, r12
call fcn.14003f4a8
jmp 0x140039f88
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x140039f88
mov rax, qword [0x1400dbec0]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x64]
mov rcx, r12
call qword [rax + 0x40]
mov rcx, r12
call fcn.14003a200
xor r8d, r8d
xor edx, edx
mov rcx, r12
call fcn.14003f384
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x140039f88
mov rbx, qword [rsp + 0x38]
and qword [rsp + 0x58], 0
and dword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
lea r8, str.F6B856DA_AB94_4355_A42F_EC493BEA79DE
lea rcx, [rsp + 0x58]
mov rdx, rbx
mov r9d, edi
call fcn.14003a60c
mov edi, eax
test eax, eax
jne 0x140039f68
lea r9, [rsp + 0x30]
lea r8, [rbp - 0x80]
lea rdx, str.LocalService
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x30], 0x104
call fcn.14003a6e4
xor ecx, ecx
test eax, eax
lea rax, [0x1400db800]
cmove ecx, r13d
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
mov qword [rsp + 0x38], rax
lea rax, [0x140039cfc]
mov dword [0x1400db7f8], ecx
mov qword [rsp + 0x40], rax
test ecx, ecx
je 0x140039f5a
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
neg eax
sbb ecx, ecx
and ecx, dword [0x1400db7f8]
mov dword [0x1400db7f8], ecx
jne 0x140039f62
mov rcx, r12
call fcn.1400395bc
mov edi, dword [0x1400dbf24]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140039f78
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x140039f86
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14005ba20
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rbp
ret