Function at 0x140001c40
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1e8]
sub rsp, 0x2d0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14003d088]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rdi, rcx
mov qword [rbp - 0x70], rcx
xor esi, esi
mov dword [rbp - 0x80], esi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.140010630
mov qword [rbp - 0x58], rsi
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001cf1
mov dword [rbp - 0x60], 0x208
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.CommonFilesDir
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rbx, [0x140036540]
mov qword [rsp + 0x30], rbx
lea r14, [0x140036538]
mov qword [rsp + 0x70], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rsi
mov word [rsp + 0x38], si
cmp word [rbp - 0x50], 0
jne 0x140001d32
mov r8, rsi
jmp 0x140001d4b
lea rax, [rbp - 0x50]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140001d40
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x38]
call fcn.140004cb0
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rsp + rcx + 0x70]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001d8b
dec rcx
jmp 0x140001d8e
mov rcx, rsi
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rax, qword [rsp + 0x38]
cmp word [rax + rcx*2], 0x5c
lea rcx, [rsp + 0x38]
jne 0x140001db7
xor r8d, r8d
lea rdx, [0x140036b9a]
jmp 0x140001dc4
mov r8d, 1
lea rdx, [0x140036b98]
call 0x1400038a0
mov qword [rdi], rbx
mov qword [rdi + 0x40], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x48], eax
lea rcx, [rdi + 8]
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rsi
cmp qword [rcx + 0x18], 8
jb 0x140001df5
mov rax, qword [rcx]
jmp 0x140001df8
mov rax, rcx
mov word [rax], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x38]
call fcn.140004740
mov qword [rdi + 0x28], rsi
mov qword [rdi + 0x30], rsi
mov qword [rdi + 0x38], rsi
mov rax, qword [rdi + 0x40]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rcx + rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rbx, [rsp + 0x70]
add rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov rcx, qword [rsp + 0x58]
call fcn.14000d7dc
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp qword [rsp + 0x50], 8
jb 0x140001e6c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rsi
mov word [rsp + 0x38], si
mov rcx, qword [rsp + 0x30]
movsxd rdx, dword [rcx + 4]
mov ecx, dword [rsp + rdx + 0x30]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x140001eac
cmp qword [sym.imp.ADVAPI32.dll_RegCloseKey], 0
je 0x140001eac
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14000d750
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret