Function at 0x1400b46ac
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 0x1400b49d9
cmp dword [rcx + 0x88], ebx
jne 0x1400b49d9
lea r8, [rbp + 0x50]
xor edx, edx
lea rcx, [0x1403b8d00]
call fcn.1400f02fc
mov esi, eax
test eax, eax
jns 0x1400b470b
mov ecx, eax
call fcn.1400790f8
mov rbx, qword [rbp + 0x50]
jmp 0x1400b49e2
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 [0x1403af620]
lea rdx, [rbp - 0x48]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
jns 0x1400b4747
mov ecx, eax
jmp 0x1400b49dd
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 [0x1403af620]
lea rdx, [rbp - 0x48]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x1400b4740
xor r15d, r15d
test r13d, r13d
je 0x1400b4867
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 [0x1403af620]
lea rdx, [rbp - 0x28]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x1400b483f
mov rsi, qword [r12 + 8]
xor eax, eax
mov dword [rbp + 0x50], eax
test rsi, rsi
je 0x1400b47f8
mov rax, qword [rsi]
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [0x1403af620]
lea rdx, [rbp + 0x50]
mov rcx, rsi
call rdi
mov esi, eax
test eax, eax
js 0x1400b483f
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 [0x1403af620]
lea rdx, [rbp - 0x28]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x1400b483f
cmp dword [rbp + 0x50], 0
je 0x1400b4846
mov rcx, qword [r12 + 8]
mov rdx, rbx
call fcn.140066c20
mov esi, eax
test eax, eax
jns 0x1400b4846
mov ecx, eax
call fcn.1400790f8
mov ecx, esi
call fcn.140079118
test esi, esi
js 0x1400b4931
mov r12d, 1
add r15d, r12d
cmp r15d, r13d
jb 0x1400b4786
mov rax, qword [rbx]
mov rdi, qword [rax + 0x20]
mov rcx, rdi
call qword [0x1403af620]
lea r8, [rbp + 0x48]
mov rcx, rbx
lea rdx, [rbp + 0x58]
call rdi
mov esi, eax
test eax, eax
js 0x1400b4740
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.1400be864
mov esi, eax
test eax, eax
js 0x1400b4740
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 [0x1403af620]
lea rdx, [rbp - 0x48]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x1400b4740
mov rax, qword [rbx]
mov rdi, qword [rax + 0x20]
mov rcx, rdi
call qword [0x1403af620]
lea r8, [rbp + 0x48]
mov rcx, rbx
lea rdx, [rbp + 0x58]
call rdi
mov esi, eax
test eax, eax
js 0x1400b4740
mov edx, dword [rbp + 0x48]
cmp edx, 0x200000
jbe 0x1400b4938
mov dword [r14 + 0x80], r12d
xor esi, esi
jmp 0x1400b49e2
mov ecx, esi
jmp 0x1400b49dd
mov r8, qword [rbp + 0x58]
mov rcx, qword [r14 + 0x68]
call fcn.1400bf49c
mov esi, eax
cmp eax, 0x80070005
jne 0x1400b49c6
mov rsi, qword [r14 + 0x68]
test rsi, rsi
je 0x1400b49a1
mov rcx, rsi
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400b4988
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400b4978
mov edi, 0x80004005
jmp 0x1400b49a6
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400b49a6
test r12b, al
je 0x1400b49ad
and eax, 0xfffffffe
mov rcx, rsi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400b49ad
jmp 0x1400b4967
mov edi, 0x80070057
mov ecx, edi
call fcn.1400790f8
mov ecx, edi
call fcn.140079118
mov r8, qword [rbp + 0x58]
mov edx, dword [rbp + 0x48]
mov rcx, qword [r14 + 0x68]
call fcn.1400bf49c
mov esi, eax
test esi, esi
js 0x1400b4931
and dword [r14 + 0x7c], 0
mov dword [r14 + 0x78], r12d
jmp 0x1400b49e2
xor esi, esi
xor ecx, ecx
call fcn.1400790f8
mov ecx, esi
call fcn.140079118
test rbx, rbx
je 0x1400b4a03
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403af620]
mov rcx, rbx
call rdi
lea rcx, [rbp + 0x60]
call fcn.14005a598
mov eax, esi
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret