Function at 0x140059e38
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x10], edx
push rbp
push rbx
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, r8
mov byte [r9], 1
mov r14, r9
lea rdx, [rbp - 0x59]
mov rdi, rcx
xor r15d, r15d
mov rcx, rbx
mov qword [rbp - 0x59], r15
mov r9d, 0x20019
mov r8, 0xffffffff80000002
call fcn.1401d802c
mov dword [rbp - 0x69], eax
test eax, eax
je 0x140059f42
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x14005a065
cmp qword [rbx + 0x18], 8
lea rax, str.Could_not_open_or_create_the_registry_path._Return_default_value
mov qword [rbp - 0x29], rax
lea rax, [rbp - 0x69]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x21], 0x82
mov qword [rbp - 0x11], 4
jb 0x140059ed5
mov rbx, qword [rbx]
lea rdx, [0x140344690]
mov rcx, r15
test rbx, rbx
je 0x140059ef5
mov rdx, rbx
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], r15w
jne 0x140059eeb
lea eax, [rcx*2 + 2]
mov qword [rbp - 9], rdx
mov dword [rbp - 1], eax
lea rax, [rbp + 0x6f]
mov qword [rbp + 7], rax
mov dword [rbp + 3], r15d
mov qword [rbp + 0xf], 4
lea rax, [rbp - 0x49]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403d5eb0]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001158
jmp 0x14005a065
cmp qword [rdi + 0x18], 8
mov rdx, rdi
mov dword [rbp - 0x65], 4
jb 0x140059f56
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x59]
lea rax, [rbp - 0x65]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp - 0x61]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov dword [rbp - 0x69], eax
test eax, eax
je 0x14005a06a
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x14005a065
cmp qword [rdi + 0x18], 8
lea rax, str.Failed_to_read_registry_value._Return_default_value
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], 0x68
jb 0x140059fb3
mov rdi, qword [rdi]
or rcx, 0xffffffffffffffff
lea rdx, [0x140344690]
mov r8, rdx
mov rax, r15
test rdi, rdi
je 0x140059fd9
mov r8, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], r15w
jne 0x140059fcf
cmp qword [rbx + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x11], eax
mov qword [rbp - 0x19], r8
mov dword [rbp - 0xd], r15d
jb 0x140059ff5
mov rbx, qword [rbx]
mov rax, r15
test rbx, rbx
je 0x14005a00d
mov rdx, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], r15w
jne 0x14005a003
lea eax, [rax*2 + 2]
mov qword [rbp - 9], rdx
mov dword [rbp - 1], eax
lea rax, [rbp - 0x69]
mov qword [rbp + 7], rax
lea rax, [rbp + 0x6f]
mov qword [rbp + 0x17], rax
mov dword [rbp + 3], r15d
mov qword [rbp + 0xf], 4
mov qword [rbp + 0x1f], 4
lea rax, [rbp - 0x49]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403ddf72]
xor r8d, r8d
mov dword [rsp + 0x20], 7
mov rcx, r10
call fcn.140001158
mov ebx, dword [rbp + 0x6f]
jmp 0x14005a070
mov ebx, dword [rbp - 0x61]
mov byte [r14], r15b
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x14005a07f
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1402dfdb0
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret