Function at 0x1401f1cf0
Capabilities:
Get common file path
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xcb8]
sub rsp, 0xd90
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rbp + 0xc80], rax
mov r13, rcx
xor r12d, r12d
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r12
call fcn.14000a340
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r12
call fcn.14000a380
mov qword [rbp - 0x68], rax
lea r8, [rbp]
lea rdx, str.SYSTEMCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1401f24e0
mov dword [rbp - 0x74], r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x74]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov r15d, r12d
cmp dword [rbp - 0x74], r12d
jbe 0x1401f24d6
lea rdi, [0x140348ca0]
lea r14, str.Unknown
nop dword [rax]
nop dword [rax + rax]
mov r9d, 0x100
lea r8, [rbp + 0x70]
mov edx, r15d
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
inc r15d
test eax, eax
jne 0x1401f24c5
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 9
xor r8d, r8d
lea rdx, [rbp + 0x70]
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401f24cc
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r12
lea rax, [rbp + 0x70]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f1e40
mov qword [rbp - 0x18], r12
test ebx, ebx
jne 0x1401f1e58
mov qword [rbp - 0x20], rdi
jmp 0x1401f1e7b
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rbp - 0x18]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x70]
mov rcx, qword [rbp - 0x20]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.140200570
nop
movzx eax, byte [0x14042c16a]
mov byte [rsp + 0x20], al
lea r9, [rbp - 0x20]
lea rdx, [rbp + 0x58]
lea rcx, [rbp - 0x40]
call fcn.1400e97f0
nop
cmp dword [rbp - 0x18], 0
jle 0x1401f1eb3
mov rcx, qword [rbp - 0x20]
call fcn.1402b9c20
mov dword [rbp - 0x78], r12d
mov dword [rbp - 0x70], 0x800
mov dword [rbp - 0x50], 4
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x78]
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401f24a7
lea rax, [rbp + 0x70]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f1f00
mov qword [rbp + 0x20], r12
test ebx, ebx
jne 0x1401f1f18
mov qword [rbp + 0x18], rdi
jmp 0x1401f1f3b
mov edx, ebx
lea rcx, [rbp + 0x18]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rbp + 0x20]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x70]
mov rcx, qword [rbp + 0x18]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rbp + 0x18]
call fcn.140200570
mov eax, dword [rbp - 0x4c]
mov dword [rbp + 0x28], eax
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x68]
call fcn.14018cb20
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x48]
lea rcx, [rbp - 0x68]
call fcn.14000a620
nop
cmp dword [rbp + 0x20], 0
jle 0x1401f1f7f
mov rcx, qword [rbp + 0x18]
call fcn.1402b9c20
mov eax, dword [rbp - 0x4c]
test eax, eax
jne 0x1401f1f8f
lea rsi, str.Boot
jmp 0x1401f1fc7
cmp eax, 1
jne 0x1401f1f9d
lea rsi, str.System
jmp 0x1401f1fc7
cmp eax, 2
jne 0x1401f1fab
lea rsi, str.AutoLoad
jmp 0x1401f1fc7
cmp eax, 3
jne 0x1401f1fb9
lea rsi, str.Manual
jmp 0x1401f1fc7
lea rsi, [0x140351a28]
cmp eax, 4
cmovne rsi, r14
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x480]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x78]
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401f24a7
lea rax, [rbp + 0x480]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f2010
test ebx, ebx
jle 0x1401f2049
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x480]
mov rcx, qword [rsp + 0x60]
call fcn.1402bd21c
jmp 0x1401f2050
cmp dword [rsp + 0x6c], 0
jle 0x1401f205c
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.140200570
xor r14b, r14b
mov dword [rbp - 0x80], r12d
mov dword [rbp - 0x70], 4
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.WOW64
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401f209e
cmp dword [rbp - 0x80], eax
setne r14b
cmp dword [rsp + 0x6c], 0
jle 0x1401f20de
lea rcx, [rsp + 0x60]
call fcn.1401f1870
test r14b, r14b
je 0x1401f20de
mov edx, 0x104
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jle 0x1401f20de
mov r8d, eax
lea rdx, [rbp + 0x270]
lea rcx, [rsp + 0x60]
call fcn.1401f1c50
mov qword [rsp + 0x78], r12
mov edx, 5
lea rcx, [rsp + 0x70]
call fcn.1401ff260
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
mov r9d, 5
lea r8, str.HKLM_
mov rcx, qword [rsp + 0x70]
call fcn.1402bd21c
mov edx, 5
lea rcx, [rsp + 0x70]
call fcn.140200570
nop
lea rdx, str.SYSTEMCurrentControlSetServices
lea rcx, [rsp + 0x70]
call fcn.1401fd8b0
mov edx, dword [rsp + 0x7c]
inc edx
lea rcx, [rsp + 0x70]
call fcn.1401ff260
movsxd rcx, dword [rsp + 0x7c]
mov rax, qword [rsp + 0x70]
mov ebx, 0x5c
mov word [rax + rcx*2], bx
mov edx, dword [rsp + 0x7c]
inc edx
lea rcx, [rsp + 0x70]
call fcn.140200570
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.1401fd8b0
mov edx, dword [rsp + 0x7c]
inc edx
lea rcx, [rsp + 0x70]
call fcn.1401ff260
movsxd rcx, dword [rsp + 0x7c]
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov edx, dword [rsp + 0x7c]
inc edx
lea rcx, [rsp + 0x70]
call fcn.140200570
cmp dword [rsp + 0x6c], 0
jle 0x1401f228d
mov r8b, 1
lea rdx, [rsp + 0x60]
mov rcx, qword [r13 + 8]
call fcn.1400f92f0
mov rdi, rax
test rax, rax
je 0x1401f228d
or qword [rax + 0x40], 0x200
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.1400ec540
lea rax, [rbp + 0x70]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f21f0
mov qword [rbp - 0x28], r12
test ebx, ebx
jne 0x1401f220f
lea rax, [0x140348ca0]
mov qword [rbp - 0x30], rax
jmp 0x1401f2232
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rbp - 0x28]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x70]
mov rcx, qword [rbp - 0x30]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.140200570
nop
lea r8, [rbp - 0x30]
mov edx, 8
mov rcx, rdi
call fcn.14000b8f0
nop
cmp dword [rbp - 0x28], 0
jle 0x1401f225f
mov rcx, qword [rbp - 0x30]
call fcn.1402b9c20
mov rdx, rsi
lea rcx, [rbp + 0x30]
call fcn.1401fd200
nop
lea r8, [rbp + 0x30]
mov edx, 9
mov rcx, rdi
call fcn.14000b8f0
nop
cmp dword [rbp + 0x38], 0
jle 0x1401f228d
mov rcx, qword [rbp + 0x30]
call fcn.1402b9c20
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Parameters
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401f2488
mov dword [rbp - 0x7c], 0x800
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x480]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x78]
xor r8d, r8d
lea rdx, str.ServiceDll
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401f247d
lea rax, [rbp + 0x480]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f2300
test ebx, ebx
jle 0x1401f2339
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x480]
mov rcx, qword [rsp + 0x60]
call fcn.1402bd21c
jmp 0x1401f2344
cmp dword [rsp + 0x6c], 0
jle 0x1401f247d
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.140200570
cmp dword [rsp + 0x6c], 0
jle 0x1401f247d
lea rcx, [rsp + 0x60]
call fcn.1401f1870
test r14b, r14b
je 0x1401f2394
mov edx, 0x104
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jle 0x1401f2394
mov r8d, eax
lea rdx, [rbp + 0x270]
lea rcx, [rsp + 0x60]
call fcn.1401f1c50
cmp dword [rsp + 0x6c], 0
jle 0x1401f247d
mov r8b, 1
lea rdx, [rsp + 0x60]
mov rcx, qword [r13 + 8]
call fcn.1400f92f0
mov rdi, rax
test rax, rax
je 0x1401f247d
or qword [rax + 0x40], 0x200
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.1400ec540
lea rax, [rbp + 0x70]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f23e0
mov qword [rbp - 8], r12
test ebx, ebx
jne 0x1401f23ff
lea rax, [0x140348ca0]
mov qword [rbp - 0x10], rax
jmp 0x1401f2422
mov edx, ebx
lea rcx, [rbp - 0x10]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rbp - 8]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x70]
mov rcx, qword [rbp - 0x10]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rbp - 0x10]
call fcn.140200570
nop
lea r8, [rbp - 0x10]
mov edx, 8
mov rcx, rdi
call fcn.14000b8f0
nop
cmp dword [rbp - 8], 0
jle 0x1401f244f
mov rcx, qword [rbp - 0x10]
call fcn.1402b9c20
mov rdx, rsi
lea rcx, [rbp + 8]
call fcn.1401fd200
nop
lea r8, [rbp + 8]
mov edx, 9
mov rcx, rdi
call fcn.14000b8f0
nop
cmp dword [rbp + 0x10], 0
jle 0x1401f247d
mov rcx, qword [rbp + 8]
call fcn.1402b9c20
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rsp + 0x78], 0
jle 0x1401f2499
mov rcx, qword [rsp + 0x70]
call fcn.1402b9c20
lea r14, str.Unknown
lea rdi, [0x140348ca0]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rsp + 0x68], 0
jle 0x1401f24cc
mov rcx, qword [rsp + 0x60]
call fcn.1402b9c20
jmp 0x1401f24cc
cmp eax, 0x103
je 0x1401f24d6
cmp r15d, dword [rbp - 0x74]
jb 0x1401f1de0
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x14042c9e0]
lea rbx, vtable.Core::Win32::RegistryKey.0
test al, 1
jne 0x1401f2518
or eax, 1
mov dword [0x14042c9e0], eax
mov qword [0x14042c9e8], rbx
mov qword [0x14042c9f0], 0xffffffff80000002
lea rcx, [0x1403017d0]
call fcn.1402bb344
mov qword [rbp - 0x58], r12
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMSelect
mov rcx, qword [0x14042c9f0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401f25ea
lea ecx, [rax + 0x10]
call fcn.1402b968c
mov rdi, rax
test rax, rax
je 0x1401f25ea
mov rcx, qword [rbp - 0x58]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov dword [rbp - 0x80], r12d
mov dword [rbp - 0x7c], 4
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
xor r8d, r8d
lea rdx, str.Current
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x1401f25dc
mov r8d, dword [rbp - 0x80]
lea rdx, str.ControlSet_03d
lea rcx, [rbp + 8]
call fcn.1401ff700
nop
lea r8, [rbp - 0x68]
lea rdx, [rbp + 8]
mov rcx, r13
call fcn.1401f2770
nop
cmp dword [rbp + 0x10], ebx
jle 0x1401f25dc
mov rcx, qword [rbp + 8]
call fcn.1402b9c20
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
nop
mov rdi, qword [rbp - 0x68]
mov rbx, qword [rdi]
cmp rbx, rbx
jne 0x1401f2650
mov rsi, qword [rdi + 8]
mov rbx, rsi
cmp byte [rsi + 0x19], 0
jne 0x1401f2637
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp - 0x68]
call fcn.14000a240
mov rbx, qword [rbx]
cmp dword [rsi + 0x28], 0
jle 0x1401f2622
mov rcx, qword [rsi + 0x20]
call fcn.1402b9c20
mov rcx, rsi
call fcn.1402177e0
mov rsi, rbx
cmp byte [rbx + 0x19], 0
je 0x1401f2603
mov rdi, qword [rbp - 0x68]
mov qword [rdi + 8], rdi
mov rax, qword [rbp - 0x68]
mov qword [rax], rax
mov rax, qword [rbp - 0x68]
mov qword [rax + 0x10], rax
mov qword [rbp - 0x60], r12
jmp 0x1401f26b8
cmp rbx, rdi
je 0x1401f26bc
mov r8, rbx
cmp byte [rbx + 0x19], 0
jne 0x1401f26a6
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1401f2682
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1401f26a6
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1401f2674
jmp 0x1401f26a6
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1401f26a3
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x1401f26a3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1401f2690
mov rbx, rax
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x68]
call fcn.140008e20
cmp rbx, rdi
jne 0x1401f2655
mov rdi, qword [rbp - 0x68]
mov rcx, rdi
call fcn.1402177e0
nop
mov rax, qword [rbp - 0x40]
mov rdi, qword [rax + 8]
mov rbx, rdi
cmp byte [rdi + 0x19], 0
jne 0x1401f2714
nop word [rax + rax]
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp - 0x40]
call fcn.14000a240
mov rbx, qword [rbx]
cmp dword [rdi + 0x28], 0
jle 0x1401f26ff
mov rcx, qword [rdi + 0x20]
call fcn.1402b9c20
mov rcx, rdi
call fcn.1402177e0
mov rdi, rbx
cmp byte [rbx + 0x19], 0
je 0x1401f26e0
mov rax, qword [rbp - 0x40]
mov qword [rax + 8], rax
mov rax, qword [rbp - 0x40]
mov qword [rax], rax
mov rax, qword [rbp - 0x40]
mov qword [rax + 0x10], rax
mov qword [rbp - 0x38], r12
mov rcx, qword [rbp - 0x40]
call fcn.1402177e0
mov al, 1
mov rcx, qword [rbp + 0xc80]
xor rcx, rsp
call fcn.1402b9610
lea r11, [rsp + 0xd90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret