Function at 0x1400a91f0
Capabilities:
Check if file exists
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push r12
push r13
push r14
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rbp + 0x380], rax
xor r13d, r13d
mov r12, rdx
mov rbx, rcx
mov r14d, r13d
test rcx, rcx
je 0x1400a9572
test rdx, rdx
je 0x1400a9572
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400a9572
cmp dword [0x14045ebc8], r13d
je 0x1400a9266
movzx ecx, word [0x14045e53c]
call fcn.140084710
lea rdx, [0x140339680]
jmp 0x1400a926d
lea rdx, str.SYSTEMControlSet001_services
mov r9d, 1
lea rax, [rsp + 0x40]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 3]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a9568
mov qword [rsp + 0x490], r15
lea r8, [0x140339790]
mov r9, rbx
mov dword [rsp + 0x50], 0x104
mov edx, 0x104
lea rcx, [rsp + 0x60]
mov r15d, r13d
call fcn.14004ebd0
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x38], r13
lea r8, [rbp + 0x170]
mov qword [rsp + 0x30], r13
xor edx, edx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1400a9555
mov qword [rsp + 0x4e0], rsi
mov qword [rsp + 0x498], rdi
nop word [rax + rax]
inc r15d
cmp dword [0x14045e968], r13d
jne 0x1400a9545
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov r9d, 1
mov qword [rsp + 0x48], r13
lea rdx, [rbp + 0x170]
mov dword [rsp + 0x54], r13d
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 3]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a9391
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400a93a1
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [0x14044b738]
lea rax, [rsp + 0x54]
lea rdx, [0x1403397a0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400a93a1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x54]
cmp eax, 0x10
je 0x1400a93ba
cmp eax, 0x20
je 0x1400a93ba
cmp eax, 0x100
jne 0x1400a94f0
mov rcx, qword [rsp + 0x40]
lea r8, [0x1403397b0]
lea rdx, [rbp + 0x170]
call fcn.140060200
mov rsi, rax
test rax, rax
je 0x1400a94f0
mov rcx, rax
call fcn.140054e40
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
jne 0x1400a94db
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathGetArgsW]
mov rdx, rax
test rax, rax
je 0x1400a9455
or rcx, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rbx + rcx*2 + 2], r13w
lea rcx, [rcx + 1]
jne 0x1400a9420
lea rax, [rdi + rcx*2]
mov qword [rsp + 0x28], rdx
mov edx, 0x104
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
mov r9, r12
lea r8, str._s_s__s
call fcn.14004ebd0
jmp 0x1400a948e
or rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], r13w
lea rax, [rax + 1]
jne 0x1400a9460
lea rax, [rdi + rax*2]
mov r9, r12
lea r8, [0x140339740]
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.14004ebd0
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], r13w
lea rax, [rax + 1]
jne 0x1400a94a0
mov rcx, qword [rsp + 0x40]
lea eax, [rax*2 + 2]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x50], eax
lea r8, [0x140339750]
mov dword [rsp + 0x20], eax
lea rdx, [rbp + 0x170]
call fcn.140060450
mov r14d, eax
mov rcx, rsi
call fcn.14012a2d4
test rdi, rdi
je 0x1400a94f0
mov rcx, rdi
call fcn.14012a2d4
xor edx, edx
mov dword [rsp + 0x50], 0x104
mov r8d, 0x208
lea rcx, [rbp + 0x170]
call fcn.14027b2c0
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x38], r13
lea r8, [rbp + 0x170]
mov qword [rsp + 0x30], r13
mov edx, r15d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x1400a9310
mov rsi, qword [rsp + 0x4e0]
mov rdi, qword [rsp + 0x498]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x490]
call fcn.140084820
mov eax, r14d
jmp 0x1400a9574
xor eax, eax
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x4a0
pop r14
pop r13
pop r12
pop rbx
pop rbp
ret