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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x780]
sub rsp, 0x880
mov rax, qword [0x1400bb4a8]
xor rax, rsp
mov qword [rbp + 0x770], rax
mov r14, r9
mov qword [rsp + 0x48], r9
mov r12, r8
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x68], r9
mov rax, qword [rbp + 0x7e0]
mov qword [rsp + 0x28], rax
mov r13, qword [rbp + 0x7e8]
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x70]
call fcn.14002b5b0
mov r8, qword [r13 + 0x10]
lea rax, [rsp + 0x70]
xor r10d, r10d
test r8, r8
je 0x1400184e3
mov ecx, r10d
movzx edx, word [r8]
test dx, dx
je 0x1400184df
lea r9, [rsp + 0x70]
sub r8, r9
cmp ecx, 0x3ff
jae 0x1400184df
mov word [rax], dx
add rax, 2
inc ecx
movzx edx, word [r8 + rax]
test dx, dx
jne 0x1400184c4
mov word [rax], r10w
lea rax, [rsp + 0x70]
mov rsi, 0xffffffffffffffff
mov rdi, rsi
inc rdi
cmp word [rax + rdi*2], r10w
jne 0x1400184f2
mov eax, dword [r13 + 0x48]
test eax, eax
je 0x1400185d0
cmp eax, 1
jne 0x14001851b
mov rax, qword [r13 + 0x40]
cmp word [rax], r10w
je 0x1400185d0
mov dword [rsp + 0x20], r10d
mov bl, 1
test bl, bl
je 0x1400185b9
mov r8d, 0x3a
lea r9, [rsp + 0x20]
lea rdx, [rsp + 0x58]
lea rcx, [r13 + 0x40]
call fcn.140027f80
nop
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.140027380
nop
lea rdx, [0x1400a0508]
lea rcx, [rsp + 0x30]
call fcn.140027d10
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.1400279b0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
jne 0x140018592
lea rcx, [rsp + 0x30]
call fcn.140027e00
nop
xor bl, bl
jmp 0x14001859f
lea rcx, [rsp + 0x30]
call fcn.140027e00
nop
mov bl, 1
lea rcx, [rsp + 0x58]
call fcn.140027e00
nop
cmp dword [rsp + 0x20], 0xffffffff
jne 0x140018522
test bl, bl
jne 0x1400185d0
mov rcx, r12
call fcn.140027e00
nop
mov rcx, r14
call fcn.140027e00
nop
jmp 0x140018743
mov edx, dword [r13 + 0x60]
lea rbx, [r13 + 0x64]
test edx, edx
jne 0x1400185e0
cmp dword [rbx], edx
je 0x140018617
lea r9, [rsp + 0x20]
mov r8d, dword [rbx]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
call fcn.14000bca0
test eax, eax
je 0x140018617
cmp dword [rsp + 0x20], 0
jne 0x140018617
mov rcx, r12
call fcn.140027e00
nop
mov rcx, r14
call fcn.140027e00
nop
jmp 0x140018743
mov r14, qword [rsp + 0x28]
mov r14, qword [r14]
test r14, r14
je 0x140018727
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x70]
call fcn.14002b5b0
mov r8, qword [r14 + 0x10]
lea rax, [rsp + 0x70]
test r8, r8
je 0x14001867f
xor r10d, r10d
mov ecx, r10d
movzx edx, word [r8]
test dx, dx
je 0x14001867b
lea r9, [rsp + 0x70]
sub r8, r9
nop
cmp ecx, 0x3ff
jae 0x14001867b
mov word [rax], dx
add rax, 2
inc ecx
movzx edx, word [r8 + rax]
test dx, dx
jne 0x140018660
mov word [rax], r10w
lea rax, [rsp + 0x70]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140018684
cmp rdi, rsi
ja 0x140018727
jne 0x14001870d
mov ecx, dword [r13 + 0x48]
test ecx, ecx
je 0x1400186dc
cmp ecx, 1
jne 0x1400186b0
mov rax, qword [r13 + 0x40]
cmp word [rax], 0
je 0x1400186c9
mov eax, dword [r14 + 0x48]
test eax, eax
je 0x140018727
cmp eax, 1
jne 0x1400186cd
mov rax, qword [r14 + 0x40]
cmp word [rax], 0
je 0x140018727
jmp 0x1400186cd
test ecx, ecx
je 0x1400186dc
cmp ecx, 1
jne 0x14001870d
mov rax, qword [r13 + 0x40]
cmp word [rax], 0
jne 0x14001870d
mov eax, dword [r14 + 0x48]
test eax, eax
je 0x1400186f3
cmp eax, 1
jne 0x14001870d
mov rax, qword [r14 + 0x40]
cmp word [rax], 0
jne 0x14001870d
mov ecx, dword [r14 + 0x18]
add ecx, ecx
mov eax, dword [r13 + 0x18]
add eax, eax
cmp eax, ecx
jbe 0x14001872f
mov rax, qword [rsp + 0x28]
mov qword [rax], r13
jmp 0x14001872f
cmp dword [r13 + 0x60], 0
jne 0x140018719
cmp dword [rbx], 0
je 0x14001872f
cmp dword [r14 + 0x60], 0
jne 0x14001872f
cmp dword [r14 + 0x64], 0
jne 0x14001872f
mov rbx, qword [rsp + 0x28]
mov qword [rbx], r13
mov rcx, r12
call fcn.140027e00
nop
mov rcx, qword [rsp + 0x48]
call fcn.140027e00
nop
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.140028460
mov rbx, qword [rsp + 0x8c0]
add rsp, 0x880
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret