Function at 0x140029a10
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2f8
lea rbp, [rsp + 0x80]
mov rdi, r9
mov r13, r8
mov rsi, rdx
mov r14, rcx
mov rcx, qword [0x140064970]
test rcx, rcx
jne 0x140029a70
lea rax, [0x1400559a0]
mov qword [0x140064980], rax
lea rcx, [0x140064980]
mov dword [0x140064988], 0
mov byte [0x14006498c], 1
mov qword [0x140064970], rcx
mov rbx, qword [rbp + 0x310]
mov r15, qword [rbp + 0x300]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140068010]
cmp byte [rax + 4], 0
je 0x140029b01
mov rax, qword [rbp + 0x308]
mov rcx, qword [rbp + 0x2f8]
mov edx, dword [rbp + 0x2f0]
mov r8d, dword [rbp + 0x2e8]
mov r9, qword [rbp + 0x2e0]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r8d
mov rcx, rsi
mov rdx, r13
mov r8, rdi
mov rax, r14
call qword [0x140068010]
mov edi, 1
test eax, eax
je 0x140029b01
mov eax, edi
add rsp, 0x2f8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [0x140057269]
mov rdx, rsi
call fcn.14003a850
mov rcx, qword [0x140064970]
test rcx, rcx
jne 0x140029b49
lea rax, [0x1400559a0]
mov qword [0x140064980], rax
lea rcx, [0x140064980]
mov dword [0x140064988], 0
mov byte [0x14006498c], 1
mov qword [0x140064970], rcx
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140068010]
xor edi, edi
cmp dword [rax], 0
jle 0x140029aeb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov edx, 0x18
mov rcx, rbx
mov r8d, 1
call fcn.14004c0a0
call fcn.14004bf40
test al, al
je 0x140029b8e
mov r12, qword [0x1400648f8]
test r12, r12
jne 0x140029b9c
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140029aeb
lea rdx, [rbp - 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefc
xor ecx, ecx
mov dword [rbp + 0x268], eax
cmp eax, 0xfffffefd
lea rax, [rbp - 0x30]
cmovae rcx, rax
mov qword [rbp + 0x250], rcx
lea rcx, [rbp + 0x238]
mov qword [rcx], r12
mov rax, qword [r12 + 0x10]
add rax, r12
mov qword [rbp + 0x248], rax
mov qword [rcx + 8], rax
xorps xmm0, xmm0
movaps xmmword [rbp + 0x220], xmm0
movaps xmmword [rbp + 0x210], xmm0
movaps xmmword [rbp + 0x200], xmm0
movaps xmmword [rbp + 0x1f0], xmm0
movaps xmmword [rbp + 0x1e0], xmm0
mov qword [rbp + 0x230], 0
call fcn.14004dc20
mov qword [rbp + 0x270], rax
test rax, rax
je 0x140029b8e
mov rax, qword [rbp + 0x270]
mov qword [rax], 0xd
mov dword [rax + 0x60], 5
mov dword [rax + 0x6c], 0xb0
test rsi, rsi
je 0x140029c71
mov rcx, rsi
call fcn.14003fd30
add eax, eax
cmp eax, 0x400
ja 0x140029b8e
cmp eax, 0x350
jbe 0x140029c73
jmp 0x140029b8e
xor eax, eax
mov rcx, qword [rbp + 0x270]
add rcx, 0xb0
mov rdx, rsi
mov qword [rbp + 0x260], rax
mov r8, rax
call fcn.140029390
mov rdx, qword [rbp + 0x270]
mov eax, dword [rdx + 0x6c]
mov rcx, qword [rbp + 0x260]
add eax, ecx
add eax, 7
and eax, 0xfffffff8
mov dword [rbp + 0x25c], eax
mov dword [rdx + 0x78], eax
mov dword [rdx + 0x70], ecx
mov dword [rdx + 0x68], 1
test r13, r13
je 0x140029ce9
mov rcx, r13
call fcn.14003fd30
add eax, eax
mov qword [rbp + 0x260], rax
cmp eax, 0x400
ja 0x140029b8e
mov r8d, dword [rbp + 0x260]
jmp 0x140029cf5
xor r8d, r8d
xor eax, eax
mov qword [rbp + 0x260], rax
mov ecx, dword [rbp + 0x25c]
mov eax, 0x400
sub rax, r8
cmp rax, rcx
jb 0x140029b8e
add rcx, qword [rbp + 0x270]
mov rdx, r13
call fcn.140029390
mov rcx, qword [rbp + 0x270]
mov eax, dword [rcx + 0x78]
mov rdx, qword [rbp + 0x260]
lea r13d, [rdx + rax]
add r13d, 7
and r13d, 0xfffffff8
mov dword [rcx + 0x84], r13d
mov dword [rcx + 0x7c], edx
mov dword [rcx + 0x74], 1
cmp dword [rbp + 0x268], 0xfffffefd
jae 0x140029d63
xor r8d, r8d
xor eax, eax
mov qword [rbp + 0x268], rax
jmp 0x140029d8a
mov rcx, qword [rbp + 0x250]
call fcn.14003fd30
add eax, eax
mov qword [rbp + 0x268], rax
cmp eax, 0x400
ja 0x140029b8e
mov r8d, dword [rbp + 0x268]
mov ecx, r13d
mov eax, 0x400
sub rax, r8
cmp rax, rcx
jb 0x140029b8e
add rcx, qword [rbp + 0x270]
mov rdx, qword [rbp + 0x250]
call fcn.140029390
mov rcx, qword [rbp + 0x270]
mov eax, dword [rcx + 0x84]
mov rdx, qword [rbp + 0x268]
lea r13d, [rdx + rax]
add r13d, 7
and r13d, 0xfffffff8
mov dword [rcx + 0x90], r13d
mov dword [rcx + 0x88], edx
mov dword [rcx + 0x80], 1
test r15, r15
je 0x140029e12
mov rcx, r15
call fcn.14003fd30
add eax, eax
mov qword [rbp + 0x268], rax
cmp eax, 0x400
ja 0x140029b8e
mov r8d, dword [rbp + 0x268]
jmp 0x140029e1e
xor r8d, r8d
xor eax, eax
mov qword [rbp + 0x268], rax
mov ecx, r13d
mov eax, 0x400
sub rax, r8
cmp rax, rcx
jb 0x140029b8e
add rcx, qword [rbp + 0x270]
mov rdx, r15
call fcn.140029390
mov rcx, qword [rbp + 0x270]
mov eax, dword [rcx + 0x90]
mov rdx, qword [rbp + 0x268]
add eax, edx
add eax, 7
and eax, 0xfffffff8
mov dword [rcx + 0x9c], eax
mov dword [rcx + 0x94], edx
mov dword [rcx + 0x8c], 1
test rbx, rbx
je 0x140029b8e
cmp eax, 0x3e8
ja 0x140029b8e
mov ecx, eax
add rcx, qword [rbp + 0x270]
mov r8d, 0x18
mov rdx, rbx
call fcn.140029390
mov rdx, qword [rbp + 0x270]
mov dword [rdx + 4], 1
mov eax, dword [rdx + 0x9c]
add eax, 0x1f
and eax, 0xfffffff8
mov dword [rdx + 0xa8], eax
mov dword [rdx + 0xa0], 0x18
mov dword [rdx + 0x98], 6
lea rcx, [rbp + 0x238]
lea r8, [rbp + 0x1e0]
call fcn.14004dd60
cmp eax, 0xa
je 0x140029b8e
mov r15d, eax
add r12, 0x10
mov r13, qword [rbp + 0x270]
mov r8d, dword [r13 + 0x9c]
add r8, r13
mov ecx, 0x18
mov rdx, rbx
call fcn.14003b3f0
sub r13, qword [rbp + 0x248]
lea rcx, [r13 + 0x3ff]
test r13, r13
cmovns rcx, r13
sar rcx, 0xa
lea rcx, [rcx + rcx*4]
mov edx, 1
xchg dword [r12 + rcx*8 + 8], edx
test al, al
je 0x140029b8e
test r15d, r15d
jne 0x140029b8e
mov ecx, dword [rbp + 0x1e8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
cmp dword [rbp + 0x1e8], 0
jne 0x140029aeb
lea rcx, [0x140057269]
mov rdx, rsi
call fcn.14003ab20
mov edi, 1
jmp 0x140029aeb