Function at 0x1400a97d0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x141992390]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x58], 0
lea r15, [0x1401a1e20]
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
mov rbx, 0xffffffffffffffff
test eax, eax
je 0x1400a99b6
cmp esi, 0x104
jbe 0x1400a9921
mov eax, 2
mul rsi
cmovo rax, rbx
mov rcx, rax
call fcn.140121cf4
mov r14, rax
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400a9914
mov r8d, esi
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.140040590
mov rcx, rax
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov qword [rcx], r15
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400a98bf
cmp ecx, ebx
je 0x1400a98d2
mov ecx, ebx
mov rax, qword [rsp + 0x30]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400a98d2
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x30]
call fcn.140049bf0
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov eax, dword [rcx]
test eax, eax
je 0x1400a9901
cmp eax, 0xffffffff
je 0x1400a9914
mov ecx, ebx
mov rax, qword [rsp + 0x40]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400a9914
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x40]
call fcn.140049bf0
mov rcx, r14
call fcn.140121cec
jmp 0x1400a99b6
mov r8d, esi
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.140040590
mov rcx, rax
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov qword [rcx], r15
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400a9961
cmp ecx, 0xffffffff
je 0x1400a9974
mov ecx, ebx
mov rax, qword [rsp + 0x38]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400a9974
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x38]
call fcn.140049bf0
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov eax, dword [rcx]
test eax, eax
je 0x1400a99a3
cmp eax, 0xffffffff
je 0x1400a99b6
mov ecx, ebx
mov rax, qword [rsp + 0x48]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400a99b6
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x48]
call fcn.140049bf0
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 4]
cmp ecx, 2
jl 0x1400a9a3b
cmp ecx, 1
jle 0x1400a9a3b
mov rcx, qword [rax + 0x10]
cmp word [rcx + rax + 2], 0x3a
jne 0x1400a9a3b
movzx ecx, word [rcx + rax]
call fcn.140045a10
mov word [rsp + 0x28], ax
mov rcx, qword [rsp + 0x20]
cmp dword [rcx + 4], 0
jg 0x1400a9a02
mov edx, 1
lea r8d, [rdx + 0x1f]
lea rcx, [rsp + 0x20]
call fcn.140044980
jmp 0x1400a9a27
mov eax, dword [rcx]
cmp eax, 1
ja 0x1400a9a15
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x10], 0x18
je 0x1400a9a2c
mov edx, dword [rcx + 4]
inc edx
xor r8d, r8d
lea rcx, [rsp + 0x20]
call fcn.140043650
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x10]
add rdx, rax
movzx eax, word [rsp + 0x28]
mov word [rdx], ax
movzx r8d, byte [rsp + 0x28]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400a5700
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1400a9a6d
cmp eax, 0xffffffff
je 0x1400a9a80
mov rcx, qword [rsp + 0x20]
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x1400a9a80
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x20]
call fcn.140049bf0
mov rax, rdi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140121c90
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret