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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x120
mov rax, qword [0x140110980]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov r14, rcx
xor r15d, r15d
mov qword [rbp - 0x18], r15
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rcx + 0x38]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140006023
mov edi, 0x800
mov ecx, edi
call fcn.1400a40f0
mov rbx, rax
mov qword [rbp + 0x10], rax
mov dword [rbp - 0x40], edi
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400060a1
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r15
lea r13d, [r15 + 0x20]
mov r9d, r13d
mov r8, qword [r14 + 0x20]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
mov edi, eax
mov rsi, rbx
or r12, 0xffffffffffffffff
cmp eax, 0xea
jne 0x140005e34
mov ecx, dword [rbp - 0x40]
shr rcx, 1
lea eax, [r15 + 2]
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.1400a40f0
mov rdi, rax
cmp rax, rbx
je 0x140005df4
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rbx, rdi
mov qword [rbp + 0x10], rbx
mov rsi, rdi
test rsi, rsi
je 0x140005e82
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400060d2
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r15
mov r9d, r13d
mov r8, qword [r14 + 0x20]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
mov edi, eax
test edi, edi
jne 0x140005e8f
mov ecx, dword [rbp - 0x40]
shr ecx, 1
lea r13d, [rdi + 7]
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x28], r15
mov word [rbp - 0x38], r15w
lea r8d, [rcx - 1]
cmp ecx, 2
cmove r8d, r15d
mov rdx, rsi
lea rcx, [rbp - 0x38]
call fcn.1400063d0
nop
mov rdx, qword [r14 + 0x28]
mov qword [rbp + 8], r13
mov qword [rbp], r15
mov word [rbp - 0x10], r15w
cmp word [rdx], r15w
jne 0x140005eb2
mov r8, r15
jmp 0x140005ebf
mov edx, dword [rbp - 0x40]
call fcn.140006d08
mov edi, 8
mov edx, edi
lea rcx, str.Unable_to_read_App_V_4.x_virtual_environment_override_entry.__error_code_0x_X_
call fcn.140006c58
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
jmp 0x140006037
mov r8, r12
inc r8
cmp word [rdx + r8*2], r15w
jne 0x140005eb5
lea rcx, [rbp - 0x10]
call fcn.1400063d0
nop
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rdx, qword [rbp - 0x10]
mov r9, qword [rbp]
xor r8d, r8d
lea rcx, [rbp - 0x38]
call fcn.1400062e4
cmp rax, r12
jne 0x140005fd9
mov r9, r12
xor r8d, r8d
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x38]
call fcn.1400065c8
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x28]
lea rdx, [rcx + rax*2]
lea rax, [rbp - 0x38]
cmovae rax, qword [rbp - 0x38]
test rdx, rdx
jne 0x140005f2c
mov rdx, r15
jmp 0x140005f32
sub rdx, rax
sar rdx, 1
xor r9d, r9d
lea edi, [r9 + 1]
mov r8d, edi
lea rcx, [rbp - 0x38]
call fcn.140006720
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x28]
lea rdx, [rcx + rax*2]
lea rax, [rbp - 0x38]
cmovae rax, qword [rbp - 0x38]
test rdx, rdx
jne 0x140005f6e
mov rdx, r15
jmp 0x140005f74
sub rdx, rax
sar rdx, 1
xor r9d, r9d
mov r8, rdi
lea rcx, [rbp - 0x38]
call fcn.140006720
mov eax, dword [rbp - 0x28]
lea edx, [rax + rax]
lea rax, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rax, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140006070
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor r8d, r8d
mov rdx, qword [r14 + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x140005fdf
mov edx, eax
lea rcx, str.Unable_to_add_an_entry_for_the_UE_V_agent_service_to_the_App_V_4.x_override_registry_key__error_code_0x_X_
call fcn.140006c58
jmp 0x140005fdf
call fcn.140006dbc
nop
cmp qword [rbp + 8], 8
jb 0x140005ff6
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbp + 8], r13
mov qword [rbp], r15
mov word [rbp - 0x10], r15w
cmp qword [rbp - 0x20], 8
jb 0x140005e9e
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
jmp 0x140005e9e
cmp eax, 2
je 0x140006037
mov edx, eax
lea rcx, str.An_unexpected_error_occurred_opening_the_App_V_4.x_product_registry_key__error_code_0x_X_
call fcn.140006c58
nop
lea rcx, [rbp - 0x18]
call fcn.140006130
mov eax, edi
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.1400c2d60
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rsp + 0x40]
call fcn.1400061b0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140005a44
lea rdx, [0x140106f30]
lea rcx, [rbp - 0x80]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rbp - 0x10]
call fcn.1400061b0
nop
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x40]
call fcn.140005a44
lea rdx, [0x140106f30]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rbp - 0x10]
call fcn.1400061b0
nop
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x40]
call fcn.140005a44
lea rdx, [0x140106f30]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll__CxxThrowException
int3