Function at 0x140067cbc
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x128]
sub rsp, 0x1e8
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov r15, rcx
call fcn.140068204
mov r8, r15
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000afc8
nop
call fcn.140068204
mov r8, r14
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14000afc8
nop
lea rcx, [rsp + 0x50]
mov ebx, 8
cmp qword [rsp + 0x68], rbx
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor r13d, r13d
test eax, eax
jne 0x140067dd6
cmp qword [rbp - 0x78], rbx
jb 0x140067d58
mov rcx, qword [rsp + 0x70]
call fcn.1400431dc
mov esi, 7
mov word [rsp + 0x70], r13w
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], rsi
cmp qword [rsp + 0x68], rbx
jb 0x140067d7c
mov rcx, qword [rsp + 0x50]
call fcn.1400431dc
mov word [rsp + 0x50], r13w
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], rsi
cmp qword [r15 + 0x18], rbx
jb 0x140067d9a
mov rcx, qword [r15]
call fcn.1400431dc
mov qword [r15 + 0x18], rsi
mov qword [r15 + 0x10], r13
mov word [r15], r13w
cmp qword [r14 + 0x18], rbx
jb 0x140067db4
mov rcx, qword [r14]
call fcn.1400431dc
mov qword [r14 + 0x18], rsi
mov qword [r14 + 0x10], r13
mov word [r14], r13w
cmp qword [rdi + 0x18], rbx
jb 0x140067dce
mov rcx, qword [rdi]
call fcn.1400431dc
or eax, 0xffffffff
jmp 0x1400681b7
lea rax, [rsp + 0x30]
mov qword [rbp - 0x68], rax
mov esi, 7
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], r13
mov word [rsp + 0x30], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140009c54
nop
lea rcx, [rsp + 0x30]
call fcn.140066334
mov rcx, qword [rax]
mov qword [rbp - 0x60], rcx
mov rcx, qword [rax + 8]
mov qword [rbp - 0x58], rcx
mov rcx, qword [rax + 0x10]
mov qword [rbp - 0x50], rcx
mov rax, qword [rax + 0x18]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x70], r13
mov qword [rbp + 0x148], r13
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], rbx
cmovae rcx, qword [rsp + 0x70]
lea rdx, [rbp - 0x70]
call qword [0x1400c4720]
test eax, eax
je 0x140067e75
cmp qword [rbp - 0x78], rbx
jb 0x140067d5d
mov rcx, qword [rsp + 0x70]
call fcn.1400431dc
jmp 0x140067d5d
lea rdx, [0x1400c11f0]
cmp qword [0x1400c1208], 0x10
cmovae rdx, qword [0x1400c11f0]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x148]
or r8d, 0xffffffff
mov rcx, qword [rbp - 0x70]
call qword [0x1400c4678]
mov r12d, eax
lea r8, [0x1400963f8]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14000b098
mov rbx, rax
cmp rdi, rax
je 0x140067eec
cmp qword [rdi + 0x18], 8
jb 0x140067ed4
mov rcx, qword [rdi]
call fcn.1400431dc
mov qword [rdi + 0x18], rsi
mov qword [rdi + 0x10], r13
mov word [rdi], r13w
mov rdx, rbx
mov rcx, rdi
call fcn.140009bd0
nop
cmp qword [rsp + 0x48], 8
jb 0x140067efe
mov rcx, qword [rsp + 0x30]
call fcn.1400431dc
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], r13
mov word [rsp + 0x30], r13w
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.140007df4
nop
test r12d, r12d
jne 0x1400680b1
mov rcx, qword [rbp + 0x148]
call qword [0x1400c4698]
cmp eax, 0x64
jne 0x1400680b1
xor r14d, r14d
xor edx, edx
mov rcx, qword [rbp + 0x148]
call qword [0x1400c46a8]
mov r13, rax
mov edx, 1
mov rcx, qword [rbp + 0x148]
call qword [0x1400c46a8]
mov rbx, rax
mov edx, 2
mov rcx, qword [rbp + 0x148]
call qword [0x1400c46a8]
mov r12, rax
mov edx, 3
mov rcx, qword [rbp + 0x148]
call qword [0x1400c46a8]
test r13, r13
je 0x140068091
test rbx, rbx
je 0x140068091
test r12, r12
je 0x140068091
test rax, rax
je 0x140068091
mov edx, 3
mov rcx, qword [rbp + 0x148]
call qword [0x1400c46a8]
mov rdx, rax
lea r8, [rbp - 0x60]
lea rcx, [rsp + 0x30]
call fcn.1400659d8
nop
cmp qword [rsp + 0x40], r14
je 0x14006806c
lea rbx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rbx, qword [rsp + 0x30]
lea rdx, [0x14009618c]
lea rcx, [rbp - 0x30]
call fcn.14000b16c
mov rcx, rax
mov rdx, r13
call fcn.14000b16c
mov rcx, rax
lea rdx, [0x14009605c]
call fcn.14000b16c
mov rcx, rax
lea rdx, [0x140096420]
call fcn.14000b16c
mov rcx, rax
mov rdx, r12
call fcn.14000b16c
mov rcx, rax
lea rdx, [0x14009604c]
call fcn.14000b16c
mov rcx, rax
lea rdx, [0x140096410]
call fcn.14000b16c
mov rcx, rax
mov rdx, rbx
call fcn.14000b16c
mov rcx, rax
lea rdx, [0x14009603c]
call fcn.14000b16c
nop
cmp qword [rsp + 0x48], 0x10
jb 0x14006807e
mov rcx, qword [rsp + 0x30]
call fcn.1400431dc
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], r14
mov byte [rsp + 0x30], r14b
mov rcx, qword [rbp + 0x148]
call qword [0x1400c4698]
cmp eax, 0x64
je 0x140067f3d
mov r14, qword [rbp + 0x138]
xor r13d, r13d
mov rcx, qword [rbp + 0x148]
call qword [0x1400c46b0]
mov rcx, qword [rbp - 0x70]
call qword [0x1400c46c0]
lea rcx, [rbp - 0x28]
call fcn.140009eb8
test rax, rax
jne 0x1400680fe
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rcx, [rbp + rcx - 0x30]
mov edx, dword [rcx + 0x10]
or edx, 2
mov eax, edx
or eax, 4
cmp qword [rcx + 0x48], r13
cmove edx, eax
xor r8d, r8d
call fcn.1400072c8
nop
lea rcx, [rbp + 0x78]
call fcn.140007fc4
lea rax, [rbp + 0x78]
mov qword [rbp - 0x68], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x78], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x78], rax
lea rcx, [rbp + 0x78]
call fcn.1400643e8
nop
cmp qword [rbp - 0x78], 8
jb 0x140068140
mov rcx, qword [rsp + 0x70]
call fcn.1400431dc
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
cmp qword [rsp + 0x68], 8
jb 0x140068160
mov rcx, qword [rsp + 0x50]
call fcn.1400431dc
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
cmp qword [r15 + 0x18], 8
jb 0x14006817f
mov rcx, qword [r15]
call fcn.1400431dc
mov qword [r15 + 0x18], rsi
mov qword [r15 + 0x10], r13
mov word [r15], r13w
cmp qword [r14 + 0x18], 8
jb 0x14006819a
mov rcx, qword [r14]
call fcn.1400431dc
mov qword [r14 + 0x18], rsi
mov qword [r14 + 0x10], r13
mov word [r14], r13w
cmp qword [rdi + 0x18], 8
jb 0x1400681b5
mov rcx, qword [rdi]
call fcn.1400431dc
xor eax, eax
mov qword [rdi + 0x18], rsi
mov qword [rdi + 0x10], r13
mov word [rdi], r13w
add rsp, 0x1e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret