Function at 0x1401dbc70
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 [0x1403eaa10]
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.14000a210
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r12
call fcn.14000a250
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 0x1401dc460
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 0x1401dc456
lea rdi, [0x140323de0]
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 0x1401dc445
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 0x1401dc44c
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 0x1401dbdc0
mov qword [rbp - 0x18], r12
test ebx, ebx
jne 0x1401dbdd8
mov qword [rbp - 0x20], rdi
jmp 0x1401dbdfb
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rbp - 0x18]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x70]
mov rcx, qword [rbp - 0x20]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.1401ea290
nop
movzx eax, byte [0x1403fdd77]
mov byte [rsp + 0x20], al
lea r9, [rbp - 0x20]
lea rdx, [rbp + 0x58]
lea rcx, [rbp - 0x40]
call fcn.1400e9d70
nop
cmp dword [rbp - 0x18], 0
jle 0x1401dbe33
mov rcx, qword [rbp - 0x20]
call fcn.140298600
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 0x1401dc427
lea rax, [rbp + 0x70]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401dbe80
mov qword [rbp + 0x20], r12
test ebx, ebx
jne 0x1401dbe98
mov qword [rbp + 0x18], rdi
jmp 0x1401dbebb
mov edx, ebx
lea rcx, [rbp + 0x18]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rbp + 0x20]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x70]
mov rcx, qword [rbp + 0x18]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rbp + 0x18]
call fcn.1401ea290
mov eax, dword [rbp - 0x4c]
mov dword [rbp + 0x28], eax
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x68]
call fcn.1400ea380
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x48]
lea rcx, [rbp - 0x68]
call fcn.14000a4f0
nop
cmp dword [rbp + 0x20], 0
jle 0x1401dbeff
mov rcx, qword [rbp + 0x18]
call fcn.140298600
mov eax, dword [rbp - 0x4c]
test eax, eax
jne 0x1401dbf0f
lea rsi, str.Boot
jmp 0x1401dbf47
cmp eax, 1
jne 0x1401dbf1d
lea rsi, str.System
jmp 0x1401dbf47
cmp eax, 2
jne 0x1401dbf2b
lea rsi, str.AutoLoad
jmp 0x1401dbf47
cmp eax, 3
jne 0x1401dbf39
lea rsi, str.Manual
jmp 0x1401dbf47
lea rsi, [0x14032c7c8]
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 0x1401dc427
lea rax, [rbp + 0x480]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401dbf90
test ebx, ebx
jle 0x1401dbfc9
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x480]
mov rcx, qword [rsp + 0x60]
call fcn.14029b4d8
jmp 0x1401dbfd0
cmp dword [rsp + 0x6c], 0
jle 0x1401dbfdc
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1401ea290
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 0x1401dc01e
cmp dword [rbp - 0x80], eax
setne r14b
cmp dword [rsp + 0x6c], 0
jle 0x1401dc05e
lea rcx, [rsp + 0x60]
call fcn.1401db7f0
test r14b, r14b
je 0x1401dc05e
mov edx, 0x104
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jle 0x1401dc05e
mov r8d, eax
lea rdx, [rbp + 0x270]
lea rcx, [rsp + 0x60]
call fcn.1401dbbd0
mov qword [rsp + 0x78], r12
mov edx, 5
lea rcx, [rsp + 0x70]
call fcn.1401e9030
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
mov r9d, 5
lea r8, str.HKLM_
mov rcx, qword [rsp + 0x70]
call fcn.14029b4d8
mov edx, 5
lea rcx, [rsp + 0x70]
call fcn.1401ea290
nop
lea rdx, str.SYSTEMCurrentControlSetServices
lea rcx, [rsp + 0x70]
call fcn.1401e7680
mov edx, dword [rsp + 0x7c]
inc edx
lea rcx, [rsp + 0x70]
call fcn.1401e9030
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.1401ea290
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.1401e7680
mov edx, dword [rsp + 0x7c]
inc edx
lea rcx, [rsp + 0x70]
call fcn.1401e9030
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.1401ea290
cmp dword [rsp + 0x6c], 0
jle 0x1401dc20d
mov r8b, 1
lea rdx, [rsp + 0x60]
mov rcx, qword [r13 + 8]
call fcn.1400f9eb0
mov rdi, rax
test rax, rax
je 0x1401dc20d
or qword [rax + 0x40], 0x200
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.1400ed120
lea rax, [rbp + 0x70]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401dc170
mov qword [rbp - 0x28], r12
test ebx, ebx
jne 0x1401dc18f
lea rax, [0x140323de0]
mov qword [rbp - 0x30], rax
jmp 0x1401dc1b2
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rbp - 0x28]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x70]
mov rcx, qword [rbp - 0x30]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.1401ea290
nop
lea r8, [rbp - 0x30]
mov edx, 8
mov rcx, rdi
call fcn.14000b7c0
nop
cmp dword [rbp - 0x28], 0
jle 0x1401dc1df
mov rcx, qword [rbp - 0x30]
call fcn.140298600
mov rdx, rsi
lea rcx, [rbp + 0x30]
call fcn.1401e6fd0
nop
lea r8, [rbp + 0x30]
mov edx, 9
mov rcx, rdi
call fcn.14000b7c0
nop
cmp dword [rbp + 0x38], 0
jle 0x1401dc20d
mov rcx, qword [rbp + 0x30]
call fcn.140298600
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 0x1401dc408
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 0x1401dc3fd
lea rax, [rbp + 0x480]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401dc280
test ebx, ebx
jle 0x1401dc2b9
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x480]
mov rcx, qword [rsp + 0x60]
call fcn.14029b4d8
jmp 0x1401dc2c4
cmp dword [rsp + 0x6c], 0
jle 0x1401dc3fd
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1401ea290
cmp dword [rsp + 0x6c], 0
jle 0x1401dc3fd
lea rcx, [rsp + 0x60]
call fcn.1401db7f0
test r14b, r14b
je 0x1401dc314
mov edx, 0x104
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jle 0x1401dc314
mov r8d, eax
lea rdx, [rbp + 0x270]
lea rcx, [rsp + 0x60]
call fcn.1401dbbd0
cmp dword [rsp + 0x6c], 0
jle 0x1401dc3fd
mov r8b, 1
lea rdx, [rsp + 0x60]
mov rcx, qword [r13 + 8]
call fcn.1400f9eb0
mov rdi, rax
test rax, rax
je 0x1401dc3fd
or qword [rax + 0x40], 0x200
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.1400ed120
lea rax, [rbp + 0x70]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401dc360
mov qword [rbp - 8], r12
test ebx, ebx
jne 0x1401dc37f
lea rax, [0x140323de0]
mov qword [rbp - 0x10], rax
jmp 0x1401dc3a2
mov edx, ebx
lea rcx, [rbp - 0x10]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rbp - 8]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x70]
mov rcx, qword [rbp - 0x10]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rbp - 0x10]
call fcn.1401ea290
nop
lea r8, [rbp - 0x10]
mov edx, 8
mov rcx, rdi
call fcn.14000b7c0
nop
cmp dword [rbp - 8], 0
jle 0x1401dc3cf
mov rcx, qword [rbp - 0x10]
call fcn.140298600
mov rdx, rsi
lea rcx, [rbp + 8]
call fcn.1401e6fd0
nop
lea r8, [rbp + 8]
mov edx, 9
mov rcx, rdi
call fcn.14000b7c0
nop
cmp dword [rbp + 0x10], 0
jle 0x1401dc3fd
mov rcx, qword [rbp + 8]
call fcn.140298600
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rsp + 0x78], 0
jle 0x1401dc419
mov rcx, qword [rsp + 0x70]
call fcn.140298600
lea r14, str.Unknown
lea rdi, [0x140323de0]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rsp + 0x68], 0
jle 0x1401dc44c
mov rcx, qword [rsp + 0x60]
call fcn.140298600
jmp 0x1401dc44c
cmp eax, 0x103
je 0x1401dc456
cmp r15d, dword [rbp - 0x74]
jb 0x1401dbd60
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1403fe608]
lea rbx, vtable.Core::Win32::RegistryKey.0
test al, 1
jne 0x1401dc498
or eax, 1
mov dword [0x1403fe608], eax
mov qword [0x1403fe5e0], rbx
mov qword [0x1403fe5e8], 0xffffffff80000002
lea rcx, [0x1402de040]
call fcn.140299c6c
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 [0x1403fe5e8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401dc56a
lea ecx, [rax + 0x10]
call fcn.14029806c
mov rdi, rax
test rax, rax
je 0x1401dc56a
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 0x1401dc55c
mov r8d, dword [rbp - 0x80]
lea rdx, str.ControlSet_03d
lea rcx, [rbp + 8]
call fcn.1401e94c0
nop
lea r8, [rbp - 0x68]
lea rdx, [rbp + 8]
mov rcx, r13
call fcn.1401dc6f0
nop
cmp dword [rbp + 0x10], ebx
jle 0x1401dc55c
mov rcx, qword [rbp + 8]
call fcn.140298600
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 0x1401dc5d0
mov rsi, qword [rdi + 8]
mov rbx, rsi
cmp byte [rsi + 0x19], 0
jne 0x1401dc5b7
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp - 0x68]
call fcn.14000a110
mov rbx, qword [rbx]
cmp dword [rsi + 0x28], 0
jle 0x1401dc5a2
mov rcx, qword [rsi + 0x20]
call fcn.140298600
mov rcx, rsi
call fcn.1402012c0
mov rsi, rbx
cmp byte [rbx + 0x19], 0
je 0x1401dc583
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 0x1401dc638
cmp rbx, rdi
je 0x1401dc63c
mov r8, rbx
cmp byte [rbx + 0x19], 0
jne 0x1401dc626
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1401dc602
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1401dc626
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1401dc5f4
jmp 0x1401dc626
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1401dc623
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x1401dc623
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1401dc610
mov rbx, rax
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x68]
call fcn.140008cf0
cmp rbx, rdi
jne 0x1401dc5d5
mov rdi, qword [rbp - 0x68]
mov rcx, rdi
call fcn.1402012c0
nop
mov rax, qword [rbp - 0x40]
mov rdi, qword [rax + 8]
mov rbx, rdi
cmp byte [rdi + 0x19], 0
jne 0x1401dc694
nop word [rax + rax]
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp - 0x40]
call fcn.14000a110
mov rbx, qword [rbx]
cmp dword [rdi + 0x28], 0
jle 0x1401dc67f
mov rcx, qword [rdi + 0x20]
call fcn.140298600
mov rcx, rdi
call fcn.1402012c0
mov rdi, rbx
cmp byte [rbx + 0x19], 0
je 0x1401dc660
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.1402012c0
mov al, 1
mov rcx, qword [rbp + 0xc80]
xor rcx, rsp
call fcn.140297ff0
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