Function at 0x140001230
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x70], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], 7
mov word [rcx], r14w
mov rax, rcx
cmp qword [rcx + 0x18], 8
jb 0x140001298
mov rax, qword [rcx]
mov qword [rcx + 0x10], r14
mov word [rax], r14w
mov dword [rsp + 0x30], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
cmp qword [rsi + 0x18], 8
jb 0x1400012c3
mov rsi, qword [rsi]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000149c
mov dword [rbp - 0x64], 0x104
mov dword [rbp - 0x68], r14d
cmp qword [rbx + 0x18], 8
jb 0x140001303
mov rbx, qword [rbx]
lea rax, [rbp - 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x68]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rbx, eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000146e
cmp dword [rbp - 0x68], 1
jne 0x14000146e
movdqa xmm0, xmmword [0x140007cc0]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r14w
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140001370
lea rcx, [rsp + 0x78]
cmp r8, 7
ja 0x1400013a2
mov qword [rbp - 0x78], r8
lea rbx, [r8 + r8]
mov r8, rbx
lea rdx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x78], r14w
jmp 0x1400013af
lea r9, [rbp - 0x60]
mov rdx, r8
call fcn.140002920
nop
lea rax, [rsp + 0x78]
cmp rdi, rax
je 0x140001407
lea r9, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r9, qword [rsp + 0x78]
mov rax, qword [rdi + 0x18]
mov rdx, qword [rbp - 0x78]
cmp rdx, rax
ja 0x1400013ff
mov rsi, rdi
cmp rax, 8
jb 0x1400013e2
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rsi], r14w
jmp 0x140001407
mov rcx, rdi
call fcn.140002920
mov r8, rdi
lea rdx, str.INFO_:_Read_success._Value_is
lea rcx, [rsp + 0x50]
call fcn.140002550
mov rcx, rax
call fcn.1400032b0
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400014df
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001467
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001467
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005530
jmp 0x1400014df
lea rdx, str.ERROR_:_Failed_to_read_registry_value_with_return_code
add rdx, rbx
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], 0xf
mov byte [rsp + 0x78], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140001490
jmp 0x1400014cb
movsxd rdx, eax
lea rax, str.ERROR_:_Failed_to_open_registry_key_with_rturn_code
add rdx, rax
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], 0xf
mov byte [rsp + 0x78], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1400014c1
lea rcx, [rsp + 0x78]
call fcn.1400023f0
lea rcx, [rsp + 0x78]
call fcn.140002ef0
mov rax, rdi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400054d0
add rsp, 0x2c0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret