Function at 0x140016240
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
mov eax, 0x20670
call fcn.140030cb0
sub rsp, rax
xor edi, edi
lea rax, [0x14009c1e0]
mov ecx, 0x800
mov qword [0x1400c7f20], rax
lea rax, [0x14009c1e0]
mov byte [0x1400c7ef0], 0
mov byte [0x1400c7ef1], 0
mov byte [0x1400c7ef2], 0
mov byte [0x1400c7ef3], 0
mov qword [0x1400c7f40], rax
mov qword [0x1400c7ef8], rdx
mov qword [0x1400c7f00], rdi
mov qword [0x1400c7f08], rdi
mov dword [0x1400c7f10], edi
mov qword [0x1400c7f18], rdi
mov qword [0x1400c7f28], rdi
mov qword [0x1400c7f30], rdi
mov qword [0x1400c7f38], rdi
mov qword [0x1400c7f48], rdi
mov qword [0x1400c7f50], rdi
mov qword [0x1400c7f58], rdi
mov dword [0x1400c7f68], edi
mov qword [0x1400c7f70], rdi
mov dword [0x1400c7f78], 0x66
call fcn.140016ed8
lea rdx, [rsp + 0x30]
mov r8d, 0x104
xor ecx, ecx
mov qword [0x1400c7f60], rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [rsp + 0x240]
lea rdx, [rsp + 0x450]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
call fcn.14001823c
lea rdx, str.Include
lea rcx, [rsp + 0x240]
mov r8d, 0x104
call fcn.1400182cc
lea r8, [rsp + 0x240]
lea rdx, [rsp + 0x450]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
call fcn.14001830c
mov ecx, 0x20a
call fcn.140016ed8
mov edx, dword [0x1400c7f68]
mov rcx, qword [0x1400c7f60]
mov qword [rcx + rdx*8], rax
mov edx, dword [0x1400c7f68]
mov rax, qword [0x1400c7f60]
mov rcx, qword [rax + rdx*8]
inc edx
mov dword [0x1400c7f68], edx
lea rdx, [rsp + 0x30]
call fcn.140016e4c
lea r11, [rsp + 0x20688]
lea rdx, str.SoftwareAutoIt_v3AutoIt
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140031f10
lea rax, [0x1400c7ef0]
add rsp, 0x20670
pop rdi
ret
mov rcx, qword [rsp + 0x20688]
lea rax, [rsp + 0x20690]
lea rdx, str.Include
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x660]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20690], 0x1fffe
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140032052
mov ecx, dword [rsp + 0x20690]
mov qword [rsp + 0x20698], rbx
mov word [rsp + 0x30], di
shr ecx, 1
lea rbx, [rsp + 0x660]
lea eax, [rcx + 1]
mov word [rsp + rcx*2 + 0x660], di
mov dword [rsp + 0x20690], ecx
mov word [rsp + rax*2 + 0x660], di
movzx eax, word [rbx]
mov word [rsp + 0x20682], di
mov word [rsp + 0x20680], ax
test ax, ax
je 0x140031fc6
cmp ax, 0x3b
je 0x140031fc6
lea rdx, [rsp + 0x20680]
lea rcx, [rsp + 0x30]
call fcn.140016e20
add rbx, 2
jmp 0x140031f90
lea rcx, [rsp + 0x30]
call fcn.140016a44
test rax, rax
je 0x140031ff8
lea rcx, [rsp + 0x30]
call fcn.140016a44
cmp word [rsp + rax*2 + 0x2e], 0x5c
je 0x140031ff8
lea rdx, [0x14009bd8c]
lea rcx, [rsp + 0x30]
call fcn.140016e20
mov ecx, 0x20a
call fcn.140016ed8
mov edx, dword [0x1400c7f68]
mov rcx, qword [0x1400c7f60]
mov qword [rcx + rdx*8], rax
mov edx, dword [0x1400c7f68]
mov rax, qword [0x1400c7f60]
mov rcx, qword [rax + rdx*8]
inc edx
mov r8d, 0x104
mov dword [0x1400c7f68], edx
lea rdx, [rsp + 0x30]
call fcn.14001760c
mov word [rsp + 0x30], di
cmp word [rbx], di
jne 0x140031fc0
mov rbx, qword [rsp + 0x20698]
mov rcx, qword [rsp + 0x20688]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x1400163de