Function at 0x140083310
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 [0x140184aa8]
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.1400d5b20
lea r13, [0x140000000]
lea rax, [r13 + 0x145288]
mov qword [rbp + 0x80], rax
lea rax, [r13 + 0x145100]
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.140016960
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.1400168b0
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, str.Controller
lea rcx, [rbp + 0x90]
call fcn.140012d80
mov rcx, rax
mov edx, r14d
call fcn.140083140
mov rcx, rax
lea rdx, [0x140128188]
call fcn.140012d80
mov rcx, rax
mov edx, r15d
call fcn.140083140
mov rcx, rax
lea rdx, str.HIPM
call fcn.140012d80
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x80]
call fcn.140015250
cmp qword [rax + 0x18], 8
jb 0x140083507
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 0x14008354c
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140005b70
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x80]
call fcn.1400d5b20
lea rax, [r13 + 0x145288]
mov qword [rbp - 0x80], rax
lea rax, [r13 + 0x145100]
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.140016960
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.1400168b0
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, str.Controller
lea rcx, [rbp - 0x70]
call fcn.140012d80
mov rcx, rax
mov edx, r14d
call fcn.140083140
mov rcx, rax
lea rdx, [0x140128188]
call fcn.140012d80
mov rcx, rax
mov edx, r15d
call fcn.140083140
mov rcx, rax
lea rdx, str.DIPM
call fcn.140012d80
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140015250
cmp qword [rax + 0x18], 8
jb 0x140083699
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 0x1400836de
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140005b70
test esi, esi
je 0x140083783
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.140015280
nop
lea rbx, vtable.std::ios_base.0
mov qword [rbp + 0x18], rbx
lea rcx, [rbp + 0x18]
call fcn.140099364
nop
lea rcx, [rbp + 0x118]
call fcn.140015280
nop
mov qword [rbp + 0x118], rbx
lea rcx, [rbp + 0x118]
call fcn.140099364
nop
jmp 0x14008386e
test ebx, ebx
je 0x140083825
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.140015280
nop
lea rbx, vtable.std::ios_base.0
mov qword [rbp + 0x18], rbx
lea rcx, [rbp + 0x18]
call fcn.140099364
nop
lea rcx, [rbp + 0x118]
call fcn.140015280
nop
mov qword [rbp + 0x118], rbx
lea rcx, [rbp + 0x118]
call fcn.140099364
nop
jmp 0x14008386e
mov rcx, rdi
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::constructor_void____ptr64
nop
lea rcx, [rbp + 0x18]
call fcn.140015280
nop
lea rbx, vtable.std::ios_base.0
mov qword [rbp + 0x18], rbx
lea rcx, [rbp + 0x18]
call fcn.140099364
nop
lea rcx, [rbp + 0x118]
call fcn.140015280
nop
mov qword [rbp + 0x118], rbx
lea rcx, [rbp + 0x118]
call fcn.140099364
nop
mov rax, rdi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400b48a0
add rsp, 0x298
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret