Function at 0x1401f2770
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x910]
sub rsp, 0xa10
mov qword [rbp + 0xf8], 0xfffffffffffffffe
mov qword [rsp + 0xa68], rbx
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rbp + 0x900], rax
mov qword [rbp + 8], r8
mov rdi, rdx
mov rsi, rcx
mov qword [rbp + 0x50], rcx
mov edx, 0x400
lea rcx, [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor r12d, r12d
mov qword [rsp + 0x48], r12
lea edx, [r12 + 6]
lea rcx, [rsp + 0x40]
call fcn.1401ff260
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
lea r9d, [r12 + 6]
lea r8, [0x140357a88]
mov rcx, qword [rsp + 0x40]
call fcn.1402bd21c
lea edx, [r12 + 6]
lea rcx, [rsp + 0x40]
call fcn.140200570
nop
mov qword [rsp + 0x58], r12
lea edx, [r12 + 6]
lea rcx, [rsp + 0x50]
call fcn.1401ff260
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
lea r9d, [r12 + 6]
lea r8, str.CONFIG
mov rcx, qword [rsp + 0x50]
call fcn.1402bd21c
lea edx, [r12 + 6]
lea rcx, [rsp + 0x50]
call fcn.140200570
nop
lea rax, [rbp + 0x100]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f2863
mov qword [rsp + 0x38], r12
lea r14, [0x140348ca0]
test ebx, ebx
jne 0x1401f2884
mov qword [rsp + 0x30], r14
jmp 0x1401f28ad
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x100]
mov rcx, qword [rsp + 0x30]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140200570
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.1400d2bd0
nop
lea r8, [rsp + 0x40]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.1400d2bd0
nop
cmp dword [rbp - 0x28], 0
jle 0x1401f28f0
mov rcx, qword [rbp - 0x30]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x38], 0
jle 0x1401f2902
mov rcx, qword [rsp + 0x30]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x58], 0
jle 0x1401f2914
mov rcx, qword [rsp + 0x50]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x48], 0
jle 0x1401f2925
mov rcx, qword [rsp + 0x40]
call fcn.1402b9c20
lea rdx, [rbp - 0x58]
mov rcx, qword [rsi + 8]
call fcn.1400f9c50
mov rbx, rax
test rax, rax
je 0x1401f3210
lea rax, vtable.Core::DateTime.0
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], r12
mov dword [rbp + 0xf0], 1
mov r10, qword [rbx]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xe0]
lea r8, [rbp]
lea rdx, [rbp - 0x58]
mov rcx, rbx
call qword [r10 + 0x28]
test al, al
jne 0x1401f2999
mov rdx, qword [rbp - 0x58]
lea rcx, str.GetFileInfo___failed_on__s_r_n
call fcn.1402bbf64
jmp 0x1401f3210
mov ecx, dword [rbp]
call fcn.1402b9c60
mov rsi, rax
mov qword [rbp + 0x48], rax
test rax, rax
je 0x1401f3210
mov r9, qword [rbx]
xor r8d, r8d
lea rdx, [rbp - 0x58]
mov rcx, rbx
call qword [r9 + 0x30]
mov rbx, rax
test rax, rax
jne 0x1401f29df
mov rdx, qword [rbp - 0x58]
lea rcx, str.OpenDataStream___failed_on__s_r_n
call fcn.1402bbf64
jmp 0x1401f3207
mov rax, qword [rax]
lea r9, [rbp - 0x40]
mov r8d, dword [rbp]
mov rdx, rsi
mov rcx, rbx
call qword [rax + 8]
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov ecx, 0x18
call fcn.1402b968c
mov r15, rax
test rax, rax
je 0x1401f2a29
mov eax, dword [rbp - 0x40]
lea rcx, vtable.RegParser.0
mov qword [r15], rcx
mov qword [r15 + 8], rsi
mov qword [r15 + 0x10], rax
jmp 0x1401f2a2c
mov r15, r12
lea rax, vtable.Core::SharedPtr_class_RegParser_.0
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], r15
mov rbx, r12
mov qword [rbp - 0x48], rbx
mov qword [rbp + 0xa0], rbx
test r15, r15
je 0x1401f2a8a
mov ecx, 4
call fcn.1402b968c
mov rbx, rax
mov qword [rbp - 0x48], rax
test rax, rax
je 0x1401f2a76
mov dword [rax], r12d
mov qword [rbp + 0xa0], rax
jmp 0x1401f2a84
mov rbx, r12
mov qword [rbp - 0x48], rbx
mov qword [rbp + 0xa0], rbx
mov dword [rbx], 1
lea rax, vtable.Core::Collections::Generic::LinkedList_class_Core::String_.1.0
mov qword [rbp + 0x68], rax
lea rax, vtable.Core::Collections::Generic::LinkedList_class_Core::String_.0
mov qword [rbp + 0x70], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x78], xmm0
mov dword [rbp + 0x88], r12d
mov r8, qword [rdi]
lea rdx, str._sServices
lea rcx, [rbp + 0x20]
call fcn.1401ff700
nop
lea r8, [rbp - 0x38]
lea rdx, [rbp + 0x20]
mov rcx, r15
call fcn.140151090
test al, al
je 0x1401f2b2a
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], r12
mov ebx, r12d
mov rdi, qword [rbp - 0x38]
nop word [rax + rax]
lea r9, [rsp + 0x78]
mov r8d, ebx
mov rdx, rdi
mov rcx, r15
call fcn.1401514c0
inc ebx
test al, al
je 0x1401f2b1a
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x70]
mov rax, qword [rbp + 0x70]
call qword [rax]
jmp 0x1401f2af0
cmp dword [rbp - 0x80], 0
jle 0x1401f2b2a
mov rcx, qword [rsp + 0x78]
call fcn.1402b9c20
mov ecx, 0x18
call fcn.1402b968c
mov r14, rax
test rax, rax
je 0x1401f2b54
lea rax, vtable.Core::Collections::Generic::LinkedList_class_Core::String_::Enumerator_class_Core::String_.0
mov qword [r14], rax
lea rax, [rbp + 0x68]
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], r12
jmp 0x1401f2b57
mov r14, r12
lea rax, vtable.Core::SharedPtr_class_Core::Collections::Generic::IEnumerator_class_Core::String__.0
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0xb0], r14
mov r13, r12
mov qword [rbp + 0xb8], r12
test r14, r14
je 0x1401f2bab
mov ecx, 4
call fcn.1402b968c
mov r13, rax
test rax, rax
je 0x1401f2b99
mov dword [rax], r12d
mov qword [rbp + 0xb8], rax
jmp 0x1401f2ba3
mov r13, r12
mov qword [rbp + 0xb8], r12
mov dword [r13], 1
mov rax, qword [r14]
mov rcx, r14
call qword [rax]
test al, al
je 0x1401f317a
xor esi, esi
nop dword [rax]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
mov r9, qword [rax]
mov r8, qword [rbp + 0x20]
lea rdx, str._s_s_
lea rcx, [rsp + 0x78]
call fcn.1401ff700
nop
lea r12, [0x140348ca0]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], 0
mov qword [rbp - 0x60], 0
mov edx, 5
lea rcx, [rbp - 0x68]
call fcn.1401ff260
mov eax, dword [rbp - 0x60]
inc eax
movsxd rdx, eax
mov r9d, 5
lea r8, str.Start
mov rcx, qword [rbp - 0x68]
call fcn.1402bd21c
mov edx, 5
lea rcx, [rbp - 0x68]
call fcn.140200570
nop
mov rdi, qword [rsp + 0x78]
test rdi, rdi
jne 0x1401f2c4d
mov ebx, esi
mov qword [rsp + 0x48], rdi
jmp 0x1401f2c68
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1401f2c51
mov qword [rsp + 0x48], 0
test ebx, ebx
jne 0x1401f2c6f
mov qword [rsp + 0x40], r12
jmp 0x1401f2c94
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
mov r8, rdi
mov rcx, qword [rsp + 0x40]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140200570
nop
lea r8, [rbp - 0x38]
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.140151090
test al, al
sete bl
cmp dword [rsp + 0x48], 0
jle 0x1401f2cc8
mov rcx, qword [rsp + 0x40]
call fcn.1402b9c20
test bl, bl
je 0x1401f2cd0
xor al, al
jmp 0x1401f2ce5
lea r9, [rsp + 0x50]
lea r8, [rbp - 0x68]
mov rdx, qword [rbp - 0x38]
mov rcx, r15
call fcn.140150f20
test al, al
sete bl
cmp dword [rbp - 0x60], 0
jle 0x1401f2cf9
mov rcx, qword [rbp - 0x68]
call fcn.1402b9c20
test bl, bl
jne 0x1401f30e2
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1401f30e7
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x1401f2d13
test rax, rax
je 0x1401f30e7
cmp dword [rsp + 0x5c], 0
jle 0x1401f3115
movzx ecx, word [rcx]
call fcn.1402be5b0
test eax, eax
je 0x1401f30e2
mov rcx, qword [rsp + 0x50]
call fcn.1402ba298
mov edx, eax
call fcn.1401f3250
mov r12, rax
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x10]
mov rsi, rax
mov rdi, qword [rbp + 8]
mov rdi, qword [rdi]
mov rbx, qword [rdi + 8]
cmp byte [rbx + 0x19], 0
jne 0x1401f2d94
mov rdx, qword [rsi]
mov rcx, qword [rbx + 0x20]
call fcn.1402b9aac
test eax, eax
jns 0x1401f2d88
mov rbx, qword [rbx + 0x10]
jmp 0x1401f2d8e
mov rdi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x1401f2d72
mov rbx, qword [rbp + 8]
cmp rdi, qword [rbx]
je 0x1401f2db7
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rsi]
call fcn.1402b9aac
test eax, eax
js 0x1401f2db7
mov qword [rbp + 0x40], rdi
lea rax, [rbp + 0x40]
jmp 0x1401f2dc2
mov rax, qword [rbx]
mov qword [rbp + 0x60], rax
lea rax, [rbp + 0x60]
mov rax, qword [rax]
xor esi, esi
cmp rax, qword [rbx]
jne 0x1401f30e2
lea rax, [0x140348ca0]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rsi
mov qword [rbp - 0x70], rsi
lea edx, [rsi + 9]
lea rcx, [rbp - 0x78]
call fcn.1401ff260
mov eax, dword [rbp - 0x70]
inc eax
movsxd rdx, eax
lea r9d, [rsi + 9]
lea r8, str.ImagePath
mov rcx, qword [rbp - 0x78]
call fcn.1402bd21c
lea edx, [rsi + 9]
lea rcx, [rbp - 0x78]
call fcn.140200570
nop
mov rdi, qword [rsp + 0x78]
test rdi, rdi
jne 0x1401f2e2d
mov ebx, esi
mov qword [rsp + 0x38], rsi
jmp 0x1401f2e44
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1401f2e31
mov qword [rsp + 0x38], rsi
test ebx, ebx
jne 0x1401f2e52
lea rdi, [0x140348ca0]
mov qword [rsp + 0x30], rdi
jmp 0x1401f2e7e
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
mov r8, rdi
mov rcx, qword [rsp + 0x30]
call fcn.1402bd21c
lea rdi, [0x140348ca0]
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140200570
nop
lea r8, [rbp + 0x58]
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.140151090
test al, al
sete bl
cmp dword [rsp + 0x38], 0
jle 0x1401f2eb2
mov rcx, qword [rsp + 0x30]
call fcn.1402b9c20
test bl, bl
je 0x1401f2eba
xor al, al
jmp 0x1401f2ecf
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x78]
mov rdx, qword [rbp + 0x58]
mov rcx, r15
call fcn.140150f20
test al, al
sete bl
cmp dword [rbp - 0x70], 0
jle 0x1401f2ee3
mov rcx, qword [rbp - 0x78]
call fcn.1402b9c20
test bl, bl
je 0x1401f2f5a
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
mov r8, rax
lea r9, str..sys
lea rdx, str.system32drivers_
lea rcx, [rbp + 0xc0]
call fcn.1401fead0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x60]
call fcn.1401ff260
movsxd r9, dword [rbx + 0xc]
mov ecx, dword [rsp + 0x68]
inc ecx
movsxd rdx, ecx
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x60]
call fcn.1402bd21c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x60]
call fcn.140200570
nop
cmp dword [rbp + 0xc8], 0
jle 0x1401f2f5a
mov rcx, qword [rbp + 0xc0]
call fcn.1402b9c20
cmp dword [rsp + 0x6c], 0
je 0x1401f2f6b
lea rcx, [rsp + 0x60]
call fcn.1401f1870
mov qword [rbp + 0xd0], rdi
mov qword [rbp + 0xd8], rsi
mov r8d, 1
lea rdx, [0x14035018c]
lea rcx, [rsp + 0x78]
call fcn.140200310
test eax, eax
jle 0x1401f3002
mov r8d, 1
lea rdx, str.svchost.exe
lea rcx, [rsp + 0x60]
call fcn.1401fefd0
test al, al
jne 0x1401f2fca
mov r8d, 1
lea rdx, str.CredentialEnrollmentManager.exe
lea rcx, [rsp + 0x60]
call fcn.1401fefd0
test al, al
je 0x1401f3002
mov r8, qword [rsp + 0x78]
lea rdx, str.HKLMSYSTEM_s
lea rcx, [rbp + 0x30]
call fcn.1401ff700
mov rdx, qword [rbp + 0x30]
lea rcx, str.Cloaked_Registry_Key__we_ignore_this_one__r_n_tPath_s_r_n
call fcn.1402bbf64
cmp dword [rbp + 0x38], 0
jle 0x1401f30d1
mov rcx, qword [rbp + 0x30]
jmp 0x1401f30cb
mov r8, qword [rsp + 0x78]
lea rdx, str.HKLMSYSTEM_s
lea rcx, [rbp + 0x10]
call fcn.1401ff700
nop
mov rdx, qword [rbp + 0x10]
lea rcx, str.Cloaked_Registry_Key__r_n_tPath_s_r_n
call fcn.1402bbf64
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x20], xmm0
lea rdx, [rbp - 0x20]
lea rcx, str._tImagePath_s_r_n
call fcn.1402bbf64
mov r8b, 1
lea rdx, [rsp + 0x60]
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 8]
call fcn.1400f92f0
mov rbx, rax
test rax, rax
je 0x1401f30c1
movabs rax, 0x200000200
or qword [rbx + 0x40], rax
lea rdx, [rbp + 0x10]
mov rcx, rbx
call fcn.1400ec540
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x10]
mov r8, rax
mov edx, 8
mov rcx, rbx
call fcn.14000b8f0
mov rdx, r12
lea rcx, [rbp - 0x30]
call fcn.1401fd200
nop
lea r8, [rbp - 0x30]
mov edx, 9
mov rcx, rbx
call fcn.14000b8f0
nop
cmp dword [rbp - 0x28], 0
jle 0x1401f30c1
mov rcx, qword [rbp - 0x30]
call fcn.1402b9c20
nop
cmp dword [rbp + 0x18], 0
jle 0x1401f30d1
mov rcx, qword [rbp + 0x10]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x68], 0
jle 0x1401f30e2
mov rcx, qword [rsp + 0x60]
call fcn.1402b9c20
mov rcx, qword [rsp + 0x50]
cmp dword [rsp + 0x58], 0
jle 0x1401f30f4
call fcn.1402b9c20
nop
cmp dword [rbp - 0x80], 0
jle 0x1401f3104
mov rcx, qword [rsp + 0x78]
call fcn.1402b9c20
mov rax, qword [r14]
mov rcx, r14
call qword [rax]
test al, al
je 0x1401f3176
jmp 0x1401f2bc0
lea rcx, [rbp - 0x20]
call fcn.1401fcf30
nop
lea rax, vtable.Core::IndexOutOfRangeException.0
mov qword [rbp - 0x20], rax
mov edx, 0x2a
lea rcx, [rbp - 0x18]
call fcn.1401ff260
mov eax, dword [rbp - 0x10]
inc eax
movsxd rdx, eax
mov r9d, 0x2a
lea r8, str.Index_was_outside_the_bounds_of_the_array.
mov rcx, qword [rbp - 0x18]
call fcn.1402bd21c
mov edx, 0x2a
lea rcx, [rbp - 0x18]
call fcn.140200570
nop
lea rdx, [0x140410838]
lea rcx, [rbp - 0x20]
call fcn.1402c1558
nop
mov rsi, qword [rbp + 0x48]
test r13, r13
je 0x1401f31a5
mov eax, dword [r13]
test eax, eax
jle 0x1401f318d
dec eax
mov dword [r13], eax
cmp dword [r13], 0
jne 0x1401f31a5
mov rcx, r14
call fcn.1402177e0
mov rcx, r13
call fcn.1402177e0
nop
cmp dword [rbp + 0x28], 0
jle 0x1401f31b5
mov rcx, qword [rbp + 0x20]
call fcn.1402b9c20
nop
lea rax, vtable.Core::Collections::Generic::LinkedList_class_Core::String_.1.0
mov qword [rbp + 0x68], rax
lea rax, vtable.Core::Collections::Generic::LinkedList_class_Core::String_.0
mov qword [rbp + 0x70], rax
lea rcx, [rbp + 0x70]
call fcn.14011a150
nop
mov rbx, qword [rbp - 0x48]
test rbx, rbx
je 0x1401f3207
mov eax, dword [rbx]
test eax, eax
jle 0x1401f31e8
dec eax
mov dword [rbx], eax
cmp dword [rbx], 0
jne 0x1401f3207
test r15, r15
je 0x1401f31ff
mov rax, qword [r15]
mov edx, 1
mov rcx, r15
call qword [rax]
mov rcx, rbx
call fcn.1402177e0
mov rcx, rsi
call fcn.1402b9c20
nop
cmp dword [rbp - 0x50], 0
jle 0x1401f321f
mov rcx, qword [rbp - 0x58]
call fcn.1402b9c20
xor al, al
mov rcx, qword [rbp + 0x900]
xor rcx, rsp
call fcn.1402b9610
mov rbx, qword [rsp + 0xa68]
add rsp, 0xa10
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret