Function at 0x1400016f4
Capabilities:
Check if file exists
Get common file path

Disassembly:
jmp 0x14009eaa0
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1f8], rbx
mov rax, qword [0x140118988]
xor rax, rsp
mov qword [rbp + 0x98], rax
mov r15, r8
mov rdi, rdx
mov qword [rsp + 0x60], rdx
mov r12, rcx
mov qword [rsp + 0x40], rcx
xor r13d, r13d
mov dword [rsp + 0x48], r13d
lea rcx, [rsp + 0x78]
call fcn.14000243c
nop
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r13w
mov dword [rsp + 0x50], r13d
mov byte [rsp + 0x54], r13b
lea rbx, [0x1400ccd88]
mov qword [rsp + 0x58], rbx
lea rdx, [rbp - 0x48]
mov rcx, rdi
call fcn.140002414
nop
cmp qword [rbp - 0x78], r13
je 0x14009ecd0
mov r13d, dword [rsp + 0x4c]
nop word [rax + rax]
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
jne 0x14009eb8a
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x40]
call fcn.14009cdb0
mov edi, dword [rsp + 0x40]
jmp 0x14009ec89
mov edx, esi
lea rcx, [rsp + 0x78]
call fcn.140002a2c
mov r14d, eax
bt esi, 0xa
jae 0x14009ec49
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x68], rax
cmp rax, 0xffffffffffffffff
jne 0x14009ec0b
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x40]
call fcn.14009cdb0
nop
mov edi, dword [rsp + 0x40]
lea rbx, [0x1400ccd88]
jmp 0x14009ec89
lea rcx, [rsp + 0x78]
call fcn.14009c7f0
test al, al
jne 0x14009ec39
mov edi, 9
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x44], r14d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rbx, [0x1400ccd88]
jmp 0x14009ec89
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rbx, [0x1400ccd88]
mov dword [rsp + 0x50], 0
mov byte [rsp + 0x54], 0
mov qword [rsp + 0x58], rbx
and esi, 0x10
je 0x14009ec69
mov eax, r14d
mov dword [rsp + 0x4c], eax
jmp 0x14009ec70
mov r13d, r14d
mov eax, dword [rsp + 0x4c]
xor edi, edi
test esi, esi
setne dil
add edi, 2
mov dword [rsp + 0x40], edi
test esi, esi
cmove eax, r13d
mov dword [rsp + 0x44], eax
xor esi, esi
mov ecx, esi
test edi, edi
sete cl
test edi, edi
je 0x14009ecf7
test r15, r15
je 0x14009eca6
mov dword [r15], esi
mov byte [r15 + 4], sil
mov qword [r15 + 8], rbx
cmp edi, 1
jne 0x14009ecc8
lea rcx, [rsp + 0x78]
call fcn.140003693
lea rcx, [rbp - 0x48]
call fcn.1400013e8
cmp qword [rbp - 0x78], rsi
jne 0x14009eb50
xor r13d, r13d
mov rdi, qword [rsp + 0x60]
xor r14b, r14b
lea rdx, [rbp + 0x28]
mov rcx, rdi
call fcn.140002414
mov rcx, qword [rax + 0x20]
cmp qword [rbp - 0x28], rcx
jne 0x14009ed23
mov rax, qword [rax + 0x28]
cmp qword [rbp - 0x20], rax
jne 0x14009ed23
xor bl, bl
jmp 0x14009ed25
lea r9, str.boost::filesystem::weakly_canonical
mov r8, r15
lea rdx, [rsp + 0x78]
call fcn.1400011bd
mov qword [r12 + 0x10], rsi
mov qword [r12 + 0x18], 7
mov word [r12], si
jmp 0x14009efea
mov bl, 1
lea rcx, [rbp + 0x28]
call fcn.140001339
test bl, bl
je 0x14009ed8d
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x68]
call fcn.1400029eb
mov rcx, qword [rbp - 0x38]
cmp rcx, 2
ja 0x14009ed7f
lea rax, [rbp - 0x48]
mov rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x30]
cmp r8, 8
cmovae rax, rdx
cmp word [rax], 0x2e
jne 0x14009ed7f
cmp rcx, 1
je 0x14009ed7c
lea rax, [rbp - 0x48]
cmp r8, 8
cmovae rax, rdx
cmp word [rax + 2], 0x2e
jne 0x14009ed7f
mov r14b, 1
lea rcx, [rbp - 0x48]
call fcn.140003436
jmp 0x14009ecd3
cmp qword [rbp - 0x78], 0
jne 0x14009eda4
mov rdx, r12
mov rcx, rdi
call fcn.140002d8d
jmp 0x14009efea
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
mov eax, 1
test edi, edi
cmove edi, eax
mov edx, edi
mov eax, 2
mul rdx
mov rsi, 0xffffffffffffffff
cmovo rax, rsi
mov rcx, rax
call fcn.140003bb1
mov rbx, rax
mov qword [rsp + 0x68], rax
mov rdx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x14009ee08
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14009ee08
lea r8, str.boost::filesystem::current_path
xor edx, edx
mov ecx, eax
call fcn.140001c71
movdqa xmm0, xmmword [0x1400d1ef0]
movdqu xmmword [rbp + 0x18], xmm0
mov word [rbp + 8], r13w
nop word [rax + rax]
inc rsi
cmp word [rbx + rsi*2], 0
jne 0x14009ee20
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp + 8]
call fcn.140001faf
nop
mov rcx, rbx
call fcn.140002dd3
nop
lea r9, [rsp + 0x50]
lea r8, [rbp + 8]
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x18]
call fcn.1400014ec
mov dword [rsp + 0x48], 0x1c0
lea rcx, [rbp + 8]
call fcn.140001339
lea rcx, [rsp + 0x78]
call fcn.140001339
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rbp - 8]
movups xmmword [rbp - 0x78], xmm1
movdqa xmm0, xmmword [0x1400d1ef0]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], r13w
lea rcx, [rbp - 0x18]
call fcn.140001339
mov ecx, dword [rsp + 0x50]
test ecx, ecx
jne 0x14009efc3
test r15, r15
je 0x14009eec4
mov dword [r15], r13d
mov byte [r15 + 4], cl
lea rax, [0x1400ccd88]
mov qword [r15 + 8], rax
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x58], 0
jne 0x14009eee4
lea rcx, [rbp - 0x18]
call fcn.14000243c
lea rax, [rbp - 0x18]
mov ebx, 0x1c2
jmp 0x14009ef47
lea r8, [rbp - 0x68]
test r14b, r14b
je 0x14009ef13
lea rcx, [rbp + 0x28]
call fcn.14000212b
nop
mov dword [rsp + 0x48], 0x1c4
lea rdx, [rbp + 0x78]
mov rcx, rax
call fcn.140002d8d
nop
mov ebx, 0x1cc
jmp 0x14009ef21
lea rcx, [rbp + 0x58]
call fcn.14000212b
mov ebx, 0x1d0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x18], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
lea rax, [rbp + 8]
or ebx, 0x20
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r12 + 0x10], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
or ebx, 1
test bl, 0x20
je 0x14009ef7d
and ebx, 0xffffffdf
lea rcx, [rbp + 8]
call fcn.140001339
test bl, 0x10
je 0x14009ef8f
and ebx, 0xffffffef
lea rcx, [rbp + 0x58]
call fcn.140001339
nop
test bl, 8
je 0x14009efa1
and ebx, 0xfffffff7
lea rcx, [rbp + 0x78]
call fcn.140001339
nop
test bl, 4
je 0x14009efb3
and ebx, 0xfffffffb
lea rcx, [rbp + 0x28]
call fcn.140001339
nop
test bl, 2
je 0x14009efea
lea rcx, [rbp - 0x18]
call fcn.140001339
jmp 0x14009efea
lea r9, str.boost::filesystem::weakly_canonical
mov r8, r15
lea rdx, [rsp + 0x78]
call fcn.1400011bd
mov qword [r12 + 0x10], r13
mov qword [r12 + 0x18], 7
mov word [r12], r13w
lea rcx, [rbp - 0x48]
call fcn.140001339
nop
lea rcx, [rbp - 0x68]
call fcn.140001339
nop
lea rcx, [rsp + 0x78]
call fcn.140001339
mov rax, r12
mov rcx, qword [rbp + 0x98]
xor rcx, rsp
call fcn.140001c58
mov rbx, qword [rsp + 0x1f8]
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret