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

Disassembly:
jmp 0x140099400
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x298], rbx
mov rax, qword [0x1401199f8]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov r14, r8
mov r13, rdx
mov r15, rcx
mov qword [rsp + 0x40], rcx
xor r12d, r12d
mov dword [rsp + 0x48], r12d
lea rcx, [rsp + 0x60]
call fcn.140002414
nop
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], r12w
mov dword [rbp - 0x60], r12d
call fcn.140002c2a
mov qword [rbp - 0x58], rax
lea rdx, [rbp]
mov rcx, r13
call fcn.1400023ec
nop
cmp qword [rsp + 0x70], r12
je 0x1400995f9
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
jne 0x1400994ce
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140097450
mov edi, dword [rsp + 0x40]
jmp 0x1400995a1
bt esi, 0xa
jae 0x140099570
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], r12
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 + 0x50], rax
cmp rax, 0xffffffffffffffff
jne 0x140099535
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140097450
nop
mov edi, dword [rsp + 0x40]
jmp 0x1400995a1
lea rcx, [rsp + 0x60]
call fcn.140096c60
test al, al
jne 0x140099567
mov edx, esi
lea rcx, [rsp + 0x60]
call fcn.1400971d0
mov edi, 9
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x44], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400995a1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp - 0x60], r12d
call fcn.140002c2a
mov qword [rbp - 0x58], rax
mov edx, esi
lea rcx, [rsp + 0x60]
test sil, 0x10
mov edi, 3
jne 0x140099594
mov edi, 2
call fcn.1400971d0
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x44], eax
mov ebx, r12d
test edi, edi
sete bl
test edi, edi
je 0x1400995bc
test r14, r14
je 0x1400995d1
mov dword [r14], r12d
call fcn.140002c2a
jmp 0x1400995cd
test r14, r14
je 0x140099a22
call fcn.140002c2a
mov dword [r14], ebx
mov qword [r14 + 8], rax
test bl, bl
jne 0x140099624
cmp edi, 1
jne 0x1400995f9
lea rcx, [rsp + 0x60]
call fcn.1400035df
lea rcx, [rbp]
call fcn.1400013d4
cmp qword [rsp + 0x70], 0
jne 0x140099494
xor r12b, r12b
nop dword [rax]
lea rdx, [rbp + 0x70]
mov rcx, r13
call fcn.1400023ec
mov rcx, qword [rax + 0x20]
cmp qword [rbp + 0x20], rcx
jne 0x140099639
mov rax, qword [rax + 0x28]
cmp qword [rbp + 0x28], rax
jne 0x140099639
xor bl, bl
jmp 0x14009963b
mov qword [r15 + 0x10], r12
mov qword [r15 + 0x18], 7
mov word [r15], r12w
jmp 0x14009997f
mov bl, 1
lea rcx, [rbp + 0x70]
call fcn.140001325
test bl, bl
je 0x1400996a3
lea rdx, [rbp]
lea rcx, [rbp - 0x40]
call fcn.1400029a0
mov rcx, qword [rbp + 0x10]
cmp rcx, 2
ja 0x140099695
lea rax, [rbp]
mov rdx, qword [rbp]
mov r8, qword [rbp + 0x18]
cmp r8, 8
cmovae rax, rdx
cmp word [rax], 0x2e
jne 0x140099695
cmp rcx, 1
je 0x140099692
lea rax, [rbp]
cmp r8, 8
cmovae rax, rdx
cmp word [rax + 2], 0x2e
jne 0x140099695
mov r12b, 1
lea rcx, [rbp]
call fcn.1400033af
jmp 0x140099600
cmp qword [rsp + 0x70], 0
jne 0x1400996bb
mov rdx, r15
mov rcx, r13
call fcn.140002d29
jmp 0x14009997f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
mov ecx, 1
test eax, eax
cmove edi, ecx
mov edx, edi
mov eax, 2
mul rdx
mov rsi, 0xffffffffffffffff
cmovo rax, rsi
mov rcx, rax
call fcn.140003b02
mov rbx, rax
mov qword [rsp + 0x50], rax
mov rdx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x140099710
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r13d, r13d
jmp 0x140099716
xor r13d, r13d
mov eax, r13d
lea r8, str.boost::filesystem::current_path
xor edx, edx
mov ecx, eax
call fcn.1400963d0
movdqa xmm0, xmmword [0x1400d1c80]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], r13w
nop dword [rax + rax]
inc rsi
cmp word [rbx + rsi*2], 0
jne 0x140099740
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.140001f5f
nop
mov rcx, rbx
call fcn.140002d6a
nop
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x20]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.1400014d8
mov dword [rsp + 0x48], 0x1c0
lea rcx, [rbp - 0x20]
call fcn.140001325
lea rcx, [rsp + 0x60]
call fcn.140001325
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rbp - 0x70]
movups xmmword [rsp + 0x70], xmm1
movdqa xmm0, xmmword [0x1400d1c80]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r13w
lea rcx, [rbp - 0x80]
call fcn.140001325
mov ebx, dword [rbp - 0x60]
test ebx, ebx
jne 0x14009995e
test r14, r14
je 0x1400997dd
mov dword [r14], r13d
call fcn.140002c2a
mov qword [r14 + 8], rax
lea rdx, [rsp + 0x60]
cmp qword [rbp - 0x30], 0
jne 0x140099800
lea rcx, [rbp + 0x30]
call fcn.140002414
lea rdi, [rbp + 0x30]
mov ebx, 0x1c2
jmp 0x1400998c7
lea rcx, [rbp - 0x20]
call fcn.140002414
test r12b, r12b
je 0x140099851
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x20]
call fcn.1400029a0
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.140002414
nop
lea rcx, [rbp - 0x20]
call fcn.140001325
nop
mov dword [rsp + 0x48], 0x3c4
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x50]
call fcn.140002d29
mov rdi, rax
mov ebx, 0x3cc
jmp 0x14009987d
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x20]
call fcn.1400029a0
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140002414
nop
lea rcx, [rbp - 0x20]
call fcn.140001325
lea rdi, [rbp - 0x60]
mov ebx, 0x5d0
movdqa xmm0, xmmword [0x1400d1c80]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r13w
lea rax, [rbp - 0x80]
cmp rax, rdi
je 0x1400998c0
lea rcx, [rbp - 0x80]
call fcn.140001325
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 7
mov word [rdi], r13w
lea rdi, [rbp - 0x80]
or ebx, 0x20
mov qword [r15 + 0x10], r13
mov qword [r15 + 0x18], 7
mov word [r15], r13w
cmp r15, rdi
je 0x140099904
mov rcx, r15
call fcn.140001325
movups xmm0, xmmword [rdi]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [r15 + 0x10], xmm1
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 7
mov word [rdi], r13w
or ebx, 1
test bl, 0x20
je 0x140099918
and ebx, 0xffffffdf
lea rcx, [rbp - 0x80]
call fcn.140001325
test bl, 0x10
je 0x14009992a
and ebx, 0xffffffef
lea rcx, [rbp - 0x60]
call fcn.140001325
nop
test bl, 8
je 0x14009993c
and ebx, 0xfffffff7
lea rcx, [rbp + 0x70]
call fcn.140001325
nop
test bl, 4
je 0x14009994e
and ebx, 0xfffffffb
lea rcx, [rbp + 0x50]
call fcn.140001325
nop
test bl, 2
je 0x14009997f
lea rcx, [rbp + 0x30]
call fcn.140001325
jmp 0x14009997f
test r14, r14
je 0x1400999ca
call fcn.140002c2a
mov dword [r14], ebx
mov qword [r14 + 8], rax
mov qword [r15 + 0x10], r13
mov qword [r15 + 0x18], 7
mov word [r15], r13w
lea rcx, [rbp]
call fcn.140001325
nop
lea rcx, [rbp - 0x40]
call fcn.140001325
nop
lea rcx, [rsp + 0x60]
call fcn.140001325
mov rax, r15
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.140001c17
mov rbx, qword [rsp + 0x298]
add rsp, 0x240
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.boost::filesystem::weakly_canonical
lea rcx, [rbp + 0x70]
call fcn.14000405c
nop
call fcn.140002c2a
mov r8, rax
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.140001b63
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x60], xmm0
lea r9, [rbp - 0x60]
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0xd0]
call fcn.140003d55
lea rdx, [0x140118888]
lea rcx, [rbp + 0xd0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.boost::filesystem::weakly_canonical
lea rcx, [rbp + 0x30]
call fcn.14000405c
nop
call fcn.140002c2a
mov r8, rax
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.140001b63
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x60], xmm0
lea r9, [rbp - 0x60]
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x70]
call fcn.140003d55
lea rdx, [0x140118888]
lea rcx, [rbp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3