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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x688
mov rdi, rcx
mov rax, qword [0x14003c040]
xor rax, rsp
mov qword [rsp + 0x680], rax
call fcn.140017478
xor esi, esi
cmp rax, 0x103
ja 0x1400096e6
lea rbx, [rsp + 0x260]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.14002bcd0
mov rcx, rdi
mov edx, 0x104
mov r8, rbx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x1400096e6
xor esi, esi
lea rbx, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.14002bcd0
lea rdx, [rsp + 0x260]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
test eax, eax
je 0x1400096e6
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140014d4c
test eax, eax
je 0x140009710
xor esi, esi
and sil, 1
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.14001b570
mov eax, esi
add rsp, 0x688
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rsi, [rsp + 0x260]
mov r8d, 0x104
mov rcx, rsi
mov rdx, rdi
call fcn.140017940
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
test eax, eax
je 0x1400096e4
cmp word [rdi], 0x5c
jne 0x14000974e
lea rcx, [rsp + 0x260]
call qword [sym.imp.SHLWAPI.dll_PathIsUNCServerShareW]
test eax, eax
je 0x1400096e4
lea rsi, [rsp + 0x470]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.14002bcd0
lea rdx, [rsp + 0x50]
mov r8d, 0x104
mov rcx, rsi
call fcn.140017940
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea rdx, [0x140035d5c]
mov rcx, rsi
call fcn.1400179bc
test rax, rax
je 0x140009948
mov rdi, rax
mov r14, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rbx, [0x140035d5c]
lea r13, [rsp + 0x48]
mov rbp, qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rcx, rdi
call r14
bt eax, 0xa
jae 0x14000991c
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
mov rcx, rdi
xor edx, edx
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140009898
mov rbp, rbx
mov ecx, 0x4000
call fcn.14000ad18
mov r13, rax
mov r8d, 0x4000
mov rcx, rax
xor edx, edx
call fcn.14002bcd0
mov dword [rsp + 0x44], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0x4000
mov rcx, r12
mov edx, 0x900a8
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov bl, 1
mov r15d, 1
test eax, eax
je 0x1400098e9
mov eax, dword [r13]
cmp eax, 0xa000000c
je 0x1400098ad
cmp eax, 0xa0000003
jne 0x1400098e9
cmp word [r13 + 0xa], 5
jb 0x1400098b5
movzx eax, word [r13 + 8]
and eax, 0xfffffffe
lea rcx, [rax + r13]
add rcx, 0x10
jmp 0x1400098c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
setne sil
mov r15d, 1
jmp 0x140009902
cmp word [r13 + 0xa], 5
jae 0x1400098b9
xor ebx, ebx
jmp 0x1400098e9
movzx eax, word [r13 + 8]
and eax, 0xfffffffe
lea rcx, [rax + r13]
add rcx, 0x14
mov r8d, 4
lea rdx, str.___
call fcn.140017914
xor r15d, r15d
test eax, eax
setne r15b
or sil, r15b
mov ebx, esi
mov rcx, r13
call fcn.14000ad28
mov esi, ebx
mov rbx, rbp
lea r13, [rsp + 0x48]
mov rbp, qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rax, r12
inc rax
cmp rax, 2
jb 0x140009917
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15d, r15d
jne 0x14000993f
xor ecx, ecx
mov rdx, rbx
mov r8, r13
call fcn.1400179bc
mov r12, rax
mov rcx, rdi
mov rdx, rax
call rbp
test r12, r12
jne 0x1400097ba
xor esi, esi
xor sil, 1
jmp 0x1400096e6
mov sil, 1
jmp 0x1400096e6