Function at 0x140011d80
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, 0x698
mov rdi, rcx
mov rax, qword [0x140048010]
xor rax, rsp
mov qword [rsp + 0x690], rax
call fcn.1400138d0
xor esi, esi
cmp rax, 0x103
ja 0x140011e26
lea rbx, [rsp + 0x270]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.140015da0
mov rcx, rdi
mov edx, 0x104
mov r8, rbx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x140011e26
xor esi, esi
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.140015da0
lea rdx, [rsp + 0x270]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
test eax, eax
je 0x140011e26
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.14001f634
test eax, eax
je 0x140011e50
xor esi, esi
and sil, 1
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.140024a50
mov eax, esi
add rsp, 0x698
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rsi, [rsp + 0x270]
mov r8d, 0x104
mov rcx, rsi
mov rdx, rdi
call fcn.140013a90
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
test eax, eax
je 0x140011e24
cmp word [rdi], 0x5c
jne 0x140011e8e
lea rcx, [rsp + 0x270]
call qword [sym.imp.SHLWAPI.dll_PathIsUNCServerShareW]
test eax, eax
je 0x140011e24
xor esi, esi
lea rdi, [rsp + 0x480]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call fcn.140015da0
lea rdx, [rsp + 0x60]
mov r8d, 0x104
mov rcx, rdi
call fcn.140013a90
lea r8, [rsp + 0x58]
mov qword [r8], 0
lea rdx, [0x140040a1e]
mov rcx, rdi
call fcn.1400230a8
test rax, rax
je 0x140012084
mov rbp, rax
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea r14, [0x140040a1e]
lea r13, [rsp + 0x58]
mov rbx, qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [rsp + 0x48], rax
mov rcx, rbp
call r12
bt eax, 0xa
jae 0x140012061
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
mov rcx, rbp
xor edx, edx
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140011fdc
mov rbp, r14
mov ecx, 0x4000
call fcn.1400137e4
mov rdi, rax
mov r8d, 0x4000
mov rcx, rax
xor edx, edx
call fcn.140015da0
mov dword [rsp + 0x54], 0
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0x4000
mov rcx, rbx
mov edx, 0x900a8
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov r14b, 1
mov r15d, 1
test eax, eax
je 0x14001202d
mov eax, dword [rdi]
cmp eax, 0xa000000c
je 0x140011ff1
cmp eax, 0xa0000003
jne 0x14001202d
cmp word [rdi + 0xa], 5
jb 0x140011ff8
movzx eax, word [rdi + 8]
and eax, 0xfffffffe
lea rcx, [rdi + rax]
add rcx, 0x10
jmp 0x14001200c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
setne sil
mov r15d, 1
jmp 0x140012040
cmp word [rdi + 0xa], 5
jae 0x140011ffd
xor r14d, r14d
jmp 0x14001202d
movzx eax, word [rdi + 8]
and eax, 0xfffffffe
lea rcx, [rdi + rax]
add rcx, 0x14
mov r8d, 4
lea rdx, [0x140040a12]
call fcn.14002307c
xor r15d, r15d
test eax, eax
setne r15b
or sil, r15b
mov r14d, esi
mov rcx, rdi
call fcn.140013a88
mov esi, r14d
mov r14, rbp
mov rbp, qword [rsp + 0x48]
mov rax, rbx
inc rax
cmp rax, 2
jb 0x140012055
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15d, r15d
mov rbx, qword [sym.imp.SHLWAPI.dll_PathAppendW]
jne 0x140012084
xor ecx, ecx
mov rdx, r14
mov r8, r13
call fcn.1400230a8
mov rdi, rax
mov rcx, rbp
mov rdx, rax
call rbx
test rdi, rdi
jne 0x140011f01
xor esi, esi
xor sil, 1
jmp 0x140011e26