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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x14010c1d0]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov r13, rdx
mov qword [rsp + 0x50], rdx
mov r14, rcx
mov qword [rsp + 0x78], rcx
xor edx, edx
mov r8d, 0x190
lea rcx, [rbp - 0x80]
call fcn.1400a5940
xor r9d, r9d
mov ebx, 0xc8
mov r8d, ebx
lea rdx, [rbp - 0x80]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
mov r15d, eax
lea eax, [r15 - 1]
cmp eax, 0xc6
ja 0x14008945d
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
lea rax, [rbp - 0x80]
mov rsi, 0xffffffffffffffff
nop dword [rax + rax]
inc rsi
cmp word [rax + rsi*2], r15w
jne 0x140089430
mov r8, rsi
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.14003d860
mov dword [r14], r15d
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x68]
jmp 0x14008981f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov rsi, 0xffffffffffffffff
test r15d, r15d
je 0x140089568
cmp eax, 8
jne 0x1400897fc
mov eax, 2
mul r15
cmovo rax, rsi
lea rdx, [0x1400db340]
mov rcx, rax
call fcn.1400a2aa0
mov rdi, rax
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x1400894d9
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov dword [r14], r12d
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [r14 + 8], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [r14 + 0x18], xmm1
jmp 0x140089829
xor r9d, r9d
mov r8d, r15d
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
mov r13d, eax
lea ecx, [r15 - 1]
cmp eax, ecx
jne 0x14008954e
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
nop dword [rax]
inc rsi
cmp word [rdi + rsi*2], r15w
jne 0x140089510
mov r8, rsi
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14003d860
mov dword [r14], r15d
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [r14 + 8], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [r14 + 0x18], xmm1
mov rcx, rdi
call fcn.1400a2ab0
jmp 0x140089829
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov rcx, rdi
call fcn.1400a2ab0
test r13d, r13d
jne 0x1400897fc
test r12d, r12d
je 0x1400897fc
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
lea r8d, [r15 + 7]
lea rdx, str._UNC
lea rcx, [rsp + 0x58]
call fcn.14003d860
nop
mov eax, 0xfffe
mov r12, qword [rsp + 0x50]
nop dword [rax]
add ebx, ebx
cmp ebx, eax
cmova ebx, eax
mov edi, ebx
lea rdx, [0x1400db340]
mov ecx, ebx
call fcn.1400a2aa0
mov r13, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14008978c
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.1400a5940
mov r9d, ebx
mov r8, r13
mov edx, 2
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
jne 0x1400896a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140089624
mov rcx, r13
call fcn.1400a2ab0
mov eax, 0xfffe
cmp ebx, eax
jb 0x1400895b0
jmp 0x14008971d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 7
mov dword [r14], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [r14 + 8], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [r14 + 0x18], xmm1
mov rcx, r13
call fcn.1400a2ab0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140089829
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089698
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140089856
call fcn.1400a2ab0
jmp 0x140089829
lea r9, [r13 + 4]
nop word [rax + rax]
inc rsi
cmp word [r9 + rsi*2], 0
jne 0x1400896b0
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x1400896ff
lea rdi, [rsi + rcx]
mov qword [rsp + 0x68], rdi
lea rbx, [rsp + 0x58]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x58]
lea rcx, [rbx + rcx*2]
lea r8, [rsi + rsi]
mov rdx, r9
call fcn.1400a5290
mov word [rbx + rdi*2], r15w
jmp 0x140089715
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.14002db40
nop
mov rcx, r13
call fcn.1400a2ab0
cmp qword [rsp + 0x68], 7
jbe 0x140089776
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140089776
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 7
mov dword [r14], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [r14 + 8], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [r14 + 0x18], xmm1
jmp 0x140089657
mov dword [r14], r15d
lea rcx, [r14 + 8]
lea rdx, [rsp + 0x58]
call fcn.140021ef0
jmp 0x140089657
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 7
mov dword [r14], 8
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [r14 + 8], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [r14 + 0x18], xmm1
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140089829
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089698
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140089856
jmp 0x140089698
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 7
mov dword [r14], r12d
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [r14 + 8], xmm0
movups xmmword [r14 + 0x18], xmm1
mov rax, r14
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.1400a2a50
mov rbx, qword [rsp + 0x270]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400a99c0
int3