Function at 0x1401f0060
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 [0x140415a10]
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.1401fcb40
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
lea r9d, [r12 + 6]
lea r8, [0x140355a28]
mov rcx, qword [rsp + 0x40]
call fcn.1402ba94c
lea edx, [r12 + 6]
lea rcx, [rsp + 0x40]
call fcn.1401fde50
nop
mov qword [rsp + 0x58], r12
lea edx, [r12 + 6]
lea rcx, [rsp + 0x50]
call fcn.1401fcb40
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.1402ba94c
lea edx, [r12 + 6]
lea rcx, [rsp + 0x50]
call fcn.1401fde50
nop
lea rax, [rbp + 0x100]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f0153
mov qword [rsp + 0x38], r12
lea r14, [0x140346ce0]
test ebx, ebx
jne 0x1401f0174
mov qword [rsp + 0x30], r14
jmp 0x1401f019d
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x100]
mov rcx, qword [rsp + 0x30]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401fde50
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.1400d2ba0
nop
lea r8, [rsp + 0x40]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.1400d2ba0
nop
cmp dword [rbp - 0x28], 0
jle 0x1401f01e0
mov rcx, qword [rbp - 0x30]
call fcn.1402b7350
nop
cmp dword [rsp + 0x38], 0
jle 0x1401f01f2
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
nop
cmp dword [rsp + 0x58], 0
jle 0x1401f0204
mov rcx, qword [rsp + 0x50]
call fcn.1402b7350
nop
cmp dword [rsp + 0x48], 0
jle 0x1401f0215
mov rcx, qword [rsp + 0x40]
call fcn.1402b7350
lea rdx, [rbp - 0x58]
mov rcx, qword [rsi + 8]
call fcn.1400f8ca0
mov rbx, rax
test rax, rax
je 0x1401f0b00
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 0x1401f0289
mov rdx, qword [rbp - 0x58]
lea rcx, str.GetFileInfo___failed_on__s_r_n
call fcn.1402b9694
jmp 0x1401f0b00
mov ecx, dword [rbp]
call fcn.1402b7390
mov rsi, rax
mov qword [rbp + 0x48], rax
test rax, rax
je 0x1401f0b00
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 0x1401f02cf
mov rdx, qword [rbp - 0x58]
lea rcx, str.OpenDataStream___failed_on__s_r_n
call fcn.1402b9694
jmp 0x1401f0af7
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.1402b6dbc
mov r15, rax
test rax, rax
je 0x1401f0319
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 0x1401f031c
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 0x1401f037a
mov ecx, 4
call fcn.1402b6dbc
mov rbx, rax
mov qword [rbp - 0x48], rax
test rax, rax
je 0x1401f0366
mov dword [rax], r12d
mov qword [rbp + 0xa0], rax
jmp 0x1401f0374
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_.0
mov qword [rbp + 0x68], rax
lea rax, vtable.Core::Collections::Generic::LinkedList_class_Core::String_.1.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.1401fcfe0
nop
lea r8, [rbp - 0x38]
lea rdx, [rbp + 0x20]
mov rcx, r15
call fcn.14014fdf0
test al, al
je 0x1401f041a
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.140150220
inc ebx
test al, al
je 0x1401f040a
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x70]
mov rax, qword [rbp + 0x70]
call qword [rax]
jmp 0x1401f03e0
cmp dword [rbp - 0x80], 0
jle 0x1401f041a
mov rcx, qword [rsp + 0x78]
call fcn.1402b7350
mov ecx, 0x18
call fcn.1402b6dbc
mov r14, rax
test rax, rax
je 0x1401f0444
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 0x1401f0447
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 0x1401f049b
mov ecx, 4
call fcn.1402b6dbc
mov r13, rax
test rax, rax
je 0x1401f0489
mov dword [rax], r12d
mov qword [rbp + 0xb8], rax
jmp 0x1401f0493
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 0x1401f0a6a
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.1401fcfe0
nop
lea r12, [0x140346ce0]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], 0
mov qword [rbp - 0x60], 0
mov edx, 5
lea rcx, [rbp - 0x68]
call fcn.1401fcb40
mov eax, dword [rbp - 0x60]
inc eax
movsxd rdx, eax
mov r9d, 5
lea r8, str.Start
mov rcx, qword [rbp - 0x68]
call fcn.1402ba94c
mov edx, 5
lea rcx, [rbp - 0x68]
call fcn.1401fde50
nop
mov rdi, qword [rsp + 0x78]
test rdi, rdi
jne 0x1401f053d
mov ebx, esi
mov qword [rsp + 0x48], rdi
jmp 0x1401f0558
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1401f0541
mov qword [rsp + 0x48], 0
test ebx, ebx
jne 0x1401f055f
mov qword [rsp + 0x40], r12
jmp 0x1401f0584
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
mov r8, rdi
mov rcx, qword [rsp + 0x40]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.1401fde50
nop
lea r8, [rbp - 0x38]
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.14014fdf0
test al, al
sete bl
cmp dword [rsp + 0x48], 0
jle 0x1401f05b8
mov rcx, qword [rsp + 0x40]
call fcn.1402b7350
test bl, bl
je 0x1401f05c0
xor al, al
jmp 0x1401f05d5
lea r9, [rsp + 0x50]
lea r8, [rbp - 0x68]
mov rdx, qword [rbp - 0x38]
mov rcx, r15
call fcn.14014fc80
test al, al
sete bl
cmp dword [rbp - 0x60], 0
jle 0x1401f05e9
mov rcx, qword [rbp - 0x68]
call fcn.1402b7350
test bl, bl
jne 0x1401f09d2
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1401f09d7
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x1401f0603
test rax, rax
je 0x1401f09d7
cmp dword [rsp + 0x5c], 0
jle 0x1401f0a05
movzx ecx, word [rcx]
call fcn.1402bbd40
test eax, eax
je 0x1401f09d2
mov rcx, qword [rsp + 0x50]
call fcn.1402b79c8
mov edx, eax
call fcn.1401f0b40
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 0x1401f0684
mov rdx, qword [rsi]
mov rcx, qword [rbx + 0x20]
call fcn.1402b71dc
test eax, eax
jns 0x1401f0678
mov rbx, qword [rbx + 0x10]
jmp 0x1401f067e
mov rdi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x1401f0662
mov rbx, qword [rbp + 8]
cmp rdi, qword [rbx]
je 0x1401f06a7
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rsi]
call fcn.1402b71dc
test eax, eax
js 0x1401f06a7
mov qword [rbp + 0x40], rdi
lea rax, [rbp + 0x40]
jmp 0x1401f06b2
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 0x1401f09d2
lea rax, [0x140346ce0]
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.1401fcb40
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.1402ba94c
lea edx, [rsi + 9]
lea rcx, [rbp - 0x78]
call fcn.1401fde50
nop
mov rdi, qword [rsp + 0x78]
test rdi, rdi
jne 0x1401f071d
mov ebx, esi
mov qword [rsp + 0x38], rsi
jmp 0x1401f0734
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1401f0721
mov qword [rsp + 0x38], rsi
test ebx, ebx
jne 0x1401f0742
lea rdi, [0x140346ce0]
mov qword [rsp + 0x30], rdi
jmp 0x1401f076e
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
mov r8, rdi
mov rcx, qword [rsp + 0x30]
call fcn.1402ba94c
lea rdi, [0x140346ce0]
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401fde50
nop
lea r8, [rbp + 0x58]
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.14014fdf0
test al, al
sete bl
cmp dword [rsp + 0x38], 0
jle 0x1401f07a2
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
test bl, bl
je 0x1401f07aa
xor al, al
jmp 0x1401f07bf
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x78]
mov rdx, qword [rbp + 0x58]
mov rcx, r15
call fcn.14014fc80
test al, al
sete bl
cmp dword [rbp - 0x70], 0
jle 0x1401f07d3
mov rcx, qword [rbp - 0x78]
call fcn.1402b7350
test bl, bl
je 0x1401f084a
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.1401fc3b0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x60]
call fcn.1401fcb40
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.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x60]
call fcn.1401fde50
nop
cmp dword [rbp + 0xc8], 0
jle 0x1401f084a
mov rcx, qword [rbp + 0xc0]
call fcn.1402b7350
cmp dword [rsp + 0x6c], 0
je 0x1401f085b
lea rcx, [rsp + 0x60]
call fcn.1401ef160
mov qword [rbp + 0xd0], rdi
mov qword [rbp + 0xd8], rsi
mov r8d, 1
lea rdx, [0x14034e1bc]
lea rcx, [rsp + 0x78]
call fcn.1401fdbf0
test eax, eax
jle 0x1401f08f2
mov r8d, 1
lea rdx, str.svchost.exe
lea rcx, [rsp + 0x60]
call fcn.1401fc8b0
test al, al
jne 0x1401f08ba
mov r8d, 1
lea rdx, str.CredentialEnrollmentManager.exe
lea rcx, [rsp + 0x60]
call fcn.1401fc8b0
test al, al
je 0x1401f08f2
mov r8, qword [rsp + 0x78]
lea rdx, str.HKLMSYSTEM_s
lea rcx, [rbp + 0x30]
call fcn.1401fcfe0
mov rdx, qword [rbp + 0x30]
lea rcx, str.Cloaked_Registry_Key__we_ignore_this_one__r_n_tPath_s_r_n
call fcn.1402b9694
cmp dword [rbp + 0x38], 0
jle 0x1401f09c1
mov rcx, qword [rbp + 0x30]
jmp 0x1401f09bb
mov r8, qword [rsp + 0x78]
lea rdx, str.HKLMSYSTEM_s
lea rcx, [rbp + 0x10]
call fcn.1401fcfe0
nop
mov rdx, qword [rbp + 0x10]
lea rcx, str.Cloaked_Registry_Key__r_n_tPath_s_r_n
call fcn.1402b9694
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x20], xmm0
lea rdx, [rbp - 0x20]
lea rcx, str._tImagePath_s_r_n
call fcn.1402b9694
mov r8b, 1
lea rdx, [rsp + 0x60]
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 8]
call fcn.1400f8340
mov rbx, rax
test rax, rax
je 0x1401f09b1
movabs rax, 0x200000200
or qword [rbx + 0x40], rax
lea rdx, [rbp + 0x10]
mov rcx, rbx
call fcn.1400eb2a0
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.1401faae0
nop
lea r8, [rbp - 0x30]
mov edx, 9
mov rcx, rbx
call fcn.14000b8f0
nop
cmp dword [rbp - 0x28], 0
jle 0x1401f09b1
mov rcx, qword [rbp - 0x30]
call fcn.1402b7350
nop
cmp dword [rbp + 0x18], 0
jle 0x1401f09c1
mov rcx, qword [rbp + 0x10]
call fcn.1402b7350
nop
cmp dword [rsp + 0x68], 0
jle 0x1401f09d2
mov rcx, qword [rsp + 0x60]
call fcn.1402b7350
mov rcx, qword [rsp + 0x50]
cmp dword [rsp + 0x58], 0
jle 0x1401f09e4
call fcn.1402b7350
nop
cmp dword [rbp - 0x80], 0
jle 0x1401f09f4
mov rcx, qword [rsp + 0x78]
call fcn.1402b7350
mov rax, qword [r14]
mov rcx, r14
call qword [rax]
test al, al
je 0x1401f0a66
jmp 0x1401f04b0
lea rcx, [rbp - 0x20]
call fcn.1401fa810
nop
lea rax, vtable.Core::IndexOutOfRangeException.0
mov qword [rbp - 0x20], rax
mov edx, 0x2a
lea rcx, [rbp - 0x18]
call fcn.1401fcb40
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.1402ba94c
mov edx, 0x2a
lea rcx, [rbp - 0x18]
call fcn.1401fde50
nop
lea rdx, [0x14040da50]
lea rcx, [rbp - 0x20]
call fcn.1402bece8
nop
mov rsi, qword [rbp + 0x48]
test r13, r13
je 0x1401f0a95
mov eax, dword [r13]
test eax, eax
jle 0x1401f0a7d
dec eax
mov dword [r13], eax
cmp dword [r13], 0
jne 0x1401f0a95
mov rcx, r14
call fcn.1402150f0
mov rcx, r13
call fcn.1402150f0
nop
cmp dword [rbp + 0x28], 0
jle 0x1401f0aa5
mov rcx, qword [rbp + 0x20]
call fcn.1402b7350
nop
lea rax, vtable.Core::Collections::Generic::LinkedList_class_Core::String_.0
mov qword [rbp + 0x68], rax
lea rax, vtable.Core::Collections::Generic::LinkedList_class_Core::String_.1.0
mov qword [rbp + 0x70], rax
lea rcx, [rbp + 0x70]
call fcn.140118ed0
nop
mov rbx, qword [rbp - 0x48]
test rbx, rbx
je 0x1401f0af7
mov eax, dword [rbx]
test eax, eax
jle 0x1401f0ad8
dec eax
mov dword [rbx], eax
cmp dword [rbx], 0
jne 0x1401f0af7
test r15, r15
je 0x1401f0aef
mov rax, qword [r15]
mov edx, 1
mov rcx, r15
call qword [rax]
mov rcx, rbx
call fcn.1402150f0
mov rcx, rsi
call fcn.1402b7350
nop
cmp dword [rbp - 0x50], 0
jle 0x1401f0b0f
mov rcx, qword [rbp - 0x58]
call fcn.1402b7350
xor al, al
mov rcx, qword [rbp + 0x900]
xor rcx, rsp
call fcn.1402b6d40
mov rbx, qword [rsp + 0xa68]
add rsp, 0xa10
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret