Function at 0x14018a0e0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d8]
sub rsp, 0x2d8
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14026f088]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r13, r9
mov rax, r8
mov r12, rdx
mov rsi, rcx
mov r14, qword [rbp + 0x240]
mov r15, qword [rbp + 0x248]
mov qword [rsp + 0x40], 7
xor edi, edi
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
or rbx, 0xffffffffffffffff
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140003710
nop
mov r8, qword [rsp + 0x38]
test r8, r8
sete al
test al, al
jne 0x14018a1c1
lea rax, [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + r8*2 - 2], 0x5c
je 0x14018a1b8
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + r8*2 - 2], 0x2f
je 0x14018a1b8
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + r8*2 - 2], 0x3a
jne 0x14018a1c1
lea rdx, [0x140201560]
jmp 0x14018a1c8
lea rdx, [0x140211be8]
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14018a1d0
lea rcx, [rsp + 0x28]
call fcn.140004d70
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [r12], rax
cmp rax, 0xffffffffffffffff
jne 0x14018a25b
mov qword [r12], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14018a22d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x14018a22d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.14018cdd0
mov dword [rsi], edi
mov qword [rsi + 8], rax
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x14018a256
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140003900
nop
jmp 0x14018a35e
cmp word [rbp - 0x64], 0
jne 0x14018a267
mov r8, rdi
jmp 0x14018a27b
lea rax, [rbp - 0x64]
mov r8, rbx
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14018a270
lea rdx, [rbp - 0x64]
mov rcx, r13
call fcn.140003290
mov eax, dword [rsp + 0x70]
bt eax, 0xa
jae 0x14018a29c
mov dword [r14], edi
mov dword [r15], edi
jmp 0x14018a335
test al, 0x10
je 0x14018a2b0
mov dword [r14], 3
mov dword [r15], 3
jmp 0x14018a2be
mov dword [r14], 2
mov dword [r15], 2
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x48], di
cmp word [rbp - 0x64], 0
jne 0x14018a2dd
mov rbx, rdi
jmp 0x14018a2eb
lea rax, [rbp - 0x64]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14018a2e1
mov r8, rbx
lea rdx, [rbp - 0x64]
lea rcx, [rsp + 0x48]
call fcn.140003290
nop
mov edx, dword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14018b010
mov dword [r14 + 4], eax
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14018a32d
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140003900
nop
mov eax, dword [r14 + 4]
mov dword [r15 + 4], eax
mov dword [rsi], edi
call fcn.14018cdd0
mov qword [rsi + 8], rax
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x14018a35e
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140003900
nop
mov rax, rsi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140185a60
add rsp, 0x2d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret