Function at 0x1400b2240
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
and qword [rbp + 0x60], 0
xor ebx, ebx
mov r14, rcx
mov qword [rbp + 0x50], rbx
cmp dword [rcx + 0x7c], ebx
je 0x1400b256f
cmp dword [rcx + 0x88], ebx
jne 0x1400b256f
lea r8, [rbp + 0x50]
xor edx, edx
lea rcx, [0x1403a9d30]
call fcn.1400edcd4
mov esi, eax
test eax, eax
jns 0x1400b229f
mov ecx, eax
call fcn.140078308
mov rbx, qword [rbp + 0x50]
jmp 0x1400b2578
and qword [rbp - 0x48], rbx
mov r12d, 1
mov rbx, qword [rbp + 0x50]
mov dword [rbp - 0x40], r12d
mov dword [rbp - 0x38], r12d
mov rax, qword [rbx]
mov rdi, qword [rax + 0x40]
mov rcx, rdi
call qword [0x1403a2250]
lea rdx, [rbp - 0x48]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
jns 0x1400b22db
mov ecx, eax
jmp 0x1400b2573
mov r13d, dword [r14 + 0x9c]
and qword [rbp - 0x48], 0
mov dword [rbp - 0x38], r13d
mov dword [rbp - 0x40], r12d
mov rax, qword [rbx]
mov rdi, qword [rax + 0x40]
mov rcx, rdi
call qword [0x1403a2250]
lea rdx, [rbp - 0x48]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x1400b22d4
xor r15d, r15d
test r13d, r13d
je 0x1400b23fd
and qword [rbp - 0x28], 0
movsxd r12, r15d
shl r12, 4
add r12, qword [r14 + 0xa0]
mov dword [rbp - 0x20], 2
mov rax, qword [r12]
mov qword [rbp - 0x18], rax
mov rax, qword [rbx]
mov rdi, qword [rax + 0x40]
mov rcx, rdi
call qword [0x1403a2250]
lea rdx, [rbp - 0x28]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x1400b23d5
xor eax, eax
mov dword [rbp + 0x50], eax
cmp qword [r12 + 8], rax
je 0x1400b238e
mov rsi, qword [r12 + 8]
mov rax, qword [rsi]
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [0x1403a2250]
lea rdx, [rbp + 0x50]
mov rcx, rsi
call rdi
mov esi, eax
test eax, eax
js 0x1400b23d5
mov eax, dword [rbp + 0x50]
and qword [rbp - 0x28], 0
mov dword [rbp - 0x18], eax
mov rax, qword [rbx]
mov dword [rbp - 0x20], 1
mov rdi, qword [rax + 0x40]
mov rcx, rdi
call qword [0x1403a2250]
lea rdx, [rbp - 0x28]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x1400b23d5
cmp dword [rbp + 0x50], 0
je 0x1400b23dc
mov rcx, qword [r12 + 8]
mov rdx, rbx
call fcn.140066670
mov esi, eax
test eax, eax
jns 0x1400b23dc
mov ecx, eax
call fcn.140078308
mov ecx, esi
call fcn.140078324
test esi, esi
js 0x1400b24c7
mov r12d, 1
add r15d, r12d
cmp r15d, r13d
jb 0x1400b231a
mov rax, qword [rbx]
mov rdi, qword [rax + 0x20]
mov rcx, rdi
call qword [0x1403a2250]
lea r8, [rbp + 0x48]
mov rcx, rbx
lea rdx, [rbp + 0x58]
call rdi
mov esi, eax
test eax, eax
js 0x1400b22d4
mov r8, qword [rbp + 0x58]
lea rax, [rbp + 0x60]
mov edx, dword [rbp + 0x48]
lea r9, [rbp + 0x50]
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.1400bbfbc
mov esi, eax
test eax, eax
js 0x1400b22d4
mov eax, dword [rbp + 0x50]
and qword [rbp - 0x48], 0
mov dword [rbp - 0x30], eax
mov rax, qword [rbp + 0x60]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x40], 4
mov rax, qword [rbx]
mov rdi, qword [rax + 0x40]
mov rcx, rdi
call qword [0x1403a2250]
lea rdx, [rbp - 0x48]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x1400b22d4
mov rax, qword [rbx]
mov rdi, qword [rax + 0x20]
mov rcx, rdi
call qword [0x1403a2250]
lea r8, [rbp + 0x48]
mov rcx, rbx
lea rdx, [rbp + 0x58]
call rdi
mov esi, eax
test eax, eax
js 0x1400b22d4
mov edx, dword [rbp + 0x48]
cmp edx, 0x200000
jbe 0x1400b24ce
mov dword [r14 + 0x80], r12d
xor esi, esi
jmp 0x1400b2578
mov ecx, esi
jmp 0x1400b2573
mov r8, qword [rbp + 0x58]
mov rcx, qword [r14 + 0x68]
call fcn.1400bcb8c
mov esi, eax
cmp eax, 0x80070005
jne 0x1400b255c
mov rsi, qword [r14 + 0x68]
test rsi, rsi
je 0x1400b2537
mov rcx, rsi
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400b251e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400b250e
mov edi, 0x80004005
jmp 0x1400b253c
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400b253c
test r12b, al
je 0x1400b2543
and eax, 0xfffffffe
mov rcx, rsi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400b2543
jmp 0x1400b24fd
mov edi, 0x80070057
mov ecx, edi
call fcn.140078308
mov ecx, edi
call fcn.140078324
mov r8, qword [rbp + 0x58]
mov edx, dword [rbp + 0x48]
mov rcx, qword [r14 + 0x68]
call fcn.1400bcb8c
mov esi, eax
test esi, esi
js 0x1400b24c7
and dword [r14 + 0x7c], 0
mov dword [r14 + 0x78], r12d
jmp 0x1400b2578
xor esi, esi
xor ecx, ecx
call fcn.140078308
mov ecx, esi
call fcn.140078324
test rbx, rbx
je 0x1400b2599
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403a2250]
mov rcx, rbx
call rdi
lea rcx, [rbp + 0x60]
call fcn.14005a080
mov eax, esi
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret