Function at 0x140030b20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r12
push r14
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14, rdx
mov qword [rsp + 0x30], rdx
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call fcn.14026c200
xor r12d, r12d
lea r9, str.InprocServer32
mov qword [rsp + 0x38], r9
lea rax, str.LocalServer32
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r12
test r14, r14
je 0x140030f33
mov qword [rsp + 0x2b0], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x2c0], rsi
lea rbx, str.CLSID_
mov qword [rsp + 0x2c8], rdi
sub rbx, rax
mov qword [rsp + 0x288], r13
lea r13, str.E0EC0F2B_773D_4dd7_BE6C_7D85D6AA6269
mov qword [rsp + 0x280], r15
mov r15d, r12d
mov word [r14], r12w
lea r14d, [r12 + 0x7d]
mov qword [rsp + 0x50], r12
nop dword [rax + rax]
mov edx, 0x104
lea rax, [rsp + 0x60]
nop word [rax + rax]
lea rcx, [rdx + 0x7ffffefa]
test rcx, rcx
je 0x140030c12
movzx ecx, word [rbx + rax]
test cx, cx
je 0x140030c12
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x140030bf0
lea rcx, [rax - 2]
test rdx, rdx
cmovne rcx, rax
mov rax, r13
mov word [rcx], r12w
mov ecx, 0x104
nop dword [rax]
cmp word [rax], r12w
je 0x140030c40
add rax, 2
sub rcx, 1
jne 0x140030c30
mov eax, 0x104
mov r8, r12
sub rax, rcx
test rcx, rcx
mov ecx, 0x104
cmove rax, r12
cmovne r8, rax
lea rax, [rsp + 0x60]
cmp word [rax], r12w
je 0x140030c70
add rax, 2
sub rcx, 1
jne 0x140030c60
mov eax, 0x104
sub rax, rcx
test rcx, rcx
cmove rax, r12
je 0x140030ccd
mov edx, 0x104
lea rcx, [rsp + 0x60]
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x140030cbe
mov rsi, r13
mov edi, 0x7ffffffe
sub rsi, rcx
nop
test rdi, rdi
je 0x140030cbe
movzx eax, word [rsi + rcx]
test ax, ax
je 0x140030cbe
mov word [rcx], ax
dec rdi
add rcx, 2
sub rdx, 1
jne 0x140030ca0
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r12w
cmp r14w, word [r13 + r8*2 - 2]
je 0x140030d50
mov ecx, 0x104
lea rax, [rsp + 0x60]
nop
cmp word [rax], r12w
je 0x140030cf0
add rax, 2
sub rcx, 1
jne 0x140030ce0
mov eax, 0x104
sub rax, rcx
test rcx, rcx
cmove rax, r12
je 0x140030d50
mov edx, 0x104
lea rcx, [rsp + 0x60]
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x140030d41
lea rsi, [0x1402f8094]
mov eax, 0x7ffffffe
sub rsi, rcx
test rax, rax
je 0x140030d41
movzx edi, word [rsi + rcx]
test di, di
je 0x140030d41
mov word [rcx], di
dec rax
add rcx, 2
sub rdx, 1
jne 0x140030d23
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r12w
mov ecx, 0x104
lea rax, [rsp + 0x60]
nop word [rax + rax]
cmp word [rax], r12w
je 0x140030d70
add rax, 2
sub rcx, 1
jne 0x140030d60
mov eax, 0x104
sub rax, rcx
test rcx, rcx
cmove rax, r12
je 0x140030dce
mov edx, 0x104
lea rcx, [rsp + 0x60]
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x140030dbf
mov eax, 0x7ffffffe
sub r9, rcx
nop dword [rax]
test rax, rax
je 0x140030dbf
movzx edi, word [r9 + rcx]
test di, di
je 0x140030dbf
mov word [rcx], di
dec rax
add rcx, 2
sub rdx, 1
jne 0x140030da0
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r12w
lea rax, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140030e5a
lea rax, [rsp + 0x50]
mov r9d, 0x201
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140030e5a
lea rax, [rsp + 0x50]
mov r9d, 0x101
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140030e5a
mov r9, qword [rsp + r15*8 + 0x40]
inc r15
test r9, r9
jne 0x140030be0
mov rcx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x280]
mov r13, qword [rsp + 0x288]
mov rbx, qword [rsp + 0x2b0]
mov r14, qword [rsp + 0x30]
test rcx, rcx
jne 0x140030eb2
mov eax, 0x3f3
mov rsi, qword [rsp + 0x2c0]
mov rdi, qword [rsp + 0x2c8]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140269300
add rsp, 0x290
pop r14
pop r12
pop rbp
ret
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 0x208
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, 0x208
mov rcx, r14
call fcn.1402782ec
cmp eax, 2
jbe 0x140030f16
cmp word [r14], 0x22
jne 0x140030f16
lea ecx, [rax - 1]
cmp word [r14 + rcx*2], 0x22
jne 0x140030f16
mov word [r14 + rcx*2], r12w
add eax, 0xfffffffe
je 0x140030f11
lea rsi, [r14 + 2]
mov ecx, eax
mov rdi, r14
rep movsw word [rdi], word [rsi]
mov word [r14 + rax*2], r12w
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [r14], r12w
mov eax, 0x3f4
cmovne eax, r12d
jmp 0x140030e86
mov eax, 0x7a
jmp 0x140030e96