Function at 0x140064390
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x378
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov rax, qword [0x140322b20]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov dword [rsp + 0x358], 4
mov dword [rsp + 0x354], 0
mov dword [rsp + 0x350], 4
mov dword [rsp + 0x34], 0
mov rcx, qword [rsp + 0x3a0]
call fcn.140048030
lea rcx, [rsp + 0x350]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x354]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x358]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x398]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140064510
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
lea r9, str.RDPManage.cpp:CRDPManage::SetRegDWORD__:Line_285
xor r8d, r8d
mov edx, 1
lea rcx, [rsp + 0x110]
call fcn.140038d20
lea rcx, [rsp + 0x80]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x3a0]
call fcn.140048030
xor r9d, r9d
mov r8, rax
lea rdx, [rsp + 0x250]
lea rcx, [0x14032af98]
call fcn.140026430
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x50], rax
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.14002f250
lea rcx, [rsp + 0xd0]
lea rdx, [rsp + 0x80]
mov rdi, rcx
mov rsi, rdx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov r9d, dword [rsp + 0x30]
mov r8, rax
lea rdx, str._tRegSetKeyValue__s_not_set_Status0x_08X._n
lea rcx, [rsp + 0xd0]
call fcn.14003b980
nop
lea rcx, [rsp + 0x250]
call fcn.140020590
jmp 0x1400645f7
mov eax, dword [rsp + 0x354]
cmp dword [rsp + 0x3a8], eax
je 0x1400645f7
mov eax, dword [rsp + 0x34]
or eax, 2
mov dword [rsp + 0x34], eax
lea r9, str.RDPManage.cpp:CRDPManage::SetRegDWORD__:Line_290
xor r8d, r8d
mov edx, 1
lea rcx, [rsp + 0x120]
call fcn.140038d20
lea rcx, [rsp + 0x100]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x3a0]
call fcn.140048030
xor r9d, r9d
mov r8, rax
lea rdx, [rsp + 0x1d0]
lea rcx, [0x14032af98]
call fcn.140026430
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14002f250
lea rcx, [rsp + 0xf0]
lea rdx, [rsp + 0x100]
mov rdi, rcx
mov rsi, rdx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov ecx, dword [rsp + 0x3a8]
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x354]
mov r8, rax
lea rdx, str._tRegSetKeyValue__s_dwOldV__lu____dwSetV__lu_._n
lea rcx, [rsp + 0xf0]
call fcn.14003b980
nop
lea rcx, [rsp + 0x1d0]
call fcn.140020590
mov dword [rsp + 0x38], 1
cmp dword [rsp + 0x34], 0
je 0x1400647f1
mov dword [rsp + 0x350], 4
mov rcx, qword [rsp + 0x3a0]
call fcn.140048030
mov ecx, dword [rsp + 0x350]
mov dword [rsp + 0x28], ecx
lea rcx, [rsp + 0x3a8]
mov qword [rsp + 0x20], rcx
mov r9d, 4
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x398]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140064734
mov dword [rsp + 0x38], 0
lea r9, str.RDPManage.cpp:CRDPManage::SetRegDWORD__:Line_301
xor r8d, r8d
mov edx, 3
lea rcx, [rsp + 0x140]
call fcn.140038d20
lea rcx, [rsp + 0xb0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x3a0]
call fcn.140048030
xor r9d, r9d
mov r8, rax
lea rdx, [rsp + 0x2d0]
lea rcx, [0x14032af98]
call fcn.140026430
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.14002f250
lea rcx, [rsp + 0xc0]
lea rdx, [rsp + 0xb0]
mov rdi, rcx
mov rsi, rdx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov ecx, dword [rsp + 0x30]
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x3a8]
mov r8, rax
lea rdx, str._tRegSetKeyValue__s_set__lu_error_Status0x_08X._n
lea rcx, [rsp + 0xc0]
call fcn.14003b980
nop
lea rcx, [rsp + 0x2d0]
call fcn.140020590
jmp 0x1400647f1
lea r9, str.RDPManage.cpp:CRDPManage::SetRegDWORD__:Line_306
xor r8d, r8d
mov edx, 1
lea rcx, [rsp + 0x130]
call fcn.140038d20
lea rcx, [rsp + 0x90]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x3a0]
call fcn.140048030
xor r9d, r9d
mov r8, rax
lea rdx, [rsp + 0x150]
lea rcx, [0x14032af98]
call fcn.140026430
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x78], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.14002f250
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x90]
mov rdi, rcx
mov rsi, rdx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov r9d, dword [rsp + 0x3a8]
mov r8, rax
lea rdx, str._tRegSetKeyValue__s_set__lu_sucess._n
lea rcx, [rsp + 0xa0]
call fcn.14003b980
nop
lea rcx, [rsp + 0x150]
call fcn.140020590
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.1401fe250
add rsp, 0x378
pop rdi
pop rsi
ret