Function at 0x140205098
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 - 8]
sub rsp, 0x108
mov rax, qword [0x1405420e0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, qword [rbp + 0x70]
xor r15d, r15d
mov r13, qword [rbp + 0x78]
mov rdi, rcx
mov eax, dword [rbp + 0x88]
mov ecx, r15d
mov qword [rsp + 0x58], r15
mov rbx, rdx
mov rdx, qword [rbp + 0x90]
mov rsi, r9
mov byte [r12], 1
mov r14, r8
mov dword [r13], r15d
mov dword [rsp + 0x54], r15d
mov dword [rsp + 0x50], ecx
cmp eax, 0x4000000
jbe 0x14020510a
lea eax, [r15 + 0xd]
jmp 0x140205146
mov qword [rsp + 0x40], rdx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov r9d, 2
lea rcx, [rsp + 0x54]
mov r8, rsi
mov qword [rsp + 0x30], rcx
mov rdx, rbx
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x58]
mov byte [rsp + 0x20], r15b
call fcn.140204cbc
mov ecx, dword [rsp + 0x50]
mov dword [r13], eax
test eax, eax
je 0x14020515e
mov rdx, r14
mov rcx, rdi
call fcn.14005da24
jmp 0x1402052ff
mov edx, ecx
lea rcx, [rsp + 0x60]
call fcn.14019d860
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x140205177
mov r8, qword [rbx]
mov r15, qword [rsp + 0x60]
lea rax, [rsp + 0x54]
mov rcx, qword [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
lea r9d, [rax + 2]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
xor edx, edx
mov dword [r13], eax
test eax, eax
je 0x1402052cc
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1402052bf
xor r8d, r8d
mov qword [rbp - 0x58], 0x68
cmp qword [rbx + 0x18], 8
lea rax, str.Failed_to_read_registry_value._Return_default_value
mov qword [rbp - 0x60], rax
jb 0x1402051ea
mov rbx, qword [rbx]
or r9, 0xffffffffffffffff
lea rdx, [0x1403cb630]
mov rcx, rdx
mov rax, r8
test rbx, rbx
je 0x140205210
mov rcx, rbx
mov rax, r9
inc rax
cmp word [rbx + rax*2], r8w
jne 0x140205206
cmp qword [rsi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x48], eax
mov qword [rbp - 0x50], rcx
mov dword [rbp - 0x44], r8d
jb 0x14020522c
mov rsi, qword [rsi]
mov rcx, rdx
mov rax, r8
test rsi, rsi
je 0x140205247
mov rcx, rsi
mov rax, r9
inc rax
cmp word [rsi + rax*2], r8w
jne 0x14020523d
cmp qword [r14 + 0x18], 8
lea eax, [rax*2 + 2]
mov qword [rbp - 0x40], rcx
mov rcx, r14
mov dword [rbp - 0x38], eax
mov dword [rbp - 0x34], r8d
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], 4
jb 0x140205272
mov rcx, qword [r14]
mov rax, r8
test rcx, rcx
je 0x14020528a
mov rdx, rcx
mov rax, r9
inc rax
cmp word [rcx + rax*2], r8w
jne 0x140205280
lea eax, [rax*2 + 2]
mov qword [rbp - 0x20], rdx
mov dword [rbp - 0x18], eax
mov dword [rbp - 0x14], r8d
lea rax, [rbp - 0x80]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140481eea]
mov rcx, r10
mov dword [rsp + 0x20], 7
call fcn.140001208
mov rdx, r14
mov rcx, rdi
call fcn.14005da24
jmp 0x1402052f5
mov eax, dword [rsp + 0x50]
mov rcx, rdi
mov byte [r12], dl
dec eax
mov word [r15 + rax*2], dx
mov qword [rdi + 0x10], rdx
mov qword [rdi + 0x18], 7
mov word [rdi], dx
mov rdx, r15
call fcn.140055574
lea rcx, [rsp + 0x60]
call fcn.140097a24
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140205315
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rax, rdi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140356560
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret