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

Disassembly:
push rbp
push rbx
push rdi
push r13
push r14
lea rbp, [rsp - 0x9e0]
sub rsp, 0xae0
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x9c0], rax
mov r13, rdx
mov rbx, rcx
xor r14d, r14d
lea rcx, [rbp + 0x7b0]
xor edx, edx
mov r8d, 0x208
mov edi, r14d
call fcn.1402767a0
xor edx, edx
lea rcx, [rbp + 0x5a0]
mov r8d, 0x208
call fcn.1402767a0
xor edx, edx
lea rcx, [rbp + 0x390]
mov r8d, 0x208
call fcn.1402767a0
test rbx, rbx
je 0x1400a58d5
test r13, r13
je 0x1400a58d5
mov rcx, r13
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400a58d5
lea rax, [rsp + 0x50]
mov rcx, 0xffffffff80000002
lea r9d, [r14 + 1]
mov qword [rsp + 0x20], rax
lea r8d, [r14 + 4]
lea rdx, str.SYSTEMControlSet001_services
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a58cc
mov rax, qword [rbx + 0x480]
lea r8, [0x140333878]
mov qword [rsp + 0xb20], rsi
lea rcx, [rbp + 0x7b0]
mov qword [rsp + 0xad8], r12
mov r9, rax
mov r12, qword [rbx + 0x488]
mov edx, 0x104
mov rbx, rax
mov dword [rsp + 0x60], 0x104
mov esi, r14d
mov qword [rsp + 0x48], rax
call fcn.14004e9f0
mov r9, rbx
lea r8, str.__s
mov edx, 0x104
lea rcx, [rbp + 0x390]
call fcn.14004e9f0
test r12, r12
je 0x1400a54d4
mov rdx, rbx
mov rcx, r12
call fcn.1402779b8
test eax, eax
je 0x1400a54d4
mov r9, r12
lea r8, [0x140333908]
mov edx, 0x104
lea rcx, [rbp + 0x5a0]
call fcn.14004e9f0
mov r9, r12
lea r8, [0x1403338f8]
mov edx, 0x104
lea rcx, [rbp + 0x390]
call fcn.14004e9f0
jmp 0x1400a54d7
mov r12, r14
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], r14
lea r8, [rbp + 0x180]
mov qword [rsp + 0x30], r14
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1400a58b1
mov qword [rsp + 0xad0], r15
movabs r15, 0x1000100010000
inc esi
cmp dword [0x140455b64], 0
mov dword [rsp + 0x40], esi
jne 0x1400a58a9
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov r9d, 1
mov qword [rsp + 0x58], r14
lea rdx, [rbp + 0x180]
mov dword [rsp + 0x64], r14d
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 3]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a55a5
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400a55b5
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [0x140443784]
lea rax, [rsp + 0x64]
lea rdx, [0x1403338e8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400a55b5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rsp + 0x64]
cmp ecx, 0x30
ja 0x1400a55c4
bt r15, rcx
jb 0x1400a55d0
cmp ecx, 0x100
jne 0x1400a5855
mov rcx, qword [rsp + 0x50]
lea r8, [0x140333960]
lea rdx, [rbp + 0x180]
call fcn.14005fa90
mov r15, rax
test rax, rax
je 0x1400a584b
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x1400a584b
or rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [r15 + rcx*2], 0
jne 0x1400a5610
cmp rcx, 2
jbe 0x1400a584b
mov r8d, 1
lea rdx, str._HOMEDRIVE___USERPROFILE___HOMEPATH___temp___PATH___SystemDrive___APPDATA___ProgramFiles_x86____ProgramFiles___windir___windir___systemroot___systemroot____systemroot____systemroot__:_Recycle.Bin_:_Recycle.Bin_:Windows_:Windows_:Users_:Documents_and_Settings_:ProgramData_:ProgramDataPackages_:ProgramDataPackages_:ProgramDataPackage_Cache_:Program_Files__x86__:Program_Files__x86_Microsoft_:Program_Files__x86_Microsoft_:Program_Files__x86_Microsoft_:Program_Files__x86_Microsoft_:Program_Files__x86_Windows_:Program_Files__x86_Windows_:Program_Files__x86_Windows_:Program_Files__x86_Windows_:Program_Files__x86_Common_Files_:Program_Files__x86_Common_Files_:Program_Files_:Program_FilesMicrosoft_:Program_FilesMicrosoft_:Program_FilesMicrosoft_:Program_FilesMicrosoft_:Program_FilesWindows_:Program_FilesWindows_:Program_FilesWindows_:Program_FilesWindows_:Program_FilesWindowsCommon_Files_:Program_FilesWindowsCommon_Files_:Program_FilesWindowsApps_:Program_FilesWindowsApps_:UsersAppDataLocal_:UsersAppDataLocalOneDrive_:UsersAppDataLocalOneDrive_:UsersAppDataLocalPackages_:UsersAppDataLocalPackages_:UsersAppDataLocalMicrosoft_:UsersAppDataLocalMicrosoft_:UsersAppDataLocalMicrosoft_:UsersAppDataLocalMicrosoft_:UsersAppDataLocalLow_:UsersAppDataLocalLowMicrosoft_:UsersAppDataLocalLowMicrosoft_:UsersAppDataLocalLowMicrosoft_:UsersAppDataLocalLowMicrosoft_:UsersAppDataRoaming_:UsersAppDataRoamingMicrosoft_:UsersAppDataRoamingMicrosoft_:UsersAppDataRoamingMicrosoft_:UsersAppDataRoamingMicrosoft_:UsersAppData_:UsersDocuments_:UsersDesktop_:UsersDesktop_:UsersOneDrive_:UsersOneDrive_
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
je 0x1400a584b
mov rcx, r15
call fcn.140054780
mov rsi, rax
test r12, r12
je 0x1400a5699
cmp word [rax], 0x22
jne 0x1400a5679
xor r8d, r8d
lea rdx, [rbp + 0x390]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
jne 0x1400a5679
lea r14d, [rax + 1]
mov rbx, r12
jmp 0x1400a56e0
xor r8d, r8d
lea rdx, [rbp + 0x5a0]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
jne 0x1400a582f
mov rbx, r12
jmp 0x1400a56e0
test rbx, rbx
je 0x1400a582f
cmp word [rax], 0x22
jne 0x1400a56c5
xor r8d, r8d
lea rdx, [rbp + 0x390]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
jne 0x1400a56c5
lea r14d, [rax + 1]
jmp 0x1400a56e0
xor r8d, r8d
lea rdx, [rbp + 0x7b0]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
jne 0x1400a582f
test rbx, rbx
je 0x1400a582a
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x208
call fcn.1402767a0
or rax, 0xffffffffffffffff
test r14d, r14d
je 0x1400a5720
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400a5704
inc rax
lea r8, str.__s_s
jmp 0x1400a5733
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400a5720
lea r8, [0x140333940]
lea rax, [rsi + rax*2]
mov r9, r13
mov edx, 0x104
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x70]
call fcn.14004e9f0
mov rdx, rsi
mov rcx, r15
call fcn.1402779b8
test eax, eax
je 0x1400a57e3
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_PathGetArgsW]
mov rdi, rax
test rax, rax
je 0x1400a57e3
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x208
call fcn.1402767a0
test r14d, r14d
je 0x1400a57aa
or rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [rbx + rcx*2], 0
jne 0x1400a5790
inc rcx
lea r8, str.__s_s__s
lea rax, [rsi + rcx*2]
jmp 0x1400a57c7
or rax, 0xffffffffffffffff
nop
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400a57b0
lea rax, [rsi + rax*2]
lea r8, str._s_s__s
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x70]
mov r9, r13
mov qword [rsp + 0x20], rax
mov edx, 0x104
call fcn.14004e9f0
lea rcx, [rsp + 0x70]
or rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400a57f0
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 2]
lea r9, [rsp + 0x70]
mov dword [rsp + 0x60], eax
lea r8, [0x1403339a0]
mov dword [rsp + 0x20], eax
lea rdx, [rbp + 0x180]
call fcn.14005fce0
mov edi, eax
mov rbx, qword [rsp + 0x48]
mov rcx, r15
call fcn.140125e14
test rsi, rsi
je 0x1400a5844
mov rcx, rsi
call fcn.140125e14
mov esi, dword [rsp + 0x40]
xor r14d, r14d
movabs r15, 0x1000100010000
xor edx, edx
mov dword [rsp + 0x60], 0x104
mov r8d, 0x208
lea rcx, [rbp + 0x180]
call fcn.1402767a0
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], r14
lea r8, [rbp + 0x180]
mov qword [rsp + 0x30], r14
mov edx, esi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x1400a5521
mov r15, qword [rsp + 0xad0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12, qword [rsp + 0xad8]
mov rsi, qword [rsp + 0xb20]
call fcn.14007f940
mov eax, edi
jmp 0x1400a58d7
xor eax, eax
mov rcx, qword [rbp + 0x9c0]
xor rcx, rsp
call fcn.140125a70
add rsp, 0xae0
pop r14
pop r13
pop rdi
pop rbx
pop rbp
ret