Function at 0x14000ffa0
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp + 0x380], rax
xor edi, edi
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x30], rdi
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVC
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
lea r9d, [rdi + 0x11]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010036
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.Owners
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x3c], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14001003d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x140010225
mov qword [rsp + 0x4a0], rbx
xorps xmm0, xmm0
mov qword [rsp + 0x4a8], rsi
mov rbx, rdi
mov esi, dword [rsp + 0x38]
mov qword [rsp + 0x4b0], r14
movdqu xmmword [rsp + 0x40], xmm0
add esi, 1
je 0x1400100cb
add rsi, rsi
cmp rsi, 0x1000
jb 0x1400100a2
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x14001024b
lfence
call fcn.14002aae8
test rax, rax
je 0x140010245
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1400100b5
test rsi, rsi
je 0x1400100b5
lfence
mov rcx, rsi
call fcn.14002aae8
mov rbx, rax
mov r8, rsi
lea rdi, [rsi + rbx]
xor edx, edx
mov rcx, rbx
mov r14, rbx
call fcn.14002d0c0
jmp 0x1400100d0
mov r14, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov qword [rsp + 0x20], r14
lea rdx, str.Owners
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14001010f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
jmp 0x1400101d0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rbx], 0
je 0x1400101ce
nop
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call fcn.14002d0c0
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x8024
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140010108
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x208
call fcn.14002d0c0
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbx
lea r8, str._lsINF_ls
mov edx, 0x104
lea rcx, [rbp + 0x170]
call fcn.1400126d0
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140010108
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400101b0
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], 0
jne 0x140010120
xor bl, bl
test r14, r14
je 0x14001020a
sub rdi, r14
mov rax, r14
sar rdi, 1
add rdi, rdi
cmp rdi, 0x1000
jb 0x1400101ff
mov r14, qword [r14 - 8]
add rdi, 0x27
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010245
mov rdx, rdi
mov rcx, r14
call fcn.14002a9dc
mov rsi, qword [rsp + 0x4a8]
movzx eax, bl
mov rbx, qword [rsp + 0x4a0]
mov r14, qword [rsp + 0x4b0]
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14002a740
mov rdi, qword [rsp + 0x4b8]
add rsp, 0x490
pop rbp
ret
call fcn.140031340
int3
call fcn.14000c400
int3