Function at 0x140002188
Capabilities:
Query or enumerate registry value

Disassembly:
test r15b, 0xe
je 0x14000221f
test esi, esi
je 0x140002030
mov rcx, r14
call fcn.140002c44
test eax, eax
je 0x14000221f
test r15b, 2
je 0x1400020b1
mov r12d, r13d
mov rsi, qword [0x14001a0d0]
cmp rsi, 0xffffffffffffffff
jne 0x140003793
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 0xf]
call fcn.140001a90
nop
mov edi, 1
mov dword [rbp - 0x29], edi
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoft.NETFramework
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov cl, r13b
je 0x1400037bc
test dil, 1
je 0x1400020a9
and edi, 0xfffffffe
mov dword [rbp - 0x29], edi
mov rax, qword [rbp - 0x21]
cmp qword [rax], r13
jne 0x1400037c3
test cl, cl
jne 0x1400037cf
test r15b, 4
je 0x140002173
mov r12d, r13d
mov rsi, qword [0x14001a0d8]
cmp rsi, 0xffffffffffffffff
jne 0x140003864
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 1]
call fcn.140001a90
nop
or edi, 2
mov dword [rbp - 0x29], edi
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoft.NETFramework
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov cl, r13b
jne 0x140002111
mov cl, 1
test dil, 2
je 0x14000212d
and edi, 0xfffffffd
mov dword [rbp - 0x29], edi
mov rax, qword [rbp - 0x21]
cmp qword [rax], r13
je 0x14000212d
mov dword [rax + 8], 1
test cl, cl
je 0x140002173
mov esi, r13d
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x25]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140003894
mov eax, dword [rbp + 7]
test r12d, r12d
cmovne eax, r13d
mov dword [rbp + 7], eax
test esi, esi
jne 0x14000221f
test r15b, 8
jne 0x1400038ef
mov rbx, r13
jmp 0x14000221f
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov esi, r9d
mov r15d, r8d
mov r14, rcx
xor r13d, r13d
mov edi, r13d
mov dword [rbp - 0x29], r13d
mov qword [rbp + 0xf], r13
mov dword [rbp + 0x17], r13d
mov qword [rbp - 1], r13
mov dword [rbp + 7], r13d
mov qword [rbp + 0x1f], r13
mov dword [rbp + 0x27], r13d
mov ebx, r13d
mov qword [rbp - 0x11], rbx
mov dword [rbp - 9], r13d
test r8b, 1
je 0x140002012
call fcn.140002270
mov rbx, rax
mov qword [rbp - 0x11], rax
test rax, rax
je 0x140002012
mov dword [rbp - 9], 1
cmp word [rax], r13w
je 0x140003778
mov dword [rbp - 9], r13d
jmp 0x14000221f
cmp dword [rbp + 0x27], r13d
jne 0x1400039ce
cmp dword [rbp + 7], r13d
je 0x14000223d
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp + 7], r13d
cmp dword [rbp + 0x17], r13d
jne 0x1400039e1
mov rax, rbx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rdx, rax
xor ecx, ecx
call qword [0x14001a008]
mov dword [rbp - 9], r13d
mov ebx, r13d
mov qword [rbp - 0x11], rbx
jmp 0x140002012
mov r12d, 1
cmp dword [rbp + 0x17], r13d
je 0x1400037ad
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp + 0x17], r13d
mov qword [rbp + 0xf], rsi
test rsi, rsi
je 0x1400037bc
mov dword [rbp + 0x17], r12d
jmp 0x1400037bc
mov cl, 1
jmp 0x140002090
mov dword [rax + 8], 1
jmp 0x1400020a9
mov esi, r13d
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x25]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000384a
cmp dword [rbp - 0x25], 1
jne 0x14000384a
mov edx, dword [rbp + 0x77]
xor ecx, ecx
call qword [0x14001a0c8]
mov rbx, rax
mov qword [rbp - 0x11], rax
test rax, rax
je 0x140003845
mov dword [rbp - 9], 1
mov word [rax], r13w
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rbp - 9], r13d
mov esi, 1
mov eax, dword [rbp + 0x17]
test r12d, r12d
cmovne eax, r13d
mov dword [rbp + 0x17], eax
test esi, esi
je 0x1400020b1
jmp 0x14000221f
mov r12d, 1
cmp dword [rbp + 7], r13d
je 0x14000387e
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp + 7], r13d
mov qword [rbp - 1], rsi
test rsi, rsi
je 0x14000210f
mov dword [rbp + 7], r12d
jmp 0x14000210f
cmp dword [rbp - 0x25], 1
jne 0x14000215e
mov edx, dword [rbp + 0x77]
xor ecx, ecx
call qword [0x14001a0c8]
mov rbx, rax
mov qword [rbp - 0x11], rax
test rax, rax
je 0x1400038e5
mov dword [rbp - 9], 1
mov word [rax], r13w
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rbp - 9], r13d
mov esi, 1
jmp 0x14000215e
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 0x1f]
call fcn.140001a90
nop
or edi, 4
mov dword [rbp - 0x29], edi
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x140013da0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000395a
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x25]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000395a
cmp dword [rbp - 0x25], 1
mov cl, 1
je 0x14000395d
mov cl, r13b
test dil, 4
je 0x140003979
and edi, 0xfffffffb
mov dword [rbp - 0x29], edi
mov rax, qword [rbp - 0x21]
cmp qword [rax], r13
je 0x140003979
mov dword [rax + 8], 1
test cl, cl
je 0x14000217d
mov edx, dword [rbp + 0x77]
xor ecx, ecx
call qword [0x14001a0c8]
mov rbx, rax
mov qword [rbp - 0x11], rax
test rax, rax
je 0x14000217d
mov dword [rbp - 9], 1
mov word [rax], r13w
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop
jmp 0x140002219
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp + 0x27], r13d
jmp 0x140002229
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp + 0x17], r13d
jmp 0x140002247