Function at 0x140205b10
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xf8
mov rax, qword [0x1405420e0]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov r15, qword [rbp + 0x6f]
xor r13d, r13d
mov eax, dword [rbp + 0x77]
mov rsi, rcx
mov rcx, qword [rbp + 0x7f]
mov r14, r9
mov qword [rsp + 0x58], r13
mov r12, r8
mov byte [r15], 1
mov rdi, rdx
mov dword [rsp + 0x54], r13d
mov dword [rsp + 0x50], r13d
cmp eax, 0x4000000
ja 0x140205d3c
mov qword [rsp + 0x40], rcx
lea r9d, [r13 + 8]
lea rcx, [rsp + 0x50]
mov r8, r14
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov byte [rsp + 0x20], r13b
call fcn.140204cbc
test eax, eax
jne 0x140205d3c
mov edx, dword [rsp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.140083118
cmp qword [rdi + 0x18], 8
mov r8, rdi
jb 0x140205bc5
mov r8, qword [rdi]
mov rbx, qword [rsp + 0x68]
lea rax, [rsp + 0x54]
mov rcx, qword [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r13
lea r9d, [rdx + 8]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x140205d23
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x140205cd4
cmp qword [rdi + 0x18], 8
lea rax, str.Failed_to_read_registry_value._Return_default_value
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], 0x68
jb 0x140205c31
mov rdi, qword [rdi]
or r8, 0xffffffffffffffff
lea rdx, [0x1403cb630]
mov rcx, rdx
mov rax, r13
test rdi, rdi
je 0x140205c57
mov rcx, rdi
mov rax, r8
inc rax
cmp word [rdi + rax*2], r13w
jne 0x140205c4d
cmp qword [r14 + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x39], eax
mov qword [rbp - 0x41], rcx
mov dword [rbp - 0x35], r13d
jb 0x140205c73
mov r14, qword [r14]
mov rax, r13
test r14, r14
je 0x140205c8b
mov rdx, r14
mov rax, r8
inc rax
cmp word [r14 + rax*2], r13w
jne 0x140205c81
lea eax, [rax*2 + 2]
mov qword [rbp - 0x31], rdx
mov dword [rbp - 0x29], eax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x25], r13d
mov qword [rbp - 0x19], 4
lea rax, [rbp - 0x71]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140481f39]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001208
mov rdx, r12
mov rcx, rsi
call fcn.14006fe04
test rbx, rbx
je 0x140205d47
mov rdx, qword [rbp - 0x79]
mov rax, rbx
sub rdx, rbx
cmp rdx, 0x1000
jb 0x140205d19
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140205d19
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop dword [rax + rax]
int3
mov rcx, rbx
call fcn.140356b5c
jmp 0x140205d47
mov rax, qword [rsp + 0x70]
mov byte [r15], r13b
mov qword [rsi + 8], rax
mov rax, qword [rbp - 0x79]
mov qword [rsi + 0x10], rax
mov qword [rsi], rbx
jmp 0x140205d47
mov rdx, r12
mov rcx, rsi
call fcn.14006fe04
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140205d5d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rax, rsi
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.140356560
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret