Function at 0x140030820
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x880
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x140322b20]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0x20019
lea rcx, [0x14032af98]
call fcn.140036030
test eax, eax
je 0x1400308b3
cmp dword [rsp + 0x8b8], 0
je 0x14003088f
mov eax, dword [rsp + 0x34]
bts eax, 9
mov dword [rsp + 0x34], eax
jmp 0x1400308b3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea rcx, [0x14032af98]
call fcn.140035f80
test eax, eax
je 0x1400308b3
mov eax, dword [rsp + 0x34]
bts eax, 8
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x8a8]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x34]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x8a0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x140030947
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
lea rdx, [0x140255b0c]
mov rcx, qword [rsp + 0x898]
call fcn.14001f4b0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x8a8]
call fcn.140020590
nop
mov rcx, qword [rsp + 0x8b0]
call fcn.140020590
mov rax, qword [rsp + 0x898]
jmp 0x140030b17
mov dword [rsp + 0x68], 0x800
mov eax, dword [rsp + 0x68]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x70]
mov rdi, rcx
xor eax, eax
mov rcx, qword [rsp + 0x50]
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x8b0]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x8c0]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x3c], eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x3c], 0
jne 0x1400309cb
cmp dword [rsp + 0x68], 0x7fe
jbe 0x140030a12
lea rdx, [0x140255f58]
mov rcx, qword [rsp + 0x898]
call fcn.14001f4b0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x8a8]
call fcn.140020590
nop
mov rcx, qword [rsp + 0x8b0]
call fcn.140020590
mov rax, qword [rsp + 0x898]
jmp 0x140030b17
cmp qword [rsp + 0x8c0], 0
je 0x140030a87
mov rax, qword [rsp + 0x8c0]
cmp dword [rax], 4
jne 0x140030a87
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x40], eax
mov r9d, dword [rsp + 0x40]
lea r8, [0x140255fe8]
mov rdx, qword [rsp + 0x898]
lea rcx, [0x14032af98]
call fcn.14002bda0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x8a8]
call fcn.140020590
nop
mov rcx, qword [rsp + 0x8b0]
call fcn.140020590
mov rax, qword [rsp + 0x898]
jmp 0x140030b17
xor edx, edx
mov eax, dword [rsp + 0x68]
mov ecx, 2
div ecx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x38], 0
jmp 0x140030aac
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x44]
dec eax
cmp dword [rsp + 0x38], eax
jge 0x140030ad7
movsxd rax, dword [rsp + 0x38]
movzx eax, word [rsp + rax*2 + 0x70]
test eax, eax
jne 0x140030ad5
movsxd rax, dword [rsp + 0x38]
mov ecx, 0x20
mov word [rsp + rax*2 + 0x70], cx
jmp 0x140030aa2
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x898]
call fcn.14001f4b0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x8a8]
call fcn.140020590
nop
mov rcx, qword [rsp + 0x8b0]
call fcn.140020590
mov rax, qword [rsp + 0x898]
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.1401fe250
add rsp, 0x880
pop rdi
ret