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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x270
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rbp + 0x160], rax
movzx ebx, dl
lea rdx, [rbp + 0x138]
call fcn.1400222a0
nop
lea rdx, str.D:_A_CIOI_FA___WD_
lea rcx, [rbp + 0xc0]
call fcn.14001c840
nop
test bl, bl
jne 0x140018432
lea rdx, str.D:PAI_A__0x140000___WD_
lea rcx, [rbp + 0x20]
call fcn.14001c840
nop
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0xc0]
call fcn.14001d690
nop
lea rcx, [rbp + 0x20]
call fcn.14001d440
xor r12d, r12d
mov qword [rsp + 0x70], r12
lea rdx, [rbp + 0x138]
lea rcx, [rbp + 0x70]
call fcn.14001c0d0
nop
xor edx, edx
lea rcx, [rbp + 0x70]
call fcn.14001f4b0
lea rcx, [rbp + 0xc0]
call fcn.14002aa20
mov rcx, rax
xor r9d, r9d
lea r8, [rsp + 0x70]
lea edx, [r12 + 1]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x140018a8c
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x70]
call fcn.1400222a0
nop
lea rcx, [rbp - 8]
call fcn.14002aa20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400184c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rbp - 8]
call fcn.14001d440
test ebx, ebx
je 0x1400184cd
cmp ebx, 5
jne 0x140018a95
jmp 0x1400184cd
lea rcx, [rbp - 8]
call fcn.14001d440
mov qword [rbp - 0x78], r12
mov qword [rsp + 0x68], r12
lea rcx, [rbp + 0x70]
call fcn.14002aa20
mov rcx, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x140018a5c
cmp qword [rbp - 0x78], 0
je 0x140018a5c
cmp qword [rsp + 0x70], 0
je 0x140018a5c
mov qword [rbp - 0x80], r12
mov dword [rsp + 0x78], r12d
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
mov edx, 1
lea r8d, [rdx + 3]
mov rcx, qword [rsp + 0x68]
call sub.ADVAPI32.dll_ConvertSecurityDescriptorToStringSecurityDescriptorW
mov rdx, qword [rbp - 0x80]
test rdx, rdx
je 0x140018a5c
lea rcx, [rbp + 0x20]
call fcn.14001c950
nop
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [0x1402d291c]
lea rcx, [rbp - 8]
call fcn.14001c950
nop
lea r8, [rbp - 8]
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x20]
call fcn.140021aa0
nop
lea rcx, [rbp - 8]
call fcn.14001d440
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r12
lea rdx, [0x1402d1e0c]
lea rcx, [rbp - 8]
call fcn.14001c950
nop
lea r8, [rbp - 8]
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x110]
call fcn.140023510
nop
lea rcx, [rbp - 8]
call fcn.14001d440
lea rdx, [0x1402d291c]
lea rcx, [rbp - 8]
call fcn.14001c950
nop
lea r8, [rbp - 8]
lea rdx, [rbp + 0xe8]
lea rcx, [rbp + 0xc0]
call fcn.140021aa0
nop
lea rcx, [rbp - 8]
call fcn.14001d440
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r12
lea rdx, [0x1402d1e0c]
lea rcx, [rbp - 8]
call fcn.14001c950
nop
lea r8, [rbp - 8]
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0xe8]
call fcn.140023510
nop
lea rcx, [rbp - 8]
call fcn.14001d440
mov rcx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x68]
sub rcx, r8
movabs r10, 0x6666666666666667
mov rax, r10
imul rcx
mov r9, rdx
sar r9, 4
mov rax, r9
shr rax, 0x3f
add r9, rax
mov rcx, qword [rbp - 0x48]
sub rcx, qword [rbp - 0x50]
mov rax, r10
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r9, rdx
jne 0x140018a25
mov r13d, r12d
test r9, r9
je 0x140018972
mov rax, r12
movzx r14d, byte [rsp + 0x40]
movzx r15d, byte [rsp + 0x40]
nop dword [rax]
lea rax, [rax + rax*4]
lea rbx, [rax*8]
lea rdx, [r8 + rbx]
lea rcx, [rbp - 8]
call fcn.14001c0d0
nop
mov rdx, qword [rbp - 0x50]
add rdx, rbx
lea rcx, [rbp + 0x48]
call fcn.14001c0d0
nop
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
lea rcx, [rsp + 0x58]
call fcn.14000dc40
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x48]
call fcn.14000dc40
mov qword [rsp + 0x48], rax
mov ebx, r12d
lea rcx, [rbp - 8]
call fcn.140026e10
test eax, eax
jle 0x140018784
nop dword [rax]
mov edx, ebx
lea rcx, [rbp - 8]
call fcn.14001d960
movzx edx, word [rax]
lea rcx, [rbp + 0x98]
call fcn.14001c510
nop
mov byte [rsp + 0x20], r14b
lea r9, [rbp + 0x98]
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x58]
call fcn.1400150d0
nop
lea rcx, [rbp + 0x98]
call fcn.14001d440
inc ebx
lea rcx, [rbp - 8]
call fcn.140026e10
cmp ebx, eax
jl 0x140018730
mov ebx, r12d
lea rcx, [rbp + 0x48]
call fcn.140026e10
test eax, eax
jle 0x1400187e8
mov edx, ebx
lea rcx, [rbp + 0x48]
call fcn.14001d960
movzx edx, word [rax]
lea rcx, [rbp + 0x98]
call fcn.14001c510
nop
mov byte [rsp + 0x20], r15b
lea r9, [rbp + 0x98]
xor r8d, r8d
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x48]
call fcn.1400150d0
nop
lea rcx, [rbp + 0x98]
call fcn.14001d440
inc ebx
lea rcx, [rbp + 0x48]
call fcn.140026e10
cmp ebx, eax
jl 0x140018794
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x50], rax
jne 0x1400189bf
mov rdi, qword [rsp + 0x58]
mov rdi, qword [rdi]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x1400188dd
lea rdx, [rdi + 0x20]
lea rcx, [rbx + 0x20]
call fcn.14001d880
test al, al
je 0x1400189bf
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140018858
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140018853
nop word [rax + rax]
cmp rbx, qword [rax + 0x10]
jne 0x140018853
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140018840
mov rbx, rax
jmp 0x14001887f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x14001887f
nop dword [rax]
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140018870
mov rax, qword [rdi + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400188ab
mov rax, qword [rdi + 8]
cmp byte [rax + 0x19], 0
jne 0x1400188a6
cmp rdi, qword [rax + 0x10]
jne 0x1400188a6
mov rdi, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140018893
mov rdi, rax
jmp 0x1400188cf
mov rdi, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x1400188cf
nop word [rax + rax]
mov rdi, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1400188c0
cmp rbx, rsi
jne 0x140018811
mov rsi, qword [rsp + 0x48]
mov r9, rsi
mov r8, qword [rsi]
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x48]
call fcn.140016f60
mov edx, reloc.ODBC32.dll_SQLBindParameter
mov rcx, qword [rsp + 0x48]
call fcn.140283144
nop
mov r8, qword [rsp + 0x58]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x58]
call fcn.140016f60
mov edx, reloc.ODBC32.dll_SQLBindParameter
mov rcx, qword [rsp + 0x58]
call fcn.140283144
nop
lea rcx, [rbp + 0x48]
call fcn.14001d440
nop
lea rcx, [rbp - 8]
call fcn.14001d440
inc r13d
mov rcx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x68]
sub rcx, r8
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movsxd rax, r13d
cmp rax, rdx
jb 0x1400186c0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140018983
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
lea rcx, [rbp - 0x68]
call fcn.140002cd0
nop
lea rcx, [rbp + 0xe8]
call fcn.14001d440
nop
lea rcx, [rbp - 0x50]
call fcn.140002cd0
nop
lea rcx, [rbp + 0x110]
call fcn.14001d440
nop
lea rcx, [rbp + 0x20]
call fcn.14001d440
jmp 0x140018a95
mov r8, qword [rsp + 0x48]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.140016f60
mov edx, reloc.ODBC32.dll_SQLBindParameter
mov rcx, qword [rsp + 0x48]
call fcn.140283144
nop
mov r8, qword [rsp + 0x58]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x58]
call fcn.140016f60
mov edx, reloc.ODBC32.dll_SQLBindParameter
mov rcx, qword [rsp + 0x58]
call fcn.140283144
nop
lea rcx, [rbp + 0x48]
call fcn.14001d440
nop
lea rcx, [rbp - 8]
call fcn.14001d440
nop
lea rcx, [rbp - 0x68]
call fcn.140002cd0
nop
lea rcx, [rbp + 0xe8]
call fcn.14001d440
nop
lea rcx, [rbp - 0x50]
call fcn.140002cd0
nop
lea rcx, [rbp + 0x110]
call fcn.14001d440
nop
lea rcx, [rbp + 0x20]
call fcn.14001d440
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140018a6c
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rbp + 0x70]
call fcn.14002aa20
mov rcx, rax
mov r8, qword [rsp + 0x70]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x140018a95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140018aa6
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
lea rcx, [rbp + 0x70]
call fcn.14001d440
nop
lea rcx, [rbp + 0xc0]
call fcn.14001d440
nop
lea rcx, [rbp + 0x138]
call fcn.14001d440
mov eax, r12d
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140283120
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov dl, 1
jmp 0x1400183a0