Function at 0x18006b970
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfc0]
mov eax, 0x10c0
call fcn.18007fc70
sub rsp, rax
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x1110], rbx
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rbp + 0xfb0], rax
mov rbx, rdx
mov r13, rcx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x30], rdx
mov qword [rcx + 0x18], 7
xor eax, eax
mov qword [rcx + 0x10], rax
mov word [rcx], ax
mov qword [rcx + 0x40], 7
mov qword [rcx + 0x38], rax
mov word [rcx + 0x28], ax
lea rsi, [rcx + 0x50]
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rax
mov word [rsi], ax
mov qword [rcx + 0x90], 7
mov qword [rcx + 0x88], rax
mov word [rcx + 0x78], ax
mov qword [rcx + 0xb8], 7
mov qword [rcx + 0xb0], rax
mov word [rcx + 0xa0], ax
mov qword [rcx + 0xe0], 7
mov qword [rcx + 0xd8], rax
mov word [rcx + 0xc8], ax
mov dword [rcx + 0xf0], eax
mov dword [rcx + 0xf4], 1
or r9, 0xffffffffffffffff
xor r8d, r8d
call fcn.1800049e0
mov dword [r13 + 0xf8], 1
nop word [rax + rax]
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1800ab328]
mov rcx, rbx
call fcn.180013cd0
cmp eax, 0xffffffff
je 0x18006baa0
movsxd rdx, eax
mov r8d, 1
mov rcx, rbx
call fcn.180029340
jmp 0x18006ba70
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180028fa0
nop
mov rdx, rax
lea rcx, [r13 + 0x28]
call fcn.180004950
nop
cmp qword [rsp + 0x50], 8
jb 0x18006bacd
mov rcx, qword [rsp + 0x38]
call fcn.18007a7a4
mov rcx, rbx
call fcn.18006be90
mov dword [r13 + 0xf0], eax
test eax, eax
je 0x18006be42
cmp eax, 1
jne 0x18006be07
mov dx, 0x7e
mov rcx, rbx
call fcn.180039d70
xor edi, edi
mov ecx, edi
cmp rax, 0xffffffffffffffff
sete cl
mov dword [r13 + 0xf4], ecx
test ecx, ecx
jne 0x18006bc0a
mov word [rbp - 0x50], di
xor edx, edx
mov r8d, 0xffe
lea rcx, [rbp - 0x4e]
call fcn.18007e840
cmp qword [rbx + 0x18], 8
jb 0x18006bb34
mov rcx, qword [rbx]
jmp 0x18006bb37
mov rcx, rbx
mov r8d, 0x800
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x18006bb80
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x18006bb62
mov dword [r13 + 0xf8], edi
jmp 0x18006be44
xor r9d, r9d
lea r8, [0x1800afc88]
lea rdx, [0x1800afc98]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x18006be44
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rdi
mov word [rbp - 0x78], di
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x78]
call fcn.180004cc0
nop
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x38]
call fcn.180028fa0
nop
mov rdx, rax
lea rcx, [r13 + 0xc8]
call fcn.180004950
nop
cmp qword [rsp + 0x50], 8
jb 0x18006bbe3
mov rcx, qword [rsp + 0x38]
call fcn.18007a7a4
mov qword [rsp + 0x50], 7
xor eax, eax
mov qword [rsp + 0x48], rax
mov word [rsp + 0x38], ax
cmp qword [rbp - 0x60], 8
jb 0x18006bc20
mov rcx, qword [rbp - 0x78]
call fcn.18007a7a4
jmp 0x18006bc20
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [r13 + 0xc8]
call fcn.1800049e0
cmp qword [r13 + 0xd8], 0
ja 0x18006bc37
lea rcx, str.invalid_string_position
call fcn.18007837c
int3
cmp qword [r13 + 0xe0], 8
jb 0x18006bc4a
mov rax, qword [r13 + 0xc8]
jmp 0x18006bc51
lea rax, [r13 + 0xc8]
movzx edi, word [rax]
cmp qword [rsi + 0x18], 1
jae 0x18006bc6c
mov r8, qword [rsi + 0x10]
mov edx, 1
mov rcx, rsi
call fcn.1800051e0
cmp qword [rsi + 0x18], 8
jb 0x18006bc78
mov rax, qword [rsi]
jmp 0x18006bc7b
mov rax, rsi
mov word [rax], di
mov qword [rsi + 0x10], 1
cmp qword [rsi + 0x18], 8
jb 0x18006bc90
mov rsi, qword [rsi]
xor edi, edi
mov word [rsi + 2], di
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rdi
mov word [rsp + 0x60], di
lea edx, [rdi + 0x5c]
or r8, 0xffffffffffffffff
lea rcx, [r13 + 0xc8]
call fcn.18000b870
cmp rax, 0xffffffffffffffff
je 0x18006bdf3
lea r8, [rax + 1]
or r9, 0xffffffffffffffff
lea rdx, [rsp + 0x38]
lea rcx, [r13 + 0xc8]
call fcn.18000b940
mov rdi, rax
lea rax, [rsp + 0x60]
cmp rax, rdi
je 0x18006bd58
cmp qword [rsp + 0x78], 8
jb 0x18006bcfe
mov rcx, qword [rsp + 0x60]
call fcn.18007a7a4
mov qword [rsp + 0x78], 7
xor esi, esi
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x60], si
cmp qword [rdi + 0x18], 8
jae 0x18006bd33
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.18007abc0
jmp 0x18006bd3e
mov rax, qword [rdi]
mov qword [rsp + 0x60], rax
mov qword [rdi], rsi
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x70], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x78], rax
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
cmp qword [rsp + 0x50], 8
jb 0x18006bd6a
mov rcx, qword [rsp + 0x38]
call fcn.18007a7a4
mov edx, 0x2e
lea rcx, [rsp + 0x60]
call fcn.180039d70
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18006bdf1
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.18000b940
nop
mov rdx, rax
lea rcx, [r13 + 0x78]
call fcn.180004950
nop
cmp qword [rsp + 0x50], 8
jb 0x18006bdb7
mov rcx, qword [rsp + 0x38]
call fcn.18007a7a4
lea r8, [rdi + 1]
or r9, 0xffffffffffffffff
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.18000b940
nop
mov rdx, rax
lea rcx, [r13 + 0xa0]
call fcn.180004950
nop
cmp qword [rsp + 0x50], 8
jb 0x18006bdf1
mov rcx, qword [rsp + 0x38]
call fcn.18007a7a4
xor edi, edi
cmp qword [rsp + 0x78], 8
jb 0x18006be44
mov rcx, qword [rsp + 0x60]
call fcn.18007a7a4
jmp 0x18006be44
mov dword [r13 + 0xf4], 1
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180028fa0
nop
mov rdx, rax
lea rcx, [r13 + 0xc8]
call fcn.180004950
nop
cmp qword [rsp + 0x50], 8
jb 0x18006be42
mov rcx, qword [rsp + 0x38]
call fcn.18007a7a4
xor edi, edi
cmp qword [rbx + 0x18], 8
jb 0x18006be53
mov rcx, qword [rbx]
call fcn.18007a7a4
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
mov word [rbx], di
mov rax, r13
mov rcx, qword [rbp + 0xfb0]
xor rcx, rsp
call fcn.18007a7c0
mov rbx, qword [rsp + 0x1110]
add rsp, 0x10c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret