Function at 0x1400cc640
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x140136e20]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rsi, rcx
xor r13d, r13d
mov r12d, r13d
cmp qword [0x140149b28], r12
je 0x1400cc7d8
mov rdi, qword [0x140149b20]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x1400cc7f2
lea rdx, [rbx + 0x10]
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r13
mov word [rsp + 0x28], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x28]
call fcn.140009660
nop
lea r8, [rsp + 0x28]
mov r9, qword [rsp + 0x28]
mov r10, qword [rsp + 0x40]
cmp r10, 8
cmovae r8, r9
mov edx, 0x104
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x50]
sub r8, rax
nop word [rax + rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400cc724
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400cc724
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x1400cc700
jmp 0x1400cc729
test rdx, rdx
jne 0x1400cc72d
sub rcx, 2
mov word [rcx], r13w
lea rcx, [rsp + 0x28]
cmp r10, 8
cmovae rcx, r9
lea rdx, [0x14010bd7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400cc76c
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x1400cc79e
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
lea rdx, [0x1401041ec]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400cc79e
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1400ab4d0
test eax, eax
jne 0x1400cc7b8
inc r12d
cmp qword [rsp + 0x40], 8
jb 0x1400cc7ca
mov rcx, qword [rsp + 0x28]
call fcn.14004b088
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1400cc6a2
jmp 0x1400cc7ed
cmp dword [rcx + 0xedf8], 1
jne 0x1400cc7f2
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x28]
mov r12d, eax
test r12d, r12d
jne 0x1400cc831
lea rdx, [rsi + 0x1748]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call fcn.1400ab4d0
test eax, eax
jns 0x1400cc822
lea rdx, [rsi + 0x1540]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call fcn.1400ab4d0
test eax, eax
jne 0x1400cc8f4
mov r12d, 1
test r12d, r12d
jle 0x1400cc876
mov rbx, r13
mov edi, r12d
nop dword [rax]
mov dword [rsp + 0x28], 8
lea r9, [rsp + 0x28]
mov r8, rbx
mov edx, 0x133c
mov rcx, qword [rsi + 0x88]
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [rsp + 0x48]
mov rcx, rsi
call fcn.1400c4710
inc rbx
dec rdi
jne 0x1400cc840
cmp dword [rsi + 0xed68], 0
jne 0x1400cc88c
cmp r12d, 1
jne 0x1400cc88c
mov dword [rsi + 0xed6c], r13d
mov ebx, dword [rsi + 0x1b90]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1304
mov rcx, qword [rsi + 0x88]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, eax
jge 0x1400cc8b2
test ebx, ebx
jns 0x1400cc8b9
mov dword [rsi + 0x1b90], r13d
movsxd r8, dword [rsi + 0x1b90]
xor r9d, r9d
mov edx, 0x130c
mov rcx, qword [rsi + 0x88]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r11d, dword [rsi + 0x1b90]
mov dword [rsi + 0x1b94], r11d
mov edx, 1
mov rcx, rsi
call fcn.1400a97d0
xor eax, eax
jmp 0x1400cc8f9
mov eax, 0x80004005
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14004ae00
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x270
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret