Function at 0x1400d3150
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x198]
sub rsp, 0x298
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1401eb978]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r15d, r9d
mov r14d, r8d
mov rbx, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
movzx eax, byte [rbp + 0x200]
mov dword [rsp + 0x48], eax
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x80]
call fcn.14010ef60
lea r13, [0x140000000]
lea rax, [r13 + 0x196890]
mov qword [rbp + 0x80], rax
lea rax, [r13 + 0x197a28]
mov qword [rbp + 0x90], rax
mov dword [rsp + 0x30], 2
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x118], rax
mov dword [rbp + 0x114], 0x80
mov qword [rbp + 0x88], r12
xor r8d, r8d
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 0x118]
call fcn.140012060
nop
lea rax, [rbp + 0x90]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx + 0x90], rax
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x8c], edx
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx + 0x80], rax
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rbp + rcx + 0x7c], edx
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx + 0x80], rax
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x7c], edx
lea rax, [rbp + 0x98]
mov qword [rsp + 0x38], rax
lea rcx, [rbp + 0x98]
call fcn.140011fb0
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + 0x98], rax
mov qword [rbp + 0x100], r12
mov dword [rbp + 0x108], r12d
lea rdx, [0x1401603d8]
lea rcx, [rbp + 0x90]
call fcn.14001ae90
mov rcx, rax
mov edx, r14d
call fcn.14005c040
mov rcx, rax
lea rdx, [0x140164180]
call fcn.14001ae90
mov rcx, rax
mov edx, r15d
call fcn.14005c040
mov rcx, rax
lea rdx, str.HIPM
call fcn.14001ae90
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x80]
call fcn.14000c7a0
cmp qword [rax + 0x18], 8
jb 0x1400d3347
mov rax, qword [rax]
mov dword [rsp + 0x28], 4
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, 4
mov r8, rax
xor edx, edx
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov esi, eax
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x1400d338c
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.14000fcf0
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x80]
call fcn.14010ef60
lea rax, [r13 + 0x196890]
mov qword [rbp - 0x80], rax
lea rax, [r13 + 0x197a28]
mov qword [rbp - 0x70], rax
mov dword [rsp + 0x30], 0x22
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x14], 0x80
mov qword [rbp - 0x78], r12
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x18]
call fcn.140012060
nop
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x74], edx
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x7c], edx
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x7c], edx
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
lea rcx, [rbp - 0x68]
call fcn.140011fb0
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp - 0x68], rax
mov qword [rbp], r12
mov dword [rbp + 8], r12d
lea rdx, [0x1401603d8]
lea rcx, [rbp - 0x70]
call fcn.14001ae90
mov rcx, rax
mov edx, r14d
call fcn.14005c040
mov rcx, rax
lea rdx, [0x140164180]
call fcn.14001ae90
mov rcx, rax
mov edx, r15d
call fcn.14005c040
mov rcx, rax
lea rdx, str.DIPM
call fcn.14001ae90
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.14000c7a0
cmp qword [rax + 0x18], 8
jb 0x1400d34d9
mov rax, qword [rax]
mov dword [rsp + 0x28], 4
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, 4
mov r8, rax
xor edx, edx
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov ebx, eax
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x1400d351e
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.14000fcf0
test esi, esi
je 0x1400d35c3
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x50]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_void____ptr64
nop
lea r9, str.Hipm_registry_set_failed
mov r8d, esi
mov edx, 1
lea rcx, [rsp + 0x50]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::SetError_enum_CConsolidatedError::ISDI2_ERROR_TYPE__unsigned_long_int__char_const____ptr64____ptr64
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_class_CConsolidatedError_const____ptr64____ptr64
nop
lea rcx, [rsp + 0x50]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::destructor_void____ptr64
nop
lea rcx, [rbp + 0x18]
call fcn.14000c7d0
nop
lea rbx, vtable.std::ios_base.0
mov qword [rbp + 0x18], rbx
lea rcx, [rbp + 0x18]
call fcn.1400e8708
nop
lea rcx, [rbp + 0x118]
call fcn.14000c7d0
nop
mov qword [rbp + 0x118], rbx
lea rcx, [rbp + 0x118]
call fcn.1400e8708
nop
jmp 0x1400d36ae
test ebx, ebx
je 0x1400d3665
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x50]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_void____ptr64
nop
lea r9, str.Dipm_registry_set_failed
mov r8d, ebx
mov edx, 1
lea rcx, [rsp + 0x50]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::SetError_enum_CConsolidatedError::ISDI2_ERROR_TYPE__unsigned_long_int__char_const____ptr64____ptr64
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_class_CConsolidatedError_const____ptr64____ptr64
nop
lea rcx, [rsp + 0x50]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::destructor_void____ptr64
nop
lea rcx, [rbp + 0x18]
call fcn.14000c7d0
nop
lea rbx, vtable.std::ios_base.0
mov qword [rbp + 0x18], rbx
lea rcx, [rbp + 0x18]
call fcn.1400e8708
nop
lea rcx, [rbp + 0x118]
call fcn.14000c7d0
nop
mov qword [rbp + 0x118], rbx
lea rcx, [rbp + 0x118]
call fcn.1400e8708
nop
jmp 0x1400d36ae
mov rcx, rdi
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_void____ptr64
nop
lea rcx, [rbp + 0x18]
call fcn.14000c7d0
nop
lea rbx, vtable.std::ios_base.0
mov qword [rbp + 0x18], rbx
lea rcx, [rbp + 0x18]
call fcn.1400e8708
nop
lea rcx, [rbp + 0x118]
call fcn.14000c7d0
nop
mov qword [rbp + 0x118], rbx
lea rcx, [rbp + 0x118]
call fcn.1400e8708
nop
mov rax, rdi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400ede70
add rsp, 0x298
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret