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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r14d, edx
lea rdx, str.CheckRunEnvironment::CheckConIme
lea rcx, [rbp - 0x19]
call fcn.14001abe0
nop
lea r12, [0x1402a8360]
lea rdi, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, r12
je 0x1400588ff
test byte [rcx + 0x1c], 1
je 0x1400588ff
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x5d
lea r8, [0x1402559c8]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov ebx, 1
xor r15d, r15d
mov qword [rbp - 0x29], r15
mov dword [rbp - 0x31], r15d
mov dword [rbp - 0x35], r15d
mov dword [rbp - 0x39], r15d
mov esi, r15d
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.Console
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140058a41
mov dword [rbp - 0x31], 4
mov dword [rbp - 0x35], 4
lea rax, [rbp - 0x35]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x31]
xor r8d, r8d
lea rdx, str.LoadConIme
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140058a32
mov dword [rbp - 0x35], 4
test r14d, r14d
je 0x1400589a2
cmp dword [rbp - 0x39], r15d
je 0x1400589a5
mov dword [rbp - 0x39], r15d
mov esi, ebx
jmp 0x1400589a5
mov dword [rbp - 0x39], ebx
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.LoadConIme
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140058a32
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
lea rdx, str.PROCESS_CONIME_RUN
mov rax, qword [rcx + 0x20]
mov rcx, r9
test esi, esi
je 0x140058a19
lea r8, [0x140254e00]
call qword [case.0x1400136d6.0]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140058a44
lea r8, [0x140255944]
call qword [case.0x1400136d6.0]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140058a44
mov ebx, r15d
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140058a44
mov ebx, r15d
mov cl, 1
mov byte [rbp - 0x11], cl
mov rax, qword [0x1402a8360]
cmp rax, r12
je 0x140058a91
test byte [rax + 0x1c], cl
je 0x140058a91
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x5e
mov dword [rsp + 0x20], ebx
lea r8, [0x1402559c8]
mov rcx, qword [rax + 0x10]
call fcn.140001b40
movzx ecx, byte [rbp - 0x11]
mov rax, qword [0x1402a8360]
lea rdx, vtable.WppTrace.0
mov qword [rbp - 0x19], rdx
test cl, cl
jne 0x140058ae6
cmp rax, r12
je 0x140058ae6
test byte [rax + 0x1c], 1
je 0x140058ae6
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rcx, qword [rbp - 9]
cmp qword [0x1402bbdc8], 8
cmovae rdi, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rcx
mov r9, rdi
lea r8, [0x140252818]
mov rcx, qword [rax + 0x10]
call fcn.140006c90
lea rcx, [rbp + 0x17]
call fcn.1400048a0
lea rcx, [rbp - 9]
call fcn.1400048a0
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret