Function at 0x1401eb860
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 - 0x4c8]
sub rsp, 0x5a0
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rbp + 0x490], rax
mov qword [rbp - 0x38], rcx
mov sil, 1
mov byte [rsp + 0x30], sil
mov edx, 0x104
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [rbp + 0x280]
or rbx, 0xffffffffffffffff
mov rdi, rbx
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1401eb8d0
xor r15d, r15d
mov qword [rsp + 0x50], r15
lea r14, [0x140346ce0]
test edi, edi
jne 0x1401eb8f4
mov qword [rsp + 0x48], r14
jmp 0x1401eb91d
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1401fcb40
movsxd r9, edi
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x280]
mov rcx, qword [rsp + 0x48]
call fcn.1402ba94c
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1401fde50
nop
mov edx, 0x104
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
lea rax, [rbp + 0x280]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401eb943
mov qword [rsp + 0x68], r15
test ebx, ebx
jne 0x1401eb95d
mov qword [rsp + 0x60], r14
jmp 0x1401eb986
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x280]
mov rcx, qword [rsp + 0x60]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1401fde50
nop
mov qword [rsp + 0x78], r15
mov edx, 0x3a
lea rcx, [rsp + 0x70]
call fcn.1401fcb40
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
mov r9d, 0x3a
lea r8, str.HKLMSYSTEMCurrentControlSetServicesWinSock2Parameters
mov rcx, qword [rsp + 0x70]
call fcn.1402ba94c
mov edx, 0x3a
lea rcx, [rsp + 0x70]
call fcn.1401fde50
nop
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.1400eb0d0
mov rbx, rax
mov qword [rbp - 0x10], rax
test rax, rax
je 0x1401ebe35
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r15
lea r8, [rbp - 0x80]
lea rdx, str.Current_Protocol_Catalog
mov rcx, rax
call fcn.1400d8ae0
test al, al
je 0x1401ebe17
mov qword [rbp - 0x58], r15
lea rax, [rbp - 0x58]
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 0x1401ebe17
lea ecx, [rax + 0x10]
call fcn.1402b6dbc
mov rdi, rax
mov qword [rbp - 0x60], rax
lea r12, vtable.Core::Win32::RegistryKey.0
test rax, rax
je 0x1401eba6d
mov rax, qword [rbp - 0x58]
mov qword [rdi], r12
mov qword [rdi + 8], rax
jmp 0x1401eba74
mov rdi, r15
mov qword [rbp - 0x60], r15
test rdi, rdi
je 0x1401ebe17
lea rax, str.Catalog_Entries
mov qword [rbp + 0x18], rax
lea rax, str.Catalog_Entries64
mov qword [rbp + 0x20], rax
mov esi, r15d
mov dword [rsp + 0x58], r15d
mov r13, r15
lea rbx, vtable.Core::Array_class_Core::String_.0
nop word [rax + rax]
mov qword [rbp - 0x68], r15
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp + r13*8 + 0x18]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401ebaf6
lea ecx, [rax + 0x10]
call fcn.1402b6dbc
mov r14, rax
test rax, rax
je 0x1401ebaf6
mov rax, qword [rbp - 0x68]
mov qword [r14], r12
mov qword [r14 + 8], rax
jmp 0x1401ebaf9
mov r14, r15
test r14, r14
je 0x1401ebde4
mov qword [rbp - 0x50], rbx
mov dword [rbp - 0x48], r15d
mov qword [rbp - 0x40], r15
lea rdx, [rbp - 0x50]
mov rcx, r14
call fcn.1400ea910
test al, al
je 0x1401ebdaa
mov eax, dword [rbp - 0x48]
test eax, eax
jle 0x1401ebdaa
mov r15, qword [rbp - 0x40]
mov r12d, eax
xor edi, edi
nop word [rax + rax]
mov qword [rbp - 0x70], rdi
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, qword [r14 + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401ebb8b
lea ecx, [rax + 0x10]
call fcn.1402b6dbc
mov rbx, rax
test rax, rax
je 0x1401ebb8b
mov rax, qword [rbp - 0x70]
lea rcx, vtable.Core::Win32::RegistryKey.0
mov qword [rbx], rcx
mov qword [rbx + 8], rax
jmp 0x1401ebb8e
mov rbx, rdi
test rbx, rbx
je 0x1401ebd8b
lea rax, vtable.Core::ByteArray.0
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], edi
mov rsi, rdi
mov qword [rbp - 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rbp - 0x18], rax
mov dword [rsp + 0x34], edi
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
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 0x1401ebd67
cmp dword [rsp + 0x5c], 3
jne 0x1401ebd67
mov edx, dword [rsp + 0x34]
lea rcx, [rbp - 0x30]
call fcn.1400d2aa0
mov rsi, qword [rbp - 0x20]
test al, al
je 0x1401ebd67
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 0x1401ebd67
mov r8, rsi
lea rdx, [0x14034fa04]
lea rcx, [rsp + 0x38]
call fcn.1401fcfe0
nop
cmp dword [rsp + 0x44], 0
je 0x1401ebc64
lea rcx, [rsp + 0x38]
call fcn.1401e7e00
lea rdx, [rbp + 0x30]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1401ebc87
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1401ebd56
test r13, r13
jne 0x1401ebd43
movsxd rax, dword [rsp + 0x54]
cmp dword [rsp + 0x44], eax
jl 0x1401ebd43
mov r8, rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call fcn.1402b9158
test eax, eax
jne 0x1401ebd43
mov r8d, dword [rsp + 0x54]
lea rdx, [rbp - 8]
lea rcx, [rsp + 0x38]
call fcn.1401feab0
nop
mov r8, rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 8]
call fcn.1400d2ba0
mov rdi, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x38]
call fcn.1401fcb40
movsxd r9, dword [rdi + 0xc]
mov eax, dword [rsp + 0x40]
inc eax
movsxd rdx, eax
mov r8, qword [rdi]
mov rcx, qword [rsp + 0x38]
call fcn.1402ba94c
mov edx, dword [rdi + 0xc]
lea rcx, [rsp + 0x38]
call fcn.1401fde50
nop
cmp dword [rbp + 0x10], r13d
jle 0x1401ebd26
mov rcx, qword [rbp + 8]
call fcn.1402b7350
nop
cmp dword [rbp], 0
jle 0x1401ebd35
mov rcx, qword [rbp - 8]
call fcn.1402b7350
lea rcx, [rsp + 0x38]
call fcn.140205f30
test al, al
jne 0x1401ebd56
lea rdx, [rsp + 0x38]
mov rcx, qword [rbp - 0x38]
call fcn.140117a40
mov byte [rsp + 0x30], 0
cmp dword [rsp + 0x40], 0
jle 0x1401ebd67
mov rcx, qword [rsp + 0x38]
call fcn.1402b7350
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
test rsi, rsi
je 0x1401ebd89
mov r8, rsi
xor edx, edx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
add r15, 0x10
dec r12
jne 0x1401ebb40
mov rdi, qword [rbp - 0x60]
mov esi, dword [rsp + 0x58]
xor r15d, r15d
lea r12, vtable.Core::Win32::RegistryKey.0
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax]
nop
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x1401ebde4
lea rbx, [rax - 8]
lea r9, [fcn.140005eb0]
mov r8d, dword [rbx]
mov edx, 0x10
mov rcx, rax
call fcn.1402b7cf4
mov rcx, rbx
call fcn.1402b712c
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 0x1401ebab0
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
movzx esi, byte [rsp + 0x30]
mov rbx, qword [rbp - 0x10]
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
cmp dword [rbp - 0x78], 0
jle 0x1401ebe35
mov rcx, qword [rbp - 0x80]
call fcn.1402b7350
nop
cmp dword [rsp + 0x78], 0
jle 0x1401ebe47
mov rcx, qword [rsp + 0x70]
call fcn.1402b7350
nop
cmp dword [rsp + 0x68], 0
jle 0x1401ebe59
mov rcx, qword [rsp + 0x60]
call fcn.1402b7350
nop
cmp dword [rsp + 0x50], 0
jle 0x1401ebe6a
mov rcx, qword [rsp + 0x48]
call fcn.1402b7350
movzx eax, sil
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.1402b6d40
lea r11, [rsp + 0x5a0]
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