Function at 0x1400194b0
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 [0x140043db0]
test rcx, rcx
jne 0x140019510
lea rax, [0x140039e90]
mov qword [0x140043dc0], rax
lea rcx, [0x140043dc0]
mov dword [0x140043dc8], 0
mov byte [0x140043dcc], 1
mov qword [0x140043db0], rcx
mov rbx, qword [rbp + 0x310]
mov r15, qword [rbp + 0x300]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140047010]
cmp byte [rax + 4], 0
je 0x1400195a1
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 [0x140047010]
mov edi, 1
test eax, eax
je 0x1400195a1
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, [0x14003aeef]
mov rdx, rsi
call fcn.140020760
mov rcx, qword [0x140043db0]
test rcx, rcx
jne 0x1400195e9
lea rax, [0x140039e90]
mov qword [0x140043dc0], rax
lea rcx, [0x140043dc0]
mov dword [0x140043dc8], 0
mov byte [0x140043dcc], 1
mov qword [0x140043db0], rcx
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140047010]
xor edi, edi
cmp dword [rax], 0
jle 0x14001958b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov edx, 0x18
mov rcx, rbx
mov r8d, 1
call fcn.1400322a0
call fcn.140032140
test al, al
je 0x14001962e
mov r12, qword [0x140043d38]
test r12, r12
jne 0x14001963c
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001958b
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.140033ec0
mov qword [rbp + 0x270], rax
test rax, rax
je 0x14001962e
mov rax, qword [rbp + 0x270]
mov qword [rax], 0xd
mov dword [rax + 0x60], 5
mov dword [rax + 0x6c], 0xb0
test rsi, rsi
je 0x140019711
mov rcx, rsi
call fcn.140025d50
add eax, eax
cmp eax, 0x400
ja 0x14001962e
cmp eax, 0x350
jbe 0x140019713
jmp 0x14001962e
xor eax, eax
mov rcx, qword [rbp + 0x270]
add rcx, 0xb0
mov rdx, rsi
mov qword [rbp + 0x260], rax
mov r8, rax
call fcn.140018e30
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 0x140019789
mov rcx, r13
call fcn.140025d50
add eax, eax
mov qword [rbp + 0x260], rax
cmp eax, 0x400
ja 0x14001962e
mov r8d, dword [rbp + 0x260]
jmp 0x140019795
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 0x14001962e
add rcx, qword [rbp + 0x270]
mov rdx, r13
call fcn.140018e30
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 0x140019803
xor r8d, r8d
xor eax, eax
mov qword [rbp + 0x268], rax
jmp 0x14001982a
mov rcx, qword [rbp + 0x250]
call fcn.140025d50
add eax, eax
mov qword [rbp + 0x268], rax
cmp eax, 0x400
ja 0x14001962e
mov r8d, dword [rbp + 0x268]
mov ecx, r13d
mov eax, 0x400
sub rax, r8
cmp rax, rcx
jb 0x14001962e
add rcx, qword [rbp + 0x270]
mov rdx, qword [rbp + 0x250]
call fcn.140018e30
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 0x1400198b2
mov rcx, r15
call fcn.140025d50
add eax, eax
mov qword [rbp + 0x268], rax
cmp eax, 0x400
ja 0x14001962e
mov r8d, dword [rbp + 0x268]
jmp 0x1400198be
xor r8d, r8d
xor eax, eax
mov qword [rbp + 0x268], rax
mov ecx, r13d
mov eax, 0x400
sub rax, r8
cmp rax, rcx
jb 0x14001962e
add rcx, qword [rbp + 0x270]
mov rdx, r15
call fcn.140018e30
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 0x14001962e
cmp eax, 0x3e8
ja 0x14001962e
mov ecx, eax
add rcx, qword [rbp + 0x270]
mov r8d, 0x18
mov rdx, rbx
call fcn.140018e30
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.140034000
cmp eax, 0xa
je 0x14001962e
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.140021310
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 0x14001962e
test r15d, r15d
jne 0x14001962e
mov ecx, dword [rbp + 0x1e8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
cmp dword [rbp + 0x1e8], 0
jne 0x14001958b
lea rcx, [0x14003aeef]
mov rdx, rsi
call fcn.140020a40
mov edi, 1
jmp 0x14001958b