Function at 0x140005314
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x1b0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400a2238]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rsi, rcx
and qword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
xor edi, edi
mov ebx, pe_nt_image_headers64
mov dword [rsp + 0x38], ebx
and qword [rsp + 0x30], rdi
lea r8, str.CVdsServiceModule::RegisterServer__
lea r15d, [rdi + 0x5e]
mov edx, r15d
lea rcx, [rsp + 0x68]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop dword [rax + rax]
nop
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x60]
call sub.msvcrt.dll_memset
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x1400053db
mov r9d, eax
lea r8, str.CVdsServiceModule::RegisterServer__1___lX
jmp 0x1400055c0
mov rcx, rsi
call fcn.140006360
test eax, eax
jne 0x1400053f8
mov ebx, 0x80004005
lea r8, str.CVdsServiceModule::RegisterServer__2___lX
jmp 0x1400055bd
mov rcx, rsi
call fcn.1400059a8
cmp eax, 1
je 0x14000541d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.CVdsServiceModule::RegisterServer__3___lX
jmp 0x1400055af
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400a2d70]
call qword [sym.imp.ATL.DLL_AtlModuleRegisterServer]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14000544a
mov r9d, eax
lea r8, str.CVdsServiceModule::RegisterServer__4___lX
jmp 0x1400055c0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x78]
mov ecx, 1
call qword [sym.imp.vdsutil.dll_InitializeSecurityDescriptorHelper]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x140005490
lea r8, str.CVdsServiceModule::RegisterServer__5___lX
jmp 0x1400055af
lea r8, [rsp + 0x38]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x78]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_MakeSelfRelativeSD]
nop dword [rax + rax]
test eax, eax
jne 0x1400054c6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.CVdsServiceModule::RegisterServer__6___lX
jmp 0x1400055af
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetSecurityDescriptorLength]
nop dword [rax + rax]
mov esi, eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x2000000
xor r8d, r8d
lea rdx, str.AppIDF290BFB2_1864_45B1_8804_2654194A87E7
mov rcx, 0xffffffff80000000
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x140005517
lea r8, str.CVdsServiceModule::RegisterServer__7___lX
jmp 0x1400055af
mov dword [rsp + 0x28], esi
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, str.LaunchPermission
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x140005554
lea r8, str.CVdsServiceModule::RegisterServer__8___lX
jmp 0x1400055af
mov dword [rsp + 0x28], esi
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, str.AccessPermission
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x140005591
lea r8, str.CVdsServiceModule::RegisterServer__9___lX
jmp 0x1400055af
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x1400055d1
lea r8, str.CVdsServiceModule::RegisterServer__10___lX
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r9d, ebx
xor edx, edx
mov ecx, r15d
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
nop dword [rax + rax]
and qword [rsp + 0x40], 0
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
nop dword [rax + rax]
and qword [rsp + 0x48], 0
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
nop dword [rax + rax]
and qword [rsp + 0x50], 0
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, qword [rsp + 0x58]
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
nop dword [rax + rax]
and qword [rsp + 0x58], 0
test ebx, ebx
jns 0x140005695
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2010009
mov r9d, edi
xor r8d, r8d
xor edx, edx
mov ecx, 0xc2000001
call fcn.1400051b4
call qword [sym.imp.ole32.dll_CoUninitialize]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140054200
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret