Function at 0x1401b6234
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, 0xe8
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov r15, qword [rcx]
mov r13d, r9d
mov rbx, qword [rbp + 0x87]
mov rdi, r8
mov r12, qword [rbp + 0x7f]
mov rsi, rdx
mov qword [rsp + 0x48], rbx
mov r14, rcx
test r15, r15
je 0x1401b629d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov rbx, qword [rsp + 0x48]
xor r15d, r15d
mov rdx, rdi
mov qword [r14], r15
cmp qword [rdi + 0x18], 8
jb 0x1401b62b0
mov rdx, qword [rdi]
mov r9d, 1
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x1401b6376
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401b6589
cmp qword [rdi + 0x18], 8
lea rax, str.Could_not_open_or_create_the_registry_path._Return_default_value
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], 0x82
jb 0x1401b6307
mov rdi, qword [rdi]
lea rdx, [0x1402cb810]
mov rcx, r15
test rdi, rdi
je 0x1401b6327
mov rdx, rdi
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdi + rcx*2], r15w
jne 0x1401b631d
lea eax, [rcx*2 + 2]
mov qword [rbp - 0x61], rdx
mov dword [rbp - 0x59], eax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x51], rax
mov dword [rbp - 0x55], r15d
mov qword [rbp - 0x49], 4
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14034cd54]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001078
jmp 0x1401b6589
cmp qword [rsi + 0x18], 8
mov r8, rsi
jb 0x1401b6383
mov r8, qword [rsi]
mov rcx, qword [r14]
mov r9d, r13d
mov qword [rsp + 0x30], r12
xor edx, edx
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x1401b6486
call fcn.140048a14
mov r8d, 4
mov r10, qword [rax + 8]
cmp dword [r10], r8d
jbe 0x1401b6589
cmp qword [rsi + 0x18], 8
lea rax, str.Failed_to_get_registry_value_size._Return_default_value
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], WSACleanup
jb 0x1401b63e1
mov rsi, qword [rsi]
or rcx, 0xffffffffffffffff
lea rdx, [0x1402cb810]
mov r9, rdx
mov rax, r15
test rsi, rsi
je 0x1401b6407
mov r9, rsi
mov rax, rcx
inc rax
cmp word [rsi + rax*2], r15w
jne 0x1401b63fd
cmp qword [rdi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x59], eax
mov qword [rbp - 0x61], r9
mov dword [rbp - 0x55], r15d
jb 0x1401b6423
mov rdi, qword [rdi]
mov rax, r15
test rdi, rdi
je 0x1401b643b
mov rdx, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], r15w
jne 0x1401b6431
lea eax, [rax*2 + 2]
mov qword [rbp - 0x51], rdx
mov dword [rbp - 0x49], eax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x41], rax
mov dword [rbp - 0x45], r15d
mov qword [rbp - 0x39], r8
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14034cd13]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001078
jmp 0x1401b6589
mov eax, dword [r12]
cmp byte [rbp + 0x6f], r15b
je 0x1401b6492
shr eax, 1
mov dword [rbx], eax
cmp eax, 1
jb 0x1401b64a5
cmp eax, dword [rbp + 0x77]
ja 0x1401b64a5
mov al, 1
jmp 0x1401b658b
call fcn.140048a14
mov r8d, 4
mov r10, qword [rax + 8]
cmp dword [r10], r8d
jbe 0x1401b6589
cmp qword [rsi + 0x18], 8
lea rax, str.Registry_value_is_empty_or_bigger_than_max_length._Return_default_value
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], 0x90
jb 0x1401b64da
mov rsi, qword [rsi]
or rcx, 0xffffffffffffffff
lea rdx, [0x1402cb810]
mov r9, rdx
mov rax, r15
test rsi, rsi
je 0x1401b6500
mov r9, rsi
mov rax, rcx
inc rax
cmp word [rsi + rax*2], r15w
jne 0x1401b64f6
cmp qword [rdi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x59], eax
mov qword [rbp - 0x61], r9
mov dword [rbp - 0x55], r15d
jb 0x1401b651c
mov rdi, qword [rdi]
mov rax, r15
test rdi, rdi
je 0x1401b6534
mov rdx, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], r15w
jne 0x1401b652a
lea eax, [rax*2 + 2]
mov qword [rbp - 0x51], rdx
mov dword [rbp - 0x49], eax
lea rax, [rbp + 0x77]
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x45], r15d
mov qword [rbp - 0x41], rbx
mov qword [rbp - 0x39], r8
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x29], r8
mov qword [rbp - 0x19], r8
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14034ce1a]
xor r8d, r8d
mov dword [rsp + 0x20], 8
mov rcx, r10
call fcn.140001078
xor al, al
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.14027a710
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret