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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4f8]
sub rsp, 0x5d0
mov qword [rbp + 0x58], 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 + 0x4c0], rax
mov r14, rcx
mov qword [rbp - 0x70], rcx
xor sil, sil
mov byte [rsp + 0x30], sil
lea r15, [0x14034d1a0]
mov qword [rbp - 0x80], r15
xor r12d, r12d
mov qword [rbp - 0x78], r12
lea r13, vtable.Core::Collection_class_Core::String_.0
mov qword [rbp - 0x20], r13
mov dword [rbp - 0x18], r12d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
mov edx, 0x104
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [rbp + 0x2b0]
or rbx, 0xffffffffffffffff
mov rdi, rbx
nop word [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1401f08b0
mov qword [rsp + 0x50], r12
test edi, edi
jne 0x1401f08ca
mov qword [rsp + 0x48], r15
jmp 0x1401f08f3
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1402028a0
movsxd r9, edi
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x2b0]
mov rcx, qword [rsp + 0x48]
call fcn.1402c06dc
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140203bb0
nop
mov edx, 0x104
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
lea rax, [rbp + 0x2b0]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f0920
mov qword [rsp + 0x68], r12
test ebx, ebx
jne 0x1401f093a
mov qword [rsp + 0x60], r15
jmp 0x1401f0963
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 + 0x2b0]
mov rcx, qword [rsp + 0x60]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.140203bb0
nop
mov qword [rsp + 0x78], r12
mov edx, 0x3a
lea rcx, [rsp + 0x70]
call fcn.1402028a0
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
mov r9d, 0x3a
lea r8, str.HKLMSYSTEMCurrentControlSetServicesWinSock2Parameters
mov rcx, qword [rsp + 0x70]
call fcn.1402c06dc
mov edx, 0x3a
lea rcx, [rsp + 0x70]
call fcn.140203bb0
nop
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.1400ed8e0
mov rbx, rax
mov qword [rbp + 0x10], rax
test rax, rax
je 0x1401f0e7d
lea r8, [rbp - 0x80]
lea rdx, str.Current_Protocol_Catalog
mov rcx, rax
call fcn.1400d9fd0
test al, al
je 0x1401f0e59
mov qword [rbp - 0x50], r12
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401f0e59
lea ecx, [rax + 0x10]
call fcn.1402bcb4c
mov r14, rax
mov qword [rbp - 0x60], rax
lea rcx, vtable.Core::Win32::RegistryKey.0
test rax, rax
je 0x1401f0a42
mov rax, qword [rbp - 0x50]
mov qword [r14], rcx
mov qword [r14 + 8], rax
jmp 0x1401f0a49
mov r14, r12
mov qword [rbp - 0x60], r12
test r14, r14
je 0x1401f0e55
lea rax, str.Catalog_Entries
mov qword [rbp - 0x48], rax
lea rax, str.Catalog_Entries64
mov qword [rbp - 0x40], rax
mov esi, r12d
mov dword [rsp + 0x58], r12d
mov r13, r12
lea rbx, vtable.Core::Array_class_Core::String_.0
nop word [rax + rax]
mov rdi, qword [rbp + r13*8 - 0x48]
mov qword [rbp - 0x68], r12
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [r14 + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401f0ad0
lea ecx, [rax + 0x10]
call fcn.1402bcb4c
mov r15, rax
test rax, rax
je 0x1401f0ad0
mov rax, qword [rbp - 0x68]
lea rcx, vtable.Core::Win32::RegistryKey.0
mov qword [r15], rcx
mov qword [r15 + 8], rax
jmp 0x1401f0ad3
mov r15, r12
test r15, r15
je 0x1401f0e1b
mov qword [rbp - 0x38], rbx
mov dword [rbp - 0x30], r12d
mov qword [rbp - 0x28], r12
lea rdx, [rbp - 0x38]
mov rcx, r15
call fcn.1400ed120
test al, al
je 0x1401f0de1
mov eax, dword [rbp - 0x30]
test eax, eax
jle 0x1401f0de1
mov r14, qword [rbp - 0x28]
mov r12d, eax
nop
mov qword [rbp - 0x58], 0
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, qword [r15 + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401f0b5f
lea ecx, [rax + 0x10]
call fcn.1402bcb4c
mov rbx, rax
test rax, rax
je 0x1401f0b5f
mov rax, qword [rbp - 0x58]
lea rcx, vtable.Core::Win32::RegistryKey.0
mov qword [rbx], rcx
mov qword [rbx + 8], rax
jmp 0x1401f0b61
xor ebx, ebx
test rbx, rbx
je 0x1401f0dcc
lea rax, vtable.Core::ByteArray.0
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x20], 0
xor esi, esi
mov qword [rbp + 0x28], rsi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rbp + 0x30], rax
xor ecx, ecx
mov dword [rsp + 0x34], ecx
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x5c]
xor r8d, r8d
lea rdx, str.PackedCatalogItem
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401f0da5
cmp dword [rsp + 0x5c], 3
jne 0x1401f0da5
mov edx, dword [rsp + 0x34]
lea rcx, [rbp + 0x18]
call fcn.1400d3f50
mov rsi, qword [rbp + 0x28]
test al, al
je 0x1401f0da5
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x5c]
xor r8d, r8d
lea rdx, str.PackedCatalogItem
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401f0da5
mov rax, qword [r14]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9, qword [rbp - 0x80]
mov r8, qword [rsp + 0x70]
lea rdx, str._s_s_s_s_
lea rcx, [rbp]
call fcn.140202d40
nop
mov r8, rsi
lea rdx, [0x140355878]
lea rcx, [rsp + 0x38]
call fcn.140202d40
nop
cmp dword [rsp + 0x44], 0
je 0x1401f0c63
lea rcx, [rsp + 0x38]
call fcn.1401edb40
lea rdx, [rbp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1401f0c86
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1401f0d55
test r13, r13
jne 0x1401f0d42
movsxd rax, dword [rsp + 0x54]
cmp dword [rsp + 0x44], eax
jl 0x1401f0d42
mov r8, rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call fcn.1402beee8
test eax, eax
jne 0x1401f0d42
mov r8d, dword [rsp + 0x54]
lea rdx, [rbp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.140204810
nop
mov r8, rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x48]
call fcn.1400d4050
mov rdi, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x38]
call fcn.1402028a0
movsxd r9, dword [rdi + 0xc]
mov ecx, dword [rsp + 0x40]
inc ecx
movsxd rdx, ecx
mov r8, qword [rdi]
mov rcx, qword [rsp + 0x38]
call fcn.1402c06dc
mov edx, dword [rdi + 0xc]
lea rcx, [rsp + 0x38]
call fcn.140203bb0
nop
cmp dword [rbp + 0x50], r13d
jle 0x1401f0d25
mov rcx, qword [rbp + 0x48]
call fcn.1402bd0e0
nop
cmp dword [rbp + 0x40], 0
jle 0x1401f0d34
mov rcx, qword [rbp + 0x38]
call fcn.1402bd0e0
lea rcx, [rsp + 0x38]
call fcn.14020c540
test al, al
jne 0x1401f0d55
mov byte [rsp + 0x30], 1
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x20]
call fcn.14011a6b0
mov r8b, 1
lea rdx, [rsp + 0x38]
mov rax, qword [rbp - 0x70]
mov rcx, qword [rax + 8]
call fcn.1400fa8d0
test rax, rax
je 0x1401f0d84
or qword [rax + 0x40], 0x8000
lea rdx, [rbp]
mov rcx, rax
call fcn.1400edab0
nop
cmp dword [rsp + 0x40], 0
jle 0x1401f0d96
mov rcx, qword [rsp + 0x38]
call fcn.1402bd0e0
nop
cmp dword [rbp + 8], 0
jle 0x1401f0da5
mov rcx, qword [rbp]
call fcn.1402bd0e0
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
test rsi, rsi
je 0x1401f0dc7
mov r8, rsi
xor edx, edx
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rbp + r13*8 - 0x48]
add r14, 0x10
dec r12
jne 0x1401f0b10
mov r14, qword [rbp - 0x60]
mov esi, dword [rsp + 0x58]
mov rax, qword [r15]
mov edx, 1
mov rcx, r15
call qword [rax]
nop
mov rax, qword [rbp - 0x28]
test rax, rax
je 0x1401f0e1b
lea rbx, [rax - 8]
lea r9, [fcn.140005eb0]
mov r8d, dword [rbx]
mov edx, 0x10
mov rcx, rax
call fcn.1402bda84
mov rcx, rbx
call fcn.1402bcebc
inc esi
mov dword [rsp + 0x58], esi
inc r13
movsxd rax, esi
cmp rax, 2
lea rbx, vtable.Core::Array_class_Core::String_.0
jb 0x1401f0a80
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax]
movzx esi, byte [rsp + 0x30]
mov rbx, qword [rbp + 0x10]
lea r13, vtable.Core::Collection_class_Core::String_.0
mov r14, qword [rbp - 0x70]
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
test sil, sil
je 0x1401f0e7d
mov r8, qword [r14 + 8]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x80]
call fcn.1401f1020
nop
cmp dword [rsp + 0x78], 0
jle 0x1401f0e8f
mov rcx, qword [rsp + 0x70]
call fcn.1402bd0e0
nop
cmp dword [rsp + 0x68], 0
jle 0x1401f0ea1
mov rcx, qword [rsp + 0x60]
call fcn.1402bd0e0
nop
cmp dword [rsp + 0x50], 0
jle 0x1401f0eb3
mov rcx, qword [rsp + 0x48]
call fcn.1402bd0e0
nop
mov qword [rbp - 0x20], r13
mov rbx, qword [rbp - 0x10]
test rbx, rbx
je 0x1401f0ee2
mov rdi, qword [rbx]
cmp dword [rbx + 0x18], 0
jle 0x1401f0ed2
mov rcx, qword [rbx + 0x10]
call fcn.1402bd0e0
mov rcx, rbx
call fcn.14021ae20
mov rbx, rdi
test rdi, rdi
jne 0x1401f0ec0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x18], r12d
cmp dword [rbp - 0x78], 0
jle 0x1401f0efd
mov rcx, qword [rbp - 0x80]
call fcn.1402bd0e0
mov al, 1
mov rcx, qword [rbp + 0x4c0]
xor rcx, rsp
call fcn.1402bcad0
lea r11, [rsp + 0x5d0]
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