Function at 0x14000c06c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x140053010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
movdqa xmm0, xmmword [0x14004ce10]
mov r12, rcx
mov qword [rbp - 0x69], rdx
lea rcx, [rbp - 0x39]
mov ebx, 0x104
xor r14d, r14d
mov edx, ebx
mov qword [rbp - 0x39], r14
xor r8d, r8d
movdqu xmmword [rbp - 0x29], xmm0
call fcn.14000c778
cmp qword [rbp - 0x21], 8
lea rcx, [rbp - 0x39]
mov edx, ebx
cmovae rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, 1
jbe 0x14000c112
mov edx, eax
cmp rdx, qword [rbp - 0x29]
ja 0x14000c100
cmp qword [rbp - 0x21], 8
lea rax, [rbp - 0x39]
mov qword [rbp - 0x29], rdx
cmovae rax, qword [rbp - 0x39]
mov word [rax + rdx*2], r14w
jmp 0x14000c122
sub rdx, qword [rbp - 0x29]
lea rcx, [rbp - 0x39]
xor r8d, r8d
call fcn.14000c778
jmp 0x14000c122
lea rdx, [0x14004c0e8]
lea rcx, [rbp - 0x39]
call fcn.140009818
cmp qword [rbp - 0x21], 8
lea rcx, [rbp - 0x39]
mov r8, qword [rbp - 0x39]
lea rdi, [rbp - 0x39]
mov rax, qword [rbp - 0x29]
lea rsi, [rbp - 0x39]
cmovae rcx, r8
cmovae rdi, r8
cmovae rsi, r8
lea rbx, [rcx + rax*2]
cmp rdi, rbx
je 0x14000c168
sub rsi, rdi
movzx ecx, word [rdi]
call fcn.140022374
mov word [rdi + rsi], ax
add rdi, 2
cmp rdi, rbx
jne 0x14000c153
mov ebx, 0x10000
mov ecx, ebx
call fcn.1400211f4
mov rdi, rax
test rax, rax
je 0x14000c59e
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
lea esi, [r9 + 0x10]
mov ecx, esi
call qword [0x140055be8]
mov r15d, 0xc0000004
jmp 0x14000c1c9
lea eax, [rbx + rbx]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.1400211d8
test rax, rax
je 0x14000c2a1
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov ecx, esi
mov rdi, rax
call qword [0x140055be8]
cmp eax, r15d
je 0x14000c19d
test eax, eax
js 0x14000c2a1
xorps xmm0, xmm0
mov qword [rbp + 0x17], r14
mov edx, 0x2000
lea rcx, [rbp + 7]
movdqu xmmword [rbp + 7], xmm0
call fcn.14000ccfc
mov r13d, r14d
cmp dword [rdi], r14d
jbe 0x14000c554
mov eax, r13d
lea rcx, [rax + rax*2]
lea r15, [rdi + rcx*8]
cmp dword [r15 + 8], 0xa
jb 0x14000c548
mov r8, qword [rbp + 0xf]
xor edx, edx
mov rcx, qword [rbp + 7]
sub r8, rcx
call fcn.14001c3e0
mov r8d, dword [r15 + 8]
xor edx, edx
mov qword [rbp - 0x61], r14
lea ecx, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14000c548
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
movzx edx, word [r15 + 0xe]
lea r9, [rbp - 0x61]
mov dword [rsp + 0x30], 2
mov r8, rax
mov dword [rsp + 0x28], r14d
mov rcx, rsi
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14000c548
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x14000c2ae
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000c548
mov rcx, rdi
call fcn.1400211e0
jmp 0x14000c59e
mov ebx, 0x104
mov qword [rbp - 0x59], r14
mov edx, ebx
mov qword [rbp - 0x49], r14
xor r8d, r8d
mov qword [rbp - 0x41], 7
lea rcx, [rbp - 0x59]
call fcn.14000c778
mov rcx, qword [rbp - 0x61]
lea rdx, [rbp - 0x59]
mov esi, 8
mov r8d, ebx
cmp qword [rbp - 0x41], rsi
cmovae rdx, qword [rbp - 0x59]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14000c535
mov edx, eax
cmp rdx, qword [rbp - 0x49]
ja 0x14000c322
cmp qword [rbp - 0x41], rsi
lea rax, [rbp - 0x59]
mov qword [rbp - 0x49], rdx
cmovae rax, qword [rbp - 0x59]
mov word [rax + rdx*2], r14w
jmp 0x14000c332
sub rdx, qword [rbp - 0x49]
lea rcx, [rbp - 0x59]
xor r8d, r8d
call fcn.14000c778
mov rbx, qword [rbp - 0x41]
lea rcx, [rbp - 0x59]
mov r11, qword [rbp - 0x59]
cmp rbx, rsi
mov r10, qword [rbp - 0x49]
cmovae rcx, r11
test r10, r10
je 0x14000c3b6
mov rdx, r10
mov rax, rcx
cmp word [rax], 0x3a
je 0x14000c366
add rax, 2
sub rdx, 1
jne 0x14000c354
jmp 0x14000c3b6
test rax, rax
je 0x14000c3b6
sub rax, rcx
sar rax, 1
cmp rax, 1
jbe 0x14000c3b6
cmp rax, 0xffffffffffffffff
je 0x14000c3b6
dec rax
lea rcx, [rbp - 0x59]
cmp r10, rax
cmovb rax, r10
cmp rbx, rsi
cmovae rcx, r11
sub r10, rax
mov qword [rbp - 0x49], r10
lea r8, [r10*2 + 2]
lea rdx, [rcx + rax*2]
call fcn.14001d300
mov r10, qword [rbp - 0x49]
mov r11, qword [rbp - 0x59]
mov rbx, qword [rbp - 0x41]
mov rcx, qword [r12]
jmp 0x14000c3fe
cmp rbx, rsi
lea rdx, [rbp - 0x59]
mov r9, rcx
cmovae rdx, r11
cmp qword [rcx + 0x18], rsi
jb 0x14000c3d3
mov r9, qword [rcx]
mov r8, qword [rcx + 0x10]
cmp r8, r10
jne 0x14000c3fa
test r8, r8
je 0x14000c405
sub r9, rdx
movzx eax, word [rdx]
cmp word [rdx + r9], ax
jne 0x14000c3fa
add rdx, 2
sub r8, 1
je 0x14000c405
jmp 0x14000c3e4
add rcx, 0x20
cmp rcx, qword [r12 + 8]
jne 0x14000c3bc
cmp rcx, qword [r12 + 8]
je 0x14000c535
mov r8d, dword [r15 + 8]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor r8d, r8d
mov qword [rbp - 0x19], r14
mov edx, 0x104
mov qword [rbp - 9], r14
lea rcx, [rbp - 0x19]
mov qword [rbp - 1], 7
mov rbx, rax
call fcn.14000c778
test rbx, rbx
je 0x14000c52c
cmp qword [rbp - 1], rsi
lea r8, [rbp - 0x19]
mov r9d, 0x104
mov rcx, rbx
cmovae r8, qword [rbp - 0x19]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x14000c52c
mov edx, eax
cmp rdx, qword [rbp - 9]
ja 0x14000c494
cmp qword [rbp - 1], rsi
lea rax, [rbp - 0x19]
mov qword [rbp - 9], rdx
cmovae rax, qword [rbp - 0x19]
mov word [rax + rdx*2], r14w
jmp 0x14000c4a4
sub rdx, qword [rbp - 9]
lea rcx, [rbp - 0x19]
xor r8d, r8d
call fcn.14000c778
cmp qword [rbp - 1], rsi
lea rcx, [rbp - 0x19]
mov r8, qword [rbp - 0x19]
lea r14, [rbp - 0x19]
mov rax, qword [rbp - 9]
lea rsi, [rbp - 0x19]
cmovae rcx, r8
cmovae r14, r8
cmp qword [rbp - 1], 8
cmovae rsi, r8
lea rbx, [rcx + rax*2]
cmp rsi, rbx
je 0x14000c4ef
sub r14, rsi
movzx ecx, word [rsi]
call fcn.140022374
mov word [rsi + r14], ax
add rsi, 2
cmp rsi, rbx
jne 0x14000c4d9
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.14000c6b8
cmp rax, 0xffffffffffffffff
jne 0x14000c529
mov r14, qword [rbp - 0x69]
mov rdx, qword [r14 + 8]
cmp rdx, qword [r14 + 0x10]
je 0x14000c51d
mov eax, dword [r15 + 8]
mov dword [rdx], eax
add qword [r14 + 8], 4
jmp 0x14000c529
lea r8, [r15 + 8]
mov rcx, r14
call fcn.14000c970
xor r14d, r14d
lea rcx, [rbp - 0x19]
call fcn.1400097b4
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x59]
call fcn.1400097b4
inc r13d
cmp r13d, dword [rdi]
jb 0x14000c1fc
mov rcx, rdi
call fcn.1400211e0
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x14000c59e
mov rdx, qword [rbp + 0x17]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14000c58d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c5d6
call fcn.14001a7b0
xorps xmm0, xmm0
mov qword [rbp + 0x17], r14
movdqu xmmword [rbp + 7], xmm0
lea rcx, [rbp - 0x39]
call fcn.1400097b4
mov rcx, r12
call fcn.1400096f0
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14001a000
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400220d8
int3