Function at 0x14000271c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3b8
mov rax, qword [0x140027098]
xor rax, rsp
mov qword [rbp - 0x50], rax
mov r12, qword [rbp + 0x30]
xor r13d, r13d
mov rbx, rcx
mov r15, r8
mov r14, rdx
mov esi, 0x220
lea rcx, [rsp + 0x80]
mov r8d, esi
xor edx, edx
mov qword [r12], r13
mov rdi, r9
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x68], r13
call fcn.140010880
lea rcx, [rsp + 0x88]
or r9, 0xffffffffffffffff
mov r8, rbx
mov edx, 0x80
mov dword [rsp + 0x80], esi
mov dword [rsp + 0x84], 0xf
call fcn.140010790
lea rax, [rsp + 0x44]
lea rdx, str.Type
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x188]
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, 0x80070000
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140002d1f
lea rax, [rsp + 0x44]
lea rdx, str.DefaultDrive
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x18c]
xor r8d, r8d
mov rcx, r14
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140002d1f
lea rax, [rsp + 0x44]
lea rdx, str.Priority
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x190]
xor r8d, r8d
mov rcx, r14
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140002d1f
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x80]
mov rdx, rdi
mov rcx, r15
call fcn.140002640
mov ebx, eax
test eax, eax
js 0x140002d1f
lea rax, [rsp + 0x48]
lea rdx, str.Properties
mov r9d, 0x20019
xor r8d, r8d
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
lea eax, [r13 + 1]
cmp ebx, 0x80070002
cmove ebx, eax
test ebx, ebx
js 0x140002d1f
jne 0x140002a52
mov edi, pe_nt_image_headers64
lea rcx, [rsp + 0x60]
mov edx, edi
call fcn.140015a94
mov ebx, eax
test eax, eax
js 0x140002d1f
mov esi, r13d
mov dword [rsp + 0x44], 0x200
xor edx, edx
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
lea r8, [rsp + 0x2a0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x40], 0x80
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x140002a3d
cmp eax, 0xea
jne 0x1400029eb
mov edx, dword [rsp + 0x44]
mov eax, edi
mov ecx, edx
add rcx, rcx
cmp rax, rcx
jae 0x140002a33
lea edi, [rdx*2 + 0x32]
lea rcx, [rsp + 0x60]
mov edx, edi
call fcn.140015a94
mov ebx, eax
test eax, eax
js 0x140002d1f
mov rcx, qword [rsp + 0x48]
lea eax, [rdi + rdi]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0x44]
lea r8, [rsp + 0x2a0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
mov edx, esi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x40], 0x80
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140002d1f
mov rcx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
lea rdx, [rsp + 0x2a0]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov ebx, eax
test eax, eax
js 0x140002d1f
lea eax, [rdi + rdi]
inc esi
mov dword [rsp + 0x44], eax
mov edx, esi
jmp 0x140002923
mov ebx, 0x8000ffff
jmp 0x140002d1f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r13
mov esi, 0x80070000
lea rax, [rsp + 0x48]
lea rdx, str.Sources
mov r9d, 0x20019
xor r8d, r8d
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
mov eax, 1
cmp ebx, 0x80070002
cmove ebx, eax
test ebx, ebx
js 0x140002d1f
jne 0x140002baa
mov edi, r13d
xor edx, edx
jmp 0x140002b3d
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x2a0]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140002d1f
mov rcx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x70]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x2a0]
mov r9, r15
call qword [rax + 0x90]
mov r11, qword [rsp + 0x70]
test r11, r11
je 0x140002b29
mov rax, qword [r11 + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, r11
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x70], r13
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
mov qword [rsp + 0x50], r13
mov edx, edi
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
lea r8, [rsp + 0x2a0]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x40], 0x80
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140002aa5
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070103
cmove ebx, r13d
test ebx, ebx
js 0x140002d1f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r13
lea rax, [rsp + 0x48]
mov r15d, 0x20019
lea rdx, str.Resources
xor r8d, r8d
mov rcx, r14
mov r9d, r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14d, 1
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070002
cmove ebx, r14d
test ebx, ebx
js 0x140002d1f
jne 0x140002d00
mov edi, r13d
xor edx, edx
jmp 0x140002c97
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x2a0]
mov r9d, r15d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140002d1f
mov rcx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
lea r9, [rsp + 0x68]
mov rax, qword [rcx]
lea rdx, [rsp + 0x2a0]
call qword [rax + 0x58]
mov ebx, eax
test eax, eax
js 0x140002d1f
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x140002c82
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x68], r13
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, r14d
mov qword [rsp + 0x50], r13
mov edx, edi
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
lea r8, [rsp + 0x2a0]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x40], 0x80
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140002c02
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070103
cmove ebx, r13d
test ebx, ebx
js 0x140002d1f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r13
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0xe8]
mov r11, qword [rsp + 0x58]
mov qword [rsp + 0x58], r13
mov qword [r12], r11
mov ebx, r13d
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x140002d3e
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, qword [rsp + 0x70]
test rdx, rdx
je 0x140002d5d
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140002d6c
call fcn.140016048
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140002d7c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140002d8c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140002dbe
mov rax, qword [rcx]
call qword [rax + 0xf8]
mov r11, qword [rsp + 0x58]
test r11, r11
je 0x140002dbe
mov rax, qword [r11 + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, r11
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, ebx
mov rcx, qword [rbp - 0x50]
xor rcx, rsp
call fcn.140010528
add rsp, 0x3b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret