Function at 0x1401f5330
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 [0x14041da10]
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 0x1401f5b20
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 0x1401f5b16
lea rdi, [0x14034d1a0]
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 0x1401f5b05
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 0x1401f5b0c
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 0x1401f5480
mov qword [rbp - 0x18], r12
test ebx, ebx
jne 0x1401f5498
mov qword [rbp - 0x20], rdi
jmp 0x1401f54bb
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rbp - 0x18]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x70]
mov rcx, qword [rbp - 0x20]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.140203bb0
nop
movzx eax, byte [0x14043124a]
mov byte [rsp + 0x20], al
lea r9, [rbp - 0x20]
lea rdx, [rbp + 0x58]
lea rcx, [rbp - 0x40]
call fcn.1400eac70
nop
cmp dword [rbp - 0x18], 0
jle 0x1401f54f3
mov rcx, qword [rbp - 0x20]
call fcn.1402bd0e0
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 0x1401f5ae7
lea rax, [rbp + 0x70]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f5540
mov qword [rbp + 0x20], r12
test ebx, ebx
jne 0x1401f5558
mov qword [rbp + 0x18], rdi
jmp 0x1401f557b
mov edx, ebx
lea rcx, [rbp + 0x18]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rbp + 0x20]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x70]
mov rcx, qword [rbp + 0x18]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rbp + 0x18]
call fcn.140203bb0
mov eax, dword [rbp - 0x4c]
mov dword [rbp + 0x28], eax
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x68]
call fcn.14018e760
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 0x1401f55bf
mov rcx, qword [rbp + 0x18]
call fcn.1402bd0e0
mov eax, dword [rbp - 0x4c]
test eax, eax
jne 0x1401f55cf
lea rsi, str.Boot
jmp 0x1401f5607
cmp eax, 1
jne 0x1401f55dd
lea rsi, str.System
jmp 0x1401f5607
cmp eax, 2
jne 0x1401f55eb
lea rsi, str.AutoLoad
jmp 0x1401f5607
cmp eax, 3
jne 0x1401f55f9
lea rsi, str.Manual
jmp 0x1401f5607
lea rsi, [0x1403558b0]
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 0x1401f5ae7
lea rax, [rbp + 0x480]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f5650
test ebx, ebx
jle 0x1401f5689
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x480]
mov rcx, qword [rsp + 0x60]
call fcn.1402c06dc
jmp 0x1401f5690
cmp dword [rsp + 0x6c], 0
jle 0x1401f569c
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.140203bb0
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 0x1401f56de
cmp dword [rbp - 0x80], eax
setne r14b
cmp dword [rsp + 0x6c], 0
jle 0x1401f571e
lea rcx, [rsp + 0x60]
call fcn.1401f4eb0
test r14b, r14b
je 0x1401f571e
mov edx, 0x104
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jle 0x1401f571e
mov r8d, eax
lea rdx, [rbp + 0x270]
lea rcx, [rsp + 0x60]
call fcn.1401f5290
mov qword [rsp + 0x78], r12
mov edx, 5
lea rcx, [rsp + 0x70]
call fcn.1402028a0
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
mov r9d, 5
lea r8, str.HKLM_
mov rcx, qword [rsp + 0x70]
call fcn.1402c06dc
mov edx, 5
lea rcx, [rsp + 0x70]
call fcn.140203bb0
nop
lea rdx, str.SYSTEMCurrentControlSetServices
lea rcx, [rsp + 0x70]
call fcn.140200ef0
mov edx, dword [rsp + 0x7c]
inc edx
lea rcx, [rsp + 0x70]
call fcn.1402028a0
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.140203bb0
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.140200ef0
mov edx, dword [rsp + 0x7c]
inc edx
lea rcx, [rsp + 0x70]
call fcn.1402028a0
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.140203bb0
cmp dword [rsp + 0x6c], 0
jle 0x1401f58cd
mov r8b, 1
lea rdx, [rsp + 0x60]
mov rcx, qword [r13 + 8]
call fcn.1400fa8d0
mov rdi, rax
test rax, rax
je 0x1401f58cd
or qword [rax + 0x40], 0x200
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.1400edab0
lea rax, [rbp + 0x70]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f5830
mov qword [rbp - 0x28], r12
test ebx, ebx
jne 0x1401f584f
lea rax, [0x14034d1a0]
mov qword [rbp - 0x30], rax
jmp 0x1401f5872
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rbp - 0x28]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x70]
mov rcx, qword [rbp - 0x30]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.140203bb0
nop
lea r8, [rbp - 0x30]
mov edx, 8
mov rcx, rdi
call fcn.14000b8f0
nop
cmp dword [rbp - 0x28], 0
jle 0x1401f589f
mov rcx, qword [rbp - 0x30]
call fcn.1402bd0e0
mov rdx, rsi
lea rcx, [rbp + 0x30]
call fcn.140200840
nop
lea r8, [rbp + 0x30]
mov edx, 9
mov rcx, rdi
call fcn.14000b8f0
nop
cmp dword [rbp + 0x38], 0
jle 0x1401f58cd
mov rcx, qword [rbp + 0x30]
call fcn.1402bd0e0
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 0x1401f5ac8
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 0x1401f5abd
lea rax, [rbp + 0x480]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f5940
test ebx, ebx
jle 0x1401f5979
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x480]
mov rcx, qword [rsp + 0x60]
call fcn.1402c06dc
jmp 0x1401f5984
cmp dword [rsp + 0x6c], 0
jle 0x1401f5abd
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.140203bb0
cmp dword [rsp + 0x6c], 0
jle 0x1401f5abd
lea rcx, [rsp + 0x60]
call fcn.1401f4eb0
test r14b, r14b
je 0x1401f59d4
mov edx, 0x104
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jle 0x1401f59d4
mov r8d, eax
lea rdx, [rbp + 0x270]
lea rcx, [rsp + 0x60]
call fcn.1401f5290
cmp dword [rsp + 0x6c], 0
jle 0x1401f5abd
mov r8b, 1
lea rdx, [rsp + 0x60]
mov rcx, qword [r13 + 8]
call fcn.1400fa8d0
mov rdi, rax
test rax, rax
je 0x1401f5abd
or qword [rax + 0x40], 0x200
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.1400edab0
lea rax, [rbp + 0x70]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f5a20
mov qword [rbp - 8], r12
test ebx, ebx
jne 0x1401f5a3f
lea rax, [0x14034d1a0]
mov qword [rbp - 0x10], rax
jmp 0x1401f5a62
mov edx, ebx
lea rcx, [rbp - 0x10]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rbp - 8]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x70]
mov rcx, qword [rbp - 0x10]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rbp - 0x10]
call fcn.140203bb0
nop
lea r8, [rbp - 0x10]
mov edx, 8
mov rcx, rdi
call fcn.14000b8f0
nop
cmp dword [rbp - 8], 0
jle 0x1401f5a8f
mov rcx, qword [rbp - 0x10]
call fcn.1402bd0e0
mov rdx, rsi
lea rcx, [rbp + 8]
call fcn.140200840
nop
lea r8, [rbp + 8]
mov edx, 9
mov rcx, rdi
call fcn.14000b8f0
nop
cmp dword [rbp + 0x10], 0
jle 0x1401f5abd
mov rcx, qword [rbp + 8]
call fcn.1402bd0e0
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rsp + 0x78], 0
jle 0x1401f5ad9
mov rcx, qword [rsp + 0x70]
call fcn.1402bd0e0
lea r14, str.Unknown
lea rdi, [0x14034d1a0]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rsp + 0x68], 0
jle 0x1401f5b0c
mov rcx, qword [rsp + 0x60]
call fcn.1402bd0e0
jmp 0x1401f5b0c
cmp eax, 0x103
je 0x1401f5b16
cmp r15d, dword [rbp - 0x74]
jb 0x1401f5420
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x140431ac0]
lea rbx, vtable.Core::Win32::RegistryKey.0
test al, 1
jne 0x1401f5b58
or eax, 1
mov dword [0x140431ac0], eax
mov qword [0x140431ac8], rbx
mov qword [0x140431ad0], 0xffffffff80000002
lea rcx, [0x1403050b0]
call fcn.1402be804
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 [0x140431ad0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401f5c2a
lea ecx, [rax + 0x10]
call fcn.1402bcb4c
mov rdi, rax
test rax, rax
je 0x1401f5c2a
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 0x1401f5c1c
mov r8d, dword [rbp - 0x80]
lea rdx, str.ControlSet_03d
lea rcx, [rbp + 8]
call fcn.140202d40
nop
lea r8, [rbp - 0x68]
lea rdx, [rbp + 8]
mov rcx, r13
call fcn.1401f5db0
nop
cmp dword [rbp + 0x10], ebx
jle 0x1401f5c1c
mov rcx, qword [rbp + 8]
call fcn.1402bd0e0
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 0x1401f5c90
mov rsi, qword [rdi + 8]
mov rbx, rsi
cmp byte [rsi + 0x19], 0
jne 0x1401f5c77
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp - 0x68]
call fcn.14000a240
mov rbx, qword [rbx]
cmp dword [rsi + 0x28], 0
jle 0x1401f5c62
mov rcx, qword [rsi + 0x20]
call fcn.1402bd0e0
mov rcx, rsi
call fcn.14021ae20
mov rsi, rbx
cmp byte [rbx + 0x19], 0
je 0x1401f5c43
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 0x1401f5cf8
cmp rbx, rdi
je 0x1401f5cfc
mov r8, rbx
cmp byte [rbx + 0x19], 0
jne 0x1401f5ce6
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1401f5cc2
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1401f5ce6
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1401f5cb4
jmp 0x1401f5ce6
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1401f5ce3
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x1401f5ce3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1401f5cd0
mov rbx, rax
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x68]
call fcn.140008e20
cmp rbx, rdi
jne 0x1401f5c95
mov rdi, qword [rbp - 0x68]
mov rcx, rdi
call fcn.14021ae20
nop
mov rax, qword [rbp - 0x40]
mov rdi, qword [rax + 8]
mov rbx, rdi
cmp byte [rdi + 0x19], 0
jne 0x1401f5d54
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 0x1401f5d3f
mov rcx, qword [rdi + 0x20]
call fcn.1402bd0e0
mov rcx, rdi
call fcn.14021ae20
mov rdi, rbx
cmp byte [rbx + 0x19], 0
je 0x1401f5d20
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.14021ae20
mov al, 1
mov rcx, qword [rbp + 0xc80]
xor rcx, rsp
call fcn.1402bcad0
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