Function at 0x1400d0660
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 [0x1401ff978]
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.140119b60
lea r13, [0x1401a6f60]
mov qword [rbp + 0x80], r13
lea rax, [0x1401a8720]
mov qword [rbp + 0x90], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x118], rax
mov dword [rsp + 0x30], 2
xor r8d, r8d
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 0x80]
call fcn.140012150
nop
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.140013e20
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, [0x14016dee8]
lea rcx, [rbp + 0x90]
call fcn.14001c5a0
mov rcx, rax
mov edx, r14d
call fcn.140057b70
mov rcx, rax
lea rdx, [0x140171e80]
call fcn.14001c5a0
mov rcx, rax
mov edx, r15d
call fcn.140057b70
mov rcx, rax
lea rdx, str.HIPM
call fcn.14001c5a0
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x80]
call fcn.14000ef80
cmp qword [rax + 0x18], 8
jb 0x1400d07d8
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 0x1400d081d
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.1400120e0
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x80]
call fcn.140119b60
mov qword [rbp - 0x80], r13
lea rax, [0x1401a8720]
mov qword [rbp - 0x70], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x18], rax
mov dword [rsp + 0x30], 6
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x80]
call fcn.140012150
nop
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.140013e20
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, [0x14016dee8]
lea rcx, [rbp - 0x70]
call fcn.14001c5a0
mov rcx, rax
mov edx, r14d
call fcn.140057b70
mov rcx, rax
lea rdx, [0x140171e80]
call fcn.14001c5a0
mov rcx, rax
mov edx, r15d
call fcn.140057b70
mov rcx, rax
lea rdx, str.DIPM
call fcn.14001c5a0
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.14000ef80
cmp qword [rax + 0x18], 8
jb 0x1400d0909
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 0x1400d094e
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.1400120e0
test esi, esi
je 0x1400d09f3
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.14000efb0
nop
lea rbx, vtable.std::ios_base.0
mov qword [rbp + 0x18], rbx
lea rcx, [rbp + 0x18]
call fcn.1400f3630
nop
lea rcx, [rbp + 0x118]
call fcn.14000efb0
nop
mov qword [rbp + 0x118], rbx
lea rcx, [rbp + 0x118]
call fcn.1400f3630
nop
jmp 0x1400d0ade
test ebx, ebx
je 0x1400d0a95
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.14000efb0
nop
lea rbx, vtable.std::ios_base.0
mov qword [rbp + 0x18], rbx
lea rcx, [rbp + 0x18]
call fcn.1400f3630
nop
lea rcx, [rbp + 0x118]
call fcn.14000efb0
nop
mov qword [rbp + 0x118], rbx
lea rcx, [rbp + 0x118]
call fcn.1400f3630
nop
jmp 0x1400d0ade
mov rcx, rdi
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_void____ptr64
nop
lea rcx, [rbp + 0x18]
call fcn.14000efb0
nop
lea rbx, vtable.std::ios_base.0
mov qword [rbp + 0x18], rbx
lea rcx, [rbp + 0x18]
call fcn.1400f3630
nop
lea rcx, [rbp + 0x118]
call fcn.14000efb0
nop
mov qword [rbp + 0x118], rbx
lea rcx, [rbp + 0x118]
call fcn.1400f3630
nop
mov rax, rdi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400f84a0
add rsp, 0x298
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret