Function at 0x1400064cc
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1b8]
sub rsp, 0x2a0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14009a238]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, r8
mov rbx, rcx
xor r9d, r9d
xor r8d, r8d
lea r14d, [r9 + 1]
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapSetInformation]
test eax, eax
jne 0x140006548
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
lea r8, str._tMain__1__error_ld
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x1400066ea
mov dword [rsp + 0x30], r14d
mov esi, 4
mov r8d, esi
lea rdx, [rsp + 0x30]
lea ecx, [rsi - 2]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
mov dword [rsp + 0x34], r14d
mov r8d, esi
lea rdx, [rsp + 0x34]
lea ecx, [rsi + 5]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
mov dword [rsp + 0x38], 3
mov r8d, esi
lea rdx, [rsp + 0x38]
lea ecx, [rsi + 6]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
lea ecx, [rsi + 4]
mov dword [rsp + 0x3c], ecx
mov r8d, esi
lea rdx, [rsp + 0x3c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
mov dword [rsp + 0x40], 2
mov r8d, esi
lea rdx, [rsp + 0x40]
lea ecx, [rsi + 9]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
mov r8, rbx
lea rsi, [0x14009af10]
mov rcx, rsi
call fcn.140005214
mov eax, dword [0x1400543a0]
mov dword [rbp - 0x80], eax
movzx eax, word [0x1400543a4]
mov word [rbp - 0x7c], ax
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.140004cdc
mov rbx, rax
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
test rbx, rbx
je 0x14000666c
lea rdx, str.UnregServer
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14000672d
lea rdx, str.Service
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140006711
mov r8d, 2
lea rdx, [0x1400543d0]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
mov ecx, dword [0x14009af7c]
test eax, eax
cmove ecx, r14d
mov dword [0x14009af7c], ecx
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.140004cdc
mov rbx, rax
test rax, rax
jne 0x140006600
lea r8, str.CVdsServiceModule::Start__
mov edx, 0x5e
lea rcx, [rsp + 0x48]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop
mov qword [rsp + 0x58], rsi
lea rax, [0x140005e80]
mov qword [rsp + 0x60], rax
and qword [rsp + 0x68], 0
and qword [rsp + 0x70], 0
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_service_core_l1_1_0.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x1400066d9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
lea r8, str.Error_code_for_StartServiceCtrlDispatcher:__u._n
mov edx, 0x100
lea rcx, [rbp - 0x70]
call fcn.14000a460
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
mov eax, dword [0x14009af5c]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14004b730
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov rcx, rsi
call fcn.140004ed0
mov ebx, eax
test eax, eax
js 0x1400067c2
mov edx, 0x66
jmp 0x1400067b7
lea r8, str.CVdsServiceModule::UnregisterServer__
mov edx, 0x5e
lea rcx, [rsp + 0x48]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
test eax, eax
jns 0x140006762
lea rcx, [rsp + 0x48]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
jmp 0x1400067ae
mov rcx, rsi
call fcn.140005cac
test eax, eax
jne 0x140006787
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
mov ebx, 0x80004005
jmp 0x1400067c2
xor r8d, r8d
mov edx, r14d
lea rcx, [0x14009ad70]
call qword [sym.imp.ATL.DLL_AtlModuleUnregisterServerEx]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
xor ebx, ebx
test ebx, ebx
js 0x1400067c2
mov edx, 0x67
xor r8d, r8d
mov rcx, rsi
call fcn.1400053d0
mov eax, ebx
jmp 0x1400066ea