Function at 0x140004ed0
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 [0x14009a238]
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, 0x100
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
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x60]
call sub.msvcrt.dll_memset
xor edx, edx
lea r8d, [rdi + 0x28]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
test eax, eax
jns 0x140004f89
mov r9d, eax
lea r8, str.CVdsServiceModule::RegisterServer__1___lX
jmp 0x140005132
mov rcx, rsi
call fcn.140005cac
test eax, eax
jne 0x140004fa6
mov ebx, 0x80004005
lea r8, str.CVdsServiceModule::RegisterServer__2___lX
jmp 0x14000512f
mov rcx, rsi
call fcn.140005478
cmp eax, 1
je 0x140004fc5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea r8, str.CVdsServiceModule::RegisterServer__3___lX
jmp 0x140005121
xor r8d, r8d
xor edx, edx
lea rcx, [0x14009ad70]
call qword [sym.imp.ATL.DLL_AtlModuleRegisterServer]
mov ebx, eax
test eax, eax
jns 0x140004fec
mov r9d, eax
lea r8, str.CVdsServiceModule::RegisterServer__4___lX
jmp 0x140005132
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]
mov edi, eax
test eax, eax
je 0x14000502c
lea r8, str.CVdsServiceModule::RegisterServer__5___lX
jmp 0x140005121
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]
test eax, eax
jne 0x140005056
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea r8, str.CVdsServiceModule::RegisterServer__6___lX
jmp 0x140005121
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetSecurityDescriptorLength]
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]
mov edi, eax
test eax, eax
je 0x14000509b
lea r8, str.CVdsServiceModule::RegisterServer__7___lX
jmp 0x140005121
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]
mov edi, eax
test eax, eax
je 0x1400050d2
lea r8, str.CVdsServiceModule::RegisterServer__8___lX
jmp 0x140005121
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]
mov edi, eax
test eax, eax
je 0x140005109
lea r8, str.CVdsServiceModule::RegisterServer__9___lX
jmp 0x140005121
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov edi, eax
test eax, eax
je 0x14000513d
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]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
and qword [rsp + 0x40], 0
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
and qword [rsp + 0x48], 0
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
and qword [rsp + 0x50], 0
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [rsp + 0x58]
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
and qword [rsp + 0x58], 0
test ebx, ebx
jns 0x1400051d1
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2010009
mov r9d, edi
xor r8d, r8d
xor edx, edx
mov ecx, 0xc2000001
call fcn.140004d84
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
mov eax, ebx
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14004b730
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret