Function at 0x140204cbc
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 [0x1405420e0]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov r14, qword [rbp + 0x7f]
mov rbx, r8
mov r8, qword [rbp + 0x8f]
mov rdi, rdx
mov r12, qword [rbp + 0x87]
mov rdx, rcx
mov r15d, r9d
mov rsi, rcx
mov rcx, rbx
mov r9d, 0x20019
call fcn.140207434
xor r13d, r13d
mov dword [rsp + 0x40], eax
test eax, eax
je 0x140204dc0
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 5
jbe 0x140204ed0
cmp qword [rbx + 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 0x140204d51
mov rbx, qword [rbx]
lea rdx, [0x1403cb630]
mov rcx, r13
test rbx, rbx
je 0x140204d71
mov rdx, rbx
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], r13w
jne 0x140204d67
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], r13d
mov qword [rbp - 0x49], 4
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140482171]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001208
jmp 0x140204ed0
cmp qword [rdi + 0x18], 8
mov r8, rdi
jb 0x140204dcd
mov r8, qword [rdi]
mov rcx, qword [rsi]
mov r9d, r15d
mov qword [rsp + 0x30], r14
xor edx, edx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x140204ed9
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 5
jbe 0x140204ed0
cmp qword [rdi + 0x18], 8
lea rax, str.Failed_to_get_registry_value_size._Return_default_value
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], WSAStartup
jb 0x140204e2c
mov rdi, qword [rdi]
or rcx, 0xffffffffffffffff
lea rdx, [0x1403cb630]
mov r8, rdx
mov rax, r13
test rdi, rdi
je 0x140204e52
mov r8, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], r13w
jne 0x140204e48
cmp qword [rbx + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x59], eax
mov qword [rbp - 0x61], r8
mov dword [rbp - 0x55], r13d
jb 0x140204e6e
mov rbx, qword [rbx]
mov rax, r13
test rbx, rbx
je 0x140204e86
mov rdx, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], r13w
jne 0x140204e7c
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], r13d
mov qword [rbp - 0x39], 4
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140481ea9]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001208
mov eax, dword [rsp + 0x40]
jmp 0x140204fe6
mov eax, dword [r14]
mov ecx, eax
shr rcx, 1
cmp byte [rbp + 0x6f], r13b
cmove ecx, eax
mov dword [r12], ecx
cmp ecx, 1
jb 0x140204efd
cmp ecx, dword [rbp + 0x77]
ja 0x140204efd
xor eax, eax
jmp 0x140204fe6
call fcn.1400550c0
mov r8d, 4
mov r10, qword [rax + 8]
cmp dword [r10], r8d
jbe 0x140204fe1
cmp qword [rdi + 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], SysAllocStringByteLen
jb 0x140204f32
mov rdi, qword [rdi]
or rcx, 0xffffffffffffffff
lea rdx, [0x1403cb630]
mov r9, rdx
mov rax, r13
test rdi, rdi
je 0x140204f58
mov r9, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], r13w
jne 0x140204f4e
cmp qword [rbx + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x59], eax
mov qword [rbp - 0x61], r9
mov dword [rbp - 0x55], r13d
jb 0x140204f74
mov rbx, qword [rbx]
mov rax, r13
test rbx, rbx
je 0x140204f8c
mov rdx, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], r13w
jne 0x140204f82
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], r13d
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], r8
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], r8
mov qword [rbp - 0x19], r8
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140481e52]
xor r8d, r8d
mov dword [rsp + 0x20], 8
mov rcx, r10
call fcn.140001208
mov eax, SafeArrayGetDim
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.140356560
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret