Function at 0x140036210
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xd0
mov rax, qword [0x140186768]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rsi, r9
mov rbx, r8
mov dword [rbp + 0x17], edx
mov r14, qword [rbp + 0x7f]
cmp qword [r8 + 0x18], 8
jb 0x14003624d
mov rbx, qword [r8]
lea r8, [rbp + 0x17]
lea rdx, [rbp - 0x51]
lea rcx, [0x14018f9e0]
call fcn.140035540
mov rcx, qword [rax]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x140036408
test eax, eax
jne 0x140036470
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400362a4
mov rdx, qword [rsi]
lea rax, [rbp + 7]
mov qword [rsp + 0x28], rax
xor r15d, r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x1400362e6
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [rbx - 2]
cmp ecx, 1
ja 0x140036433
jmp 0x140036408
mov ecx, dword [rbp + 7]
shr rcx, 1
inc rcx
mov eax, 2
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.1400ea320
mov rdi, rax
mov qword [rbp - 0x51], rax
cmp qword [rsi + 0x18], 8
jb 0x14003631b
mov rsi, qword [rsi]
lea rax, [rbp + 7]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [rsi - 2]
cmp ecx, 1
jbe 0x1400363fb
test esi, esi
jne 0x1400364ad
mov qword [rbp - 0x61], r15
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r15w
nop dword [rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140036370
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x71]
call fcn.140009900
lea rax, [rbp - 0x71]
cmp r14, rax
je 0x1400363ad
mov rcx, r14
call fcn.140007ce0
movups xmm0, xmmword [rbp - 0x71]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp - 0x61]
movups xmmword [r14 + 0x10], xmm1
jmp 0x1400363ea
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x1400363ea
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400363e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003642d
call fcn.1400e9cd4
nop
test rdi, rdi
je 0x1400363f7
mov rcx, rdi
call fcn.1400e9cd4
mov al, 1
jmp 0x14003640a
test rdi, rdi
je 0x140036408
mov rcx, rdi
call fcn.1400e9cd4
xor al, al
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400e9cb0
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400f8ad4
nop
mov edx, ebx
lea rcx, [rbp - 0x39]
call fcn.14000ad50
nop
mov r8, rax
lea rdx, str.Registry_key_value_query_failed._Error_code:
lea rcx, [rbp - 0x71]
call fcn.140009d80
nop
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.140033470
lea rdx, [0x140180ae0]
lea rcx, [rbp - 0x51]
call fcn.1400ebeac
nop
mov edx, eax
lea rcx, [rbp - 0x71]
call fcn.14000ad50
nop
mov r8, rax
lea rdx, str.Error_opening_registry_key._Code:
lea rcx, [rbp - 0x39]
call fcn.140009d80
nop
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.140033470
lea rdx, [0x140180ae0]
lea rcx, [rbp - 0x51]
call fcn.1400ebeac
nop
mov edx, esi
lea rcx, [rbp - 0x39]
call fcn.14000ad50
nop
mov r8, rax
lea rdx, str.Registry_key_value_query_failed._Error_code:
lea rcx, [rbp - 0x19]
call fcn.140009d80
nop
mov rdx, rax
lea rcx, [rbp - 0x71]
call fcn.140033470
lea rdx, [0x140180ae0]
lea rcx, [rbp - 0x71]
call fcn.1400ebeac
int3