Function at 0x180069840
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x350]
sub rsp, 0x450
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rsp + 0x498], rbx
mov rax, qword [0x1801485f0]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov qword [rsp + 0x30], r8
mov r13, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.1800a14b0
nop
lea rcx, [rbp + 0x280]
call fcn.1800a5580
nop
mov rdx, rbx
lea rcx, [rbp + 0x70]
call fcn.18006ac20
nop
mov r9b, 1
lea r8, [rbp - 0x38]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x280]
call fcn.1800ab120
test al, al
je 0x180069f43
lea rcx, [rbp + 0x70]
call fcn.180014c00
lea rcx, [rbp + 0x180]
call fcn.180003800
nop
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.1800a3f50
test al, al
sete dil
cmp qword [rbp + 0x198], 0x10
jb 0x18006990a
mov rcx, qword [rbp + 0x180]
call fcn.1800b5700
mov qword [rbp + 0x198], 0xf
xor r15d, r15d
mov qword [rbp + 0x190], r15
mov byte [rbp + 0x180], r15b
test dil, dil
jne 0x180069f43
lea rdx, [0x180100868]
lea rcx, [rsp + 0x50]
call fcn.1800a1340
nop
lea rcx, [rbp + 0x180]
call fcn.180003800
nop
lea r9, [rsp + 0x50]
mov r8, rax
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x38]
call fcn.1800a39f0
nop
cmp qword [rbp + 0x198], 0x10
jb 0x18006997a
mov rcx, qword [rbp + 0x180]
call fcn.1800b5700
mov qword [rbp + 0x198], 0xf
mov qword [rbp + 0x190], r15
mov byte [rbp + 0x180], 0
lea rcx, [rsp + 0x50]
call fcn.1800a17b0
lea rcx, [rbp - 0x60]
call fcn.1800a3fc0
test al, al
je 0x180069f35
lea rcx, [rbp + 0x180]
call fcn.180030b70
nop
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1800a3f50
test al, al
sete dil
cmp qword [rbp + 0x198], 0x10
jb 0x1800699e3
mov rcx, qword [rbp + 0x180]
call fcn.1800b5700
mov qword [rbp + 0x198], 0xf
mov qword [rbp + 0x190], r15
mov byte [rbp + 0x180], 0
test dil, dil
jne 0x180069f35
lea rdx, [0x180100868]
lea rcx, [rsp + 0x50]
call fcn.1800a1340
nop
lea rcx, [rbp + 0x180]
call fcn.180030b70
nop
lea r9, [rsp + 0x50]
mov r8, rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x60]
call fcn.1800a39f0
nop
cmp qword [rbp + 0x198], 0x10
jb 0x180069a51
mov rcx, qword [rbp + 0x180]
call fcn.1800b5700
mov qword [rbp + 0x198], 0xf
mov qword [rbp + 0x190], r15
mov byte [rbp + 0x180], 0
lea rcx, [rsp + 0x50]
call fcn.1800a17b0
lea rcx, [rsp + 0x78]
call fcn.1800a3fc0
test al, al
jne 0x180069a8a
xor sil, sil
jmp 0x180069f29
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.1800a3b20
nop
mov rcx, rbx
call fcn.18006ab50
mov r9, rax
xor r8d, r8d
lea rdx, [rbp + 0x1c0]
mov rcx, rbx
call fcn.1800138a0
nop
mov rdi, qword [rsp + 0x38]
cmp rdi, qword [rsp + 0x40]
je 0x180069e9f
mov qword [rbp + 0x1b0], r15
mov qword [rbp + 0x1b8], r15
mov qword [rbp + 0x1b8], 0xf
mov qword [rbp + 0x1b0], r15
mov byte [rbp + 0x1a0], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp + 0x1a0]
call fcn.180015bd0
nop
mov rbx, qword [r13]
cmp rbx, qword [r13 + 8]
je 0x180069bb6
mov r12, qword [rbx]
mov esi, r15d
mov rcx, qword [r12 + 8]
mov rax, qword [r12 + 0x10]
sub rax, rcx
sar rax, 5
test eax, eax
jle 0x180069ba2
xor r14d, r14d
nop word [rax + rax]
lea rdx, [rbp + 0x1a0]
cmp qword [rbp + 0x1b8], 0x10
cmovae rdx, qword [rbp + 0x1a0]
cmp rax, r15
jbe 0x180069e92
add rcx, r14
cmp qword [rcx + 0x18], 0x10
jb 0x180069b6d
mov rcx, qword [rcx]
mov r8, qword [rbp + 0x1b0]
call fcn.1800d7d2c
test eax, eax
je 0x180069b9d
inc esi
inc r15
add r14, 0x20
mov rcx, qword [r12 + 8]
mov rax, qword [r12 + 0x10]
sub rax, rcx
sar rax, 5
cmp esi, eax
jl 0x180069b40
jmp 0x180069ba2
cmp esi, 0xffffffff
jne 0x180069bae
add rbx, 8
xor r15d, r15d
jmp 0x180069b0a
mov r14, qword [rbx]
xor r15d, r15d
jmp 0x180069bb9
mov r14, r15
lea rdx, [0x180100868]
lea rcx, [rbp + 0x48]
call fcn.1800a1340
nop
lea r9, [rbp + 0x48]
mov r8, rdi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.1800a39f0
nop
lea rcx, [rbp + 0x48]
call fcn.1800a17b0
lea rdx, str.state
lea rcx, [rsp + 0x50]
call fcn.1800a3f90
test al, al
je 0x180069e4f
test r14, r14
je 0x180069e4f
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp + 0x240]
call fcn.18001b8b0
mov rsi, rax
lea rcx, [rbp + 0x1e0]
call fcn.180003950
mov rbx, rax
lea r8, [0x180100a48]
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp + 0x260]
call fcn.180019600
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x220]
call fcn.180018ea0
nop
lea r8, [0x180100a48]
mov rdx, rax
lea rcx, [rbp + 0x200]
call fcn.1800196f0
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rbp + 0x180]
call fcn.180019320
nop
cmp qword [rbp + 0x218], 8
jb 0x180069c9f
mov rcx, qword [rbp + 0x200]
call fcn.1800b5700
mov qword [rbp + 0x218], 7
mov qword [rbp + 0x210], r15
mov word [rbp + 0x200], r15w
cmp qword [rbp + 0x238], 8
jb 0x180069ccf
mov rcx, qword [rbp + 0x220]
call fcn.1800b5700
mov qword [rbp + 0x238], 7
mov qword [rbp + 0x230], r15
mov word [rbp + 0x220], r15w
cmp qword [rbp + 0x278], 8
jb 0x180069cff
mov rcx, qword [rbp + 0x260]
call fcn.1800b5700
mov qword [rbp + 0x278], 7
mov qword [rbp + 0x270], r15
mov word [rbp + 0x260], r15w
cmp qword [rbp + 0x1f8], 8
jb 0x180069d2f
mov rcx, qword [rbp + 0x1e0]
call fcn.1800b5700
mov qword [rbp + 0x1f8], 7
mov qword [rbp + 0x1f0], r15
mov word [rbp + 0x1e0], r15w
cmp qword [rbp + 0x258], 8
jb 0x180069d5f
mov rcx, qword [rbp + 0x240]
call fcn.1800b5700
mov qword [rbp + 0x258], 7
mov qword [rbp + 0x250], r15
mov word [rbp + 0x240], r15w
cmp qword [rbp + 0x190], 0
je 0x180069e15
lea rcx, [rbp + 0x180]
cmp qword [rbp + 0x198], 8
cmovae rcx, qword [rbp + 0x180]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x180069e15
lea rdx, [0x180100868]
lea rcx, [rbp + 0x20]
call fcn.1800a1340
nop
lea r9, [rbp + 0x20]
lea r8, str.state
lea rdx, [rbp - 8]
lea rcx, [rsp + 0x50]
call fcn.1800a3ad0
nop
lea rcx, [rbp + 0x20]
call fcn.1800a17b0
lea rcx, [rbp - 8]
call fcn.1800a3ec0
test al, al
je 0x180069dfd
lea rcx, [rbp - 8]
call fcn.1800a2a30
cmp eax, 1
mov edx, 2
je 0x180069e02
mov edx, 1
mov rcx, r14
call qword [rsp + 0x30]
nop
lea rcx, [rbp - 8]
call fcn.1800a17b0
jmp 0x180069e1f
xor edx, edx
mov rcx, r14
call qword [rsp + 0x30]
nop
cmp qword [rbp + 0x198], 8
jb 0x180069e35
mov rcx, qword [rbp + 0x180]
call fcn.1800b5700
mov qword [rbp + 0x198], 7
mov qword [rbp + 0x190], r15
mov word [rbp + 0x180], r15w
lea rcx, [rsp + 0x50]
call fcn.1800a17b0
nop
cmp qword [rbp + 0x1b8], 0x10
jb 0x180069e70
mov rcx, qword [rbp + 0x1a0]
call fcn.1800b5700
mov qword [rbp + 0x1b8], 0xf
mov qword [rbp + 0x1b0], r15
mov byte [rbp + 0x1a0], 0
add rdi, 0x20
jmp 0x180069abd
lea rcx, str.invalid_vector_T__subscript
call fcn.1800b0d60
nop
mov sil, 1
cmp qword [rbp + 0x1d8], 8
jb 0x180069eb8
mov rcx, qword [rbp + 0x1c0]
call fcn.1800b5700
mov qword [rbp + 0x1d8], 7
mov qword [rbp + 0x1d0], r15
mov word [rbp + 0x1c0], r15w
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x180069f29
mov rdi, qword [rsp + 0x40]
cmp rbx, rdi
je 0x180069f12
cmp qword [rbx + 0x18], 0x10
jb 0x180069ef5
mov rcx, qword [rbx]
call fcn.1800b5700
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r15
mov byte [rbx], 0
add rbx, 0x20
cmp rbx, rdi
jne 0x180069ee6
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1800b5700
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
lea rcx, [rsp + 0x78]
call fcn.1800a17b0
jmp 0x180069f38
xor sil, sil
lea rcx, [rbp - 0x60]
call fcn.1800a17b0
jmp 0x180069f46
xor sil, sil
lea rcx, [rbp + 0x120]
call fcn.180014b70
lea rax, [rbp + 0x120]
mov qword [rsp + 0x30], rax
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x120], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x120], rax
lea rcx, [rbp + 0x120]
call fcn.1800b1648
nop
lea rcx, [rbp + 0x280]
call fcn.180008ec0
nop
lea rcx, [rbp - 0x38]
call fcn.1800a17b0
movzx eax, sil
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.1800b6c40
mov rbx, qword [rsp + 0x498]
add rsp, 0x450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret