Function at 0x140001ef8
Capabilities:
Clear file content
Read file on windows
Set file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400c2688]
xor rax, rsp
mov qword [rbp - 8], rax
mov r13, qword [rbp + 0x60]
mov r14d, r8d
mov r15, rdx
lea r8, [rbp - 0x30]
xor edx, edx
mov r12, r9
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x140001fce
and qword [rsp + 0x30], 0
mov esi, 0x80
mov dword [rsp + 0x28], esi
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rbx
lea r8d, [rsi - 0x7f]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001fce
mov edx, esi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ebx, ebx
lea r8d, [rsi - 0x7f]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], esi
mov edx, 0x40000000
mov rcx, r15
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001ff7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14005ef50
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test r14d, r14d
je 0x140002024
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, UnRegisterTypeLib
cmp eax, r14d
jne 0x140002024
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, r14d
jmp 0x140001fc8
mov ecx, 0x10000
call fcn.14002700c
mov r14, rax
test rax, rax
jne 0x140002051
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [r14 + 8]
jmp 0x140001fc8
xor eax, eax
mov dword [rbp - 0x40], ebx
mov r8, r13
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x38]
xor ecx, ecx
call r12
mov qword [rsp + 0x20], rbx
jmp 0x1400020ba
mov ebx, dword [rbp - 0x40]
test ebx, ebx
je 0x1400020e1
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x40]
mov r8d, ebx
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000213e
cmp dword [rbp - 0x40], ebx
jne 0x14000213e
mov eax, dword [rbp - 0x40]
lea rdx, [rbp - 0x38]
add qword [rbp - 0x38], rax
mov r8, r13
mov ecx, 1
call r12
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x40]
mov r8d, 0x10000
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000206d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x26
jne 0x140002146
mov rcx, r14
call fcn.140027004
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea r9, [rbp - 0x1c]
mov rcx, rsi
lea r8, [rbp - 0x24]
lea rdx, [rbp - 0x2c]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov r8, r13
lea rdx, [rbp - 0x38]
mov ecx, 2
call r12
mov eax, 1
jmp 0x140001fd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r14
call fcn.140027004
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
jmp 0x140001fc0