Function at 0x1400604c0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1410cc870]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rcx
mov dword [rsp + 0x40], 0
lea rax, [0x1401e6610]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
or rbx, 0xffffffffffffffff
test eax, eax
je 0x140060618
cmp esi, 0x104
jbe 0x1400605c0
mov eax, 2
mul rsi
cmovo rax, rbx
mov rcx, rax
call fcn.14015cb34
mov r14, rax
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400605b6
mov r8d, esi
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.1400091b0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x50], rcx
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x1400605a8
cmp eax, ebx
je 0x1400605b6
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400605b6
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
mov rcx, r14
call fcn.14015c170
jmp 0x140060618
mov r8d, esi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.1400091b0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x58], rcx
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x14006060a
cmp eax, 0xffffffff
je 0x140060618
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140060618
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
mov rcx, qword [rsp + 0x20]
mov edx, dword [rcx + 4]
cmp edx, 2
jl 0x1400606e6
cmp dword [rcx], 1
ja 0x140060635
cmp qword [rcx + 0x10], 0x18
je 0x140060649
inc edx
xor r8d, r8d
lea rcx, [rsp + 0x20]
call fcn.14001f090
mov rcx, qword [rsp + 0x20]
cmp dword [rcx + 4], 1
jle 0x1400606e6
mov rdx, qword [rcx + 0x10]
movzx eax, word [rdx + rcx + 2]
mov word [rsp + 0x28], ax
cmp ax, 0x3a
jne 0x1400606e6
movzx ecx, word [rdx + rcx]
call fcn.140021610
mov esi, eax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 1
ja 0x140060683
cmp qword [rax + 0x10], 0x18
je 0x14006069a
mov edx, dword [rax + 4]
inc edx
xor r8d, r8d
lea rcx, [rsp + 0x20]
call fcn.14001f090
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 4]
test edx, edx
jg 0x1400606be
mov eax, 0x20
mov word [rsp + 0x2a], ax
movzx r8d, ax
lea edx, [rax - 0x1f]
lea rcx, [rsp + 0x20]
call fcn.140020290
jmp 0x1400606d9
cmp dword [rax], 1
ja 0x1400606ca
cmp qword [rax + 0x10], 0x18
je 0x1400606de
inc edx
xor r8d, r8d
lea rcx, [rsp + 0x20]
call fcn.14001f090
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x10]
mov word [rax + rcx], si
movzx r8d, byte [rsp + 0x28]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14005b9e0
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x140060718
cmp eax, 0xffffffff
je 0x140060726
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x140060726
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14015c110
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret