Function at 0x14000c43c
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 [0x140059010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
movdqa xmm1, xmmword [0x140052100]
xorps xmm0, xmm0
mov qword [rbp - 0x69], rdx
mov r15, rcx
movups xmmword [rbp - 0x59], xmm0
mov ebx, 0x104
lea rcx, [rbp - 0x59]
xor r14d, r14d
mov edx, ebx
xor r8d, r8d
mov word [rbp - 0x59], r14w
movdqu xmmword [rbp - 0x49], xmm1
call fcn.14000cb8c
cmp qword [rbp - 0x41], 8
lea rcx, [rbp - 0x59]
mov edx, ebx
cmovae rcx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
cmp eax, 1
jbe 0x14000c4ea
mov edx, eax
cmp rdx, qword [rbp - 0x49]
ja 0x14000c4d8
cmp qword [rbp - 0x41], 8
lea rax, [rbp - 0x59]
mov qword [rbp - 0x49], rdx
cmovae rax, qword [rbp - 0x59]
mov word [rax + rdx*2], r14w
jmp 0x14000c500
sub rdx, qword [rbp - 0x49]
lea rcx, [rbp - 0x59]
xor r8d, r8d
call fcn.14000cb8c
jmp 0x14000c500
mov r8d, 0xa
lea rdx, [0x140051218]
lea rcx, [rbp - 0x59]
call fcn.140009d70
cmp qword [rbp - 0x41], 8
lea rcx, [rbp - 0x59]
mov r8, qword [rbp - 0x59]
lea rdi, [rbp - 0x59]
mov rax, qword [rbp - 0x49]
lea rsi, [rbp - 0x59]
cmovae rcx, r8
cmovae rdi, r8
cmovae rsi, r8
lea rbx, [rcx + rax*2]
cmp rdi, rbx
je 0x14000c546
sub rsi, rdi
movzx ecx, word [rdi]
call fcn.140027634
mov word [rsi + rdi], ax
add rdi, 2
cmp rdi, rbx
jne 0x14000c531
mov ebx, 0x10000
mov ecx, ebx
call fcn.140023944
mov rdi, rax
test rax, rax
je 0x14000c9a0
mov rax, qword [0x14005bc30]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
lea esi, [r9 + 0x10]
mov ecx, esi
call rax
mov r12d, 0xc0000004
jmp 0x14000c5ae
lea eax, [rbx + rbx]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140023928
test rax, rax
je 0x14000c689
mov r10, qword [0x14005bc30]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov ecx, esi
mov rdi, rax
call r10
cmp eax, r12d
je 0x14000c57e
test eax, eax
js 0x14000c689
xorps xmm0, xmm0
mov qword [rbp + 0x17], r14
mov edx, 0x2000
lea rcx, [rbp + 7]
movdqu xmmword [rbp + 7], xmm0
call fcn.14000d168
mov r13d, r14d
cmp dword [rdi], r14d
jbe 0x14000c956
mov eax, r13d
lea rcx, [rax + rax*2]
lea r12, [rdi + rcx*8]
cmp dword [r12 + 8], 0xa
jb 0x14000c94a
mov r8, qword [rbp + 0xf]
xor edx, edx
mov rcx, qword [rbp + 7]
sub r8, rcx
call fcn.14001f5c0
mov r8d, dword [r12 + 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 0x14000c94a
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
movzx edx, word [r12 + 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 0x14000c94a
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.KERNEL32.DLL_GetFileType]
cmp eax, 1
je 0x14000c696
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x14000c94a
mov rcx, rdi
call fcn.140023930
jmp 0x14000c9a0
xorps xmm0, xmm0
mov qword [rbp - 0x29], r14
movups xmmword [rbp - 0x39], xmm0
mov ebx, 0x104
mov word [rbp - 0x39], r14w
mov edx, ebx
mov qword [rbp - 0x21], 7
xor r8d, r8d
lea rcx, [rbp - 0x39]
call fcn.14000cb8c
mov rcx, qword [rbp - 0x61]
lea rdx, [rbp - 0x39]
mov esi, 8
mov r8d, ebx
cmp qword [rbp - 0x21], rsi
cmovae rdx, qword [rbp - 0x39]
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_GetFinalPathNameByHandleW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14000c937
mov edx, eax
cmp rdx, qword [rbp - 0x29]
ja 0x14000c712
cmp qword [rbp - 0x21], rsi
lea rax, [rbp - 0x39]
mov qword [rbp - 0x29], rdx
cmovae rax, qword [rbp - 0x39]
mov word [rax + rdx*2], r14w
jmp 0x14000c722
sub rdx, qword [rbp - 0x29]
lea rcx, [rbp - 0x39]
xor r8d, r8d
call fcn.14000cb8c
mov r11, qword [rbp - 0x21]
lea rcx, [rbp - 0x39]
mov r10, qword [rbp - 0x39]
cmp r11, rsi
mov rbx, qword [rbp - 0x29]
cmovae rcx, r10
test rbx, rbx
je 0x14000c7b0
cmp word [rcx], 0x3a
mov rdx, rbx
mov r8, rcx
mov rax, r14
je 0x14000c761
cmp rdx, 1
je 0x14000c764
add r8, 2
dec rdx
cmp word [r8], 0x3a
jne 0x14000c74d
mov rax, r8
test rax, rax
je 0x14000c7b0
sub rax, rcx
sar rax, 1
cmp rax, 1
jbe 0x14000c7b0
cmp rax, 0xffffffffffffffff
je 0x14000c7b0
dec rax
lea rcx, [rbp - 0x39]
cmp rbx, rax
cmovb rax, rbx
cmp r11, rsi
cmovae rcx, r10
sub rbx, rax
lea r8, [rbx*2 + 2]
lea rdx, [rcx + rax*2]
call fcn.14001f9c0
mov r11, qword [rbp - 0x21]
mov r10, qword [rbp - 0x39]
mov qword [rbp - 0x29], rbx
mov rcx, qword [r15]
jmp 0x14000c7f7
mov r8, qword [rcx + 0x10]
lea rdx, [rbp - 0x39]
cmp r11, rsi
mov r9, rcx
cmovae rdx, r10
cmp qword [rcx + 0x18], rsi
jb 0x14000c7d0
mov r9, qword [rcx]
cmp r8, rbx
jne 0x14000c7f3
test r8, r8
je 0x14000c7fd
sub r9, rdx
movzx eax, word [r9 + rdx]
cmp ax, word [rdx]
jne 0x14000c7f3
add rdx, 2
sub r8, 1
je 0x14000c7fd
jmp 0x14000c7dd
add rcx, 0x20
cmp rcx, qword [r15 + 8]
jne 0x14000c7b5
cmp rcx, qword [r15 + 8]
je 0x14000c937
mov r8d, dword [r12 + 8]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
xorps xmm0, xmm0
mov qword [rbp - 9], r14
movups xmmword [rbp - 0x19], xmm0
xor r8d, r8d
mov word [rbp - 0x19], r14w
mov edx, 0x104
mov qword [rbp - 1], 7
lea rcx, [rbp - 0x19]
mov rbx, rax
call fcn.14000cb8c
test rbx, rbx
je 0x14000c92e
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 0x14000c92e
mov edx, eax
cmp rdx, qword [rbp - 9]
ja 0x14000c894
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 0x14000c8a4
sub rdx, qword [rbp - 9]
lea rcx, [rbp - 0x19]
xor r8d, r8d
call fcn.14000cb8c
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 0x14000c8ef
sub r14, rsi
movzx ecx, word [rsi]
call fcn.140027634
mov word [rsi + r14], ax
add rsi, 2
cmp rsi, rbx
jne 0x14000c8d9
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x19]
call fcn.14000cab8
cmp rax, 0xffffffffffffffff
jne 0x14000c92b
mov r14, qword [rbp - 0x69]
mov rdx, qword [r14 + 8]
cmp rdx, qword [r14 + 0x10]
je 0x14000c91e
mov eax, dword [r12 + 8]
mov dword [rdx], eax
add qword [r14 + 8], 4
jmp 0x14000c92b
lea r8, [r12 + 8]
mov rcx, r14
call fcn.14000cfc0
xor r14d, r14d
lea rcx, [rbp - 0x19]
call fcn.140004a50
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rcx, [rbp - 0x39]
call fcn.140004a50
inc r13d
cmp r13d, dword [rdi]
jb 0x14000c5e1
mov rcx, rdi
call fcn.140023930
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x14000c9a0
mov rdx, qword [rbp + 0x17]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14000c98f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c9d8
call fcn.14001ca40
xorps xmm0, xmm0
mov qword [rbp + 0x17], r14
movdqu xmmword [rbp + 7], xmm0
lea rcx, [rbp - 0x59]
call fcn.140004a50
mov rcx, r15
call fcn.140009b5c
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14001c740
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.140026650
int3