Function at 0x14042e310
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 [0x14057c500]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rcx
mov dword [rsp + 0x40], 0
lea rax, [0x1400495e0]
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 0x14042e468
cmp esi, 0x104
jbe 0x14042e410
mov eax, 2
mul rsi
cmovo rax, rbx
mov rcx, rax
call fcn.1404e21d4
mov r14, rax
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14042e406
mov r8d, esi
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.1402d3550
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 0x14042e3f8
cmp eax, ebx
je 0x14042e406
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14042e406
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140379300
mov rcx, r14
call fcn.1404e1830
jmp 0x14042e468
mov r8d, esi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.1402d3550
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 0x14042e45a
cmp eax, 0xffffffff
je 0x14042e468
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14042e468
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140379300
mov rcx, qword [rsp + 0x20]
mov edx, dword [rcx + 4]
cmp edx, 2
jl 0x14042e536
cmp dword [rcx], 1
ja 0x14042e485
cmp qword [rcx + 0x10], 0x18
je 0x14042e499
inc edx
xor r8d, r8d
lea rcx, [rsp + 0x20]
call fcn.14036a620
mov rcx, qword [rsp + 0x20]
cmp dword [rcx + 4], 1
jle 0x14042e536
mov rdx, qword [rcx + 0x10]
movzx eax, word [rdx + rcx + 2]
mov word [rsp + 0x28], ax
cmp ax, 0x3a
jne 0x14042e536
movzx ecx, word [rdx + rcx]
call fcn.14036d3d0
mov esi, eax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 1
ja 0x14042e4d3
cmp qword [rax + 0x10], 0x18
je 0x14042e4ea
mov edx, dword [rax + 4]
inc edx
xor r8d, r8d
lea rcx, [rsp + 0x20]
call fcn.14036a620
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 4]
test edx, edx
jg 0x14042e50e
mov eax, 0x20
mov word [rsp + 0x2a], ax
movzx r8d, ax
lea edx, [rax - 0x1f]
lea rcx, [rsp + 0x20]
call fcn.14036c0e0
jmp 0x14042e529
cmp dword [rax], 1
ja 0x14042e51a
cmp qword [rax + 0x10], 0x18
je 0x14042e52e
inc edx
xor r8d, r8d
lea rcx, [rsp + 0x20]
call fcn.14036a620
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.140429de0
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14042e568
cmp eax, 0xffffffff
je 0x14042e576
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14042e576
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140379300
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1404e17d0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret