Function at 0x140018560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x220
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov rdi, rdx
mov qword [rsp + 0x38], rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x78], rdx
cmp rcx, rdx
je 0x1400185bc
or r9, 0xffffffffffffffff
xor r8d, r8d
call fcn.140007c20
lea rcx, [rbx + 0x20]
call fcn.140019570
cmp qword [rbx + 0x10], 0
je 0x140018d03
cmp qword [rbx + 0x18], 8
jb 0x1400185dc
mov rcx, qword [rbx]
jmp 0x1400185df
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140018d03
test al, 0x10
jne 0x140018d03
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x100]
call fcn.14009cd20
mov rdx, rbx
lea rcx, [rsp + 0x100]
call fcn.140019680
nop
mov qword [rsp + 0x98], 7
xor r12d, r12d
mov qword [rsp + 0x90], r12
mov word [rsp + 0x80], r12w
mov qword [rsp + 0xf8], 7
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xe0], r12w
xor r8d, r8d
lea rdx, [0x14010c8e4]
lea rcx, [rsp + 0xe0]
call fcn.140007ad0
nop
lea rsi, [fcn.1400a42cc]
nop dword [rax + rax]
mov rax, qword [rsp + 0x100]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x100]
add rcx, rax
lea rdx, [rsp + 0x48]
call fcn.140011140
nop
mov rcx, rax
call fcn.140017480
mov rbx, rax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400186d1
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x1400186d1
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
mov rax, qword [rbx]
mov dl, 0xa
mov rcx, rbx
call qword [rax + 0x60]
movzx r8d, ax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x100]
call fcn.14001b9d0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
jne 0x140018bc8
mov r8, qword [rsp + 0x90]
test r8, r8
je 0x140018680
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x98]
cmp rdx, 8
cmovae rax, rcx
lea r14, [rax + r8*2]
lea rdi, [rsp + 0x80]
cmovae rdi, rcx
lea rax, [rsp + 0x80]
cmovae rax, rcx
lea rbx, [rax + r8*2]
cmp rbx, rdi
je 0x14001877d
movzx ecx, word [rbx - 2]
call rsi
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x80]
test eax, eax
je 0x14001877d
add rbx, 0xfffffffffffffffe
jmp 0x140018758
lea rax, [rsp + 0x80]
cmp rdx, 8
cmovae rax, rcx
mov rdx, rbx
sub rdx, rax
sar rdx, 1
sub r14, rbx
sar r14, 1
mov r8, r14
lea rcx, [rsp + 0x80]
call fcn.140007f10
lea rcx, [rsp + 0x80]
call fcn.14001fd80
lea rcx, [rsp + 0x80]
cmp rcx, rax
je 0x1400187dd
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140007c20
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x98]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax], 0x3b
je 0x140018680
lea rax, [rsp + 0x80]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax], 0x23
je 0x140018680
lea rax, [rsp + 0x80]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax], 0x5b
jne 0x1400188e8
lea rax, [rsp + 0x80]
cmp rdx, 8
cmovae rax, rcx
mov r9, qword [rsp + 0x90]
cmp word [rax + r9*2 - 2], 0x5d
jne 0x1400188e8
add r9, 0xfffffffffffffffe
mov r8d, 1
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x80]
call fcn.140013570
mov rbx, rax
lea rax, [rsp + 0xe0]
cmp rax, rbx
je 0x1400188e3
mov r8, qword [rsp + 0xf8]
cmp r8, 8
jb 0x1400188b5
inc r8
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0xe0]
call fcn.140007ea0
mov qword [rsp + 0xf8], 7
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xe0], r12w
mov rdx, rbx
lea rcx, [rsp + 0xe0]
call fcn.140007d60
nop
jmp 0x140018b99
lea rcx, [rsp + 0x80]
call fcn.1400135b0
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140018680
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x80]
call fcn.140013570
nop
lea r14, [rsp + 0xc0]
mov r8, qword [rsp + 0xc0]
mov r9, qword [rsp + 0xd8]
cmp r9, 8
cmovae r14, r8
mov rax, qword [rsp + 0xd0]
lea rdx, [rax + rax]
add r14, rdx
lea rdi, [rsp + 0xc0]
cmp r9, 8
cmovae rdi, r8
lea rbx, [rsp + 0xc0]
cmovae rbx, r8
add rbx, rdx
nop dword [rax]
cmp rbx, rdi
je 0x140018995
movzx ecx, word [rbx - 2]
call rsi
mov r9, qword [rsp + 0xd8]
mov r8, qword [rsp + 0xc0]
test eax, eax
je 0x140018995
add rbx, 0xfffffffffffffffe
jmp 0x140018970
lea rax, [rsp + 0xc0]
cmp r9, 8
cmovae rax, r8
mov rdx, rbx
sub rdx, rax
sar rdx, 1
sub r14, rbx
sar r14, 1
mov r8, r14
lea rcx, [rsp + 0xc0]
call fcn.140007f10
lea rcx, [rsp + 0xc0]
call fcn.14001fd80
lea rcx, [rsp + 0xc0]
cmp rcx, rax
je 0x1400189f5
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0xc0]
call fcn.140007c20
mov r9, qword [rsp + 0x90]
sub r9, r13
dec r9
lea r8, [r13 + 1]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x80]
call fcn.140013570
nop
lea r14, [rsp + 0xa0]
mov r8, qword [rsp + 0xa0]
mov r9, qword [rsp + 0xb8]
cmp r9, 8
cmovae r14, r8
mov rax, qword [rsp + 0xb0]
lea rdx, [rax + rax]
add r14, rdx
lea rdi, [rsp + 0xa0]
cmp r9, 8
cmovae rdi, r8
lea rbx, [rsp + 0xa0]
cmovae rbx, r8
add rbx, rdx
nop dword [rax + rax]
cmp rbx, rdi
je 0x140018a95
movzx ecx, word [rbx - 2]
call rsi
mov r9, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xa0]
test eax, eax
je 0x140018a95
add rbx, 0xfffffffffffffffe
jmp 0x140018a70
lea rax, [rsp + 0xa0]
cmp r9, 8
cmovae rax, r8
mov rdx, rbx
sub rdx, rax
sar rdx, 1
sub r14, rbx
sar r14, 1
mov r8, r14
lea rcx, [rsp + 0xa0]
call fcn.140007f10
lea rcx, [rsp + 0xa0]
call fcn.14001fd80
lea rcx, [rsp + 0xa0]
cmp rcx, rax
je 0x140018af5
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.140007c20
mov rax, qword [rsp + 0x30]
lea rcx, [rax + 0x20]
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0x58]
call fcn.14001bba0
mov rcx, qword [rsp + 0x58]
add rcx, 0x40
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x68]
call fcn.14001bc90
mov rcx, qword [rsp + 0x68]
add rcx, 0x40
lea rax, [rsp + 0xa0]
cmp rcx, rax
je 0x140018b56
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0xa0]
call fcn.140007c20
nop
mov r8, qword [rsp + 0xb8]
cmp r8, 8
jb 0x140018b7c
inc r8
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0xa0]
call fcn.140007ea0
mov qword [rsp + 0xb8], 7
mov qword [rsp + 0xb0], r12
mov word [rsp + 0xa0], r12w
mov r8, qword [rsp + 0xd8]
cmp r8, 8
jb 0x140018680
inc r8
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0xc0]
call fcn.140007ea0
jmp 0x140018680
lea rcx, [rsp + 0x110]
call fcn.14001a750
test rax, rax
jne 0x140018c0d
mov rax, qword [rsp + 0x100]
movsxd rcx, dword [rax + 4]
lea r9, [rsp + 0x100]
add rcx, r9
mov eax, dword [rcx + 0x10]
or eax, 2
mov edx, eax
or edx, 4
cmp qword [rcx + 0x48], 0
cmovne edx, eax
xor r8d, r8d
call fcn.140011030
nop
mov r8, qword [rsp + 0xf8]
cmp r8, 8
jb 0x140018c33
inc r8
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0xe0]
call fcn.140007ea0
mov qword [rsp + 0xf8], 7
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xe0], r12w
mov r8, qword [rsp + 0x98]
cmp r8, 8
jb 0x140018c76
inc r8
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x80]
call fcn.140007ea0
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r12
mov word [rsp + 0x80], r12w
lea rcx, [rsp + 0x1b0]
call fcn.140019600
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x1b0], rax
lea rcx, [rsp + 0x1b0]
call fcn.14007a3d4
nop
mov rdi, qword [rsp + 0x38]
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x140018cdb
inc r8
mov rdx, qword [rdi]
mov rcx, rdi
call fcn.140007ea0
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
cmp qword [rdi + 0x18], 8
jb 0x140018cf1
mov rdi, qword [rdi]
mov al, 1
jmp 0x140018d36
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x140018d1b
inc r8
mov rdx, qword [rdi]
mov rcx, rdi
call fcn.140007ea0
mov qword [rdi + 0x18], 7
xor r12d, r12d
mov qword [rdi + 0x10], r12
cmp qword [rdi + 0x18], 8
jb 0x140018d34
mov rdi, qword [rdi]
xor al, al
mov word [rdi], r12w
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1400784c0
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret