Function at 0x1400a1c80
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 [0x1401b4808]
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.1400f2f50
lea r13, [0x14016de58]
mov qword [rbp + 0x80], r13
lea rax, [0x14016e3d8]
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.140018dd0
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.140018f50
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, [0x140145db0]
lea rcx, [rbp + 0x90]
call fcn.140015090
mov rcx, rax
mov edx, r14d
call fcn.1400685b0
mov rcx, rax
lea rdx, [0x140145da8]
call fcn.140015090
mov rcx, rax
mov edx, r15d
call fcn.1400685b0
mov rcx, rax
lea rdx, str.HIPM
call fcn.140015090
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x80]
call fcn.140017770
cmp qword [rax + 0x18], 8
jb 0x1400a1df8
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.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
mov esi, eax
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x1400a1e3d
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140007560
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x80]
call fcn.1400f2f50
mov qword [rbp - 0x80], r13
lea rax, [0x14016e3d8]
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.140018dd0
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.140018f50
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, [0x140145db0]
lea rcx, [rbp - 0x70]
call fcn.140015090
mov rcx, rax
mov edx, r14d
call fcn.1400685b0
mov rcx, rax
lea rdx, [0x140145da8]
call fcn.140015090
mov rcx, rax
mov edx, r15d
call fcn.1400685b0
mov rcx, rax
lea rdx, str.DIPM
call fcn.140015090
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140017770
cmp qword [rax + 0x18], 8
jb 0x1400a1f29
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.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
mov ebx, eax
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x1400a1f6e
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140007560
test esi, esi
je 0x1400a2013
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.HfcDisableService.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.HfcDisableService.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.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::constructor_class_CConsolidatedError_const____ptr64____ptr64
nop
lea rcx, [rsp + 0x50]
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::destructor_void____ptr64
nop
lea rcx, [rbp + 0x18]
call fcn.1400177a0
nop
lea rbx, vtable.std::ios_base.0
mov qword [rbp + 0x18], rbx
lea rcx, [rbp + 0x18]
call fcn.1400b5f74
nop
lea rcx, [rbp + 0x118]
call fcn.1400177a0
nop
mov qword [rbp + 0x118], rbx
lea rcx, [rbp + 0x118]
call fcn.1400b5f74
nop
jmp 0x1400a20fe
test ebx, ebx
je 0x1400a20b5
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.HfcDisableService.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.HfcDisableService.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.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::constructor_class_CConsolidatedError_const____ptr64____ptr64
nop
lea rcx, [rsp + 0x50]
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::destructor_void____ptr64
nop
lea rcx, [rbp + 0x18]
call fcn.1400177a0
nop
lea rbx, vtable.std::ios_base.0
mov qword [rbp + 0x18], rbx
lea rcx, [rbp + 0x18]
call fcn.1400b5f74
nop
lea rcx, [rbp + 0x118]
call fcn.1400177a0
nop
mov qword [rbp + 0x118], rbx
lea rcx, [rbp + 0x118]
call fcn.1400b5f74
nop
jmp 0x1400a20fe
mov rcx, rdi
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::constructor_void____ptr64
nop
lea rcx, [rbp + 0x18]
call fcn.1400177a0
nop
lea rbx, vtable.std::ios_base.0
mov qword [rbp + 0x18], rbx
lea rcx, [rbp + 0x18]
call fcn.1400b5f74
nop
lea rcx, [rbp + 0x118]
call fcn.1400177a0
nop
mov qword [rbp + 0x118], rbx
lea rcx, [rbp + 0x118]
call fcn.1400b5f74
nop
mov rax, rdi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400d1740
add rsp, 0x298
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret