Function at 0x1400274b0
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x19060
call fcn.140050850
sub rsp, rax
mov rax, qword [0x140070070]
xor rax, rsp
mov qword [rsp + 0x19050], rax
cmp byte [rcx + 0x25b], 0
mov rdi, rcx
mov r12d, 1
jne 0x1400276e8
and qword [rsp + 0x30], 0
lea rbp, [rcx + 0x34]
lea r14d, [r12 + 0x7f]
mov esi, 0x40000000
lea r13d, [r12 + 3]
mov dword [rsp + 0x28], r14d
mov edx, esi
mov dword [rsp + 0x20], r13d
mov rcx, rbp
xor r9d, r9d
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400275c9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test r12b, al
je 0x14002757e
and eax, 0xfffffffe
mov rcx, rbp
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], r14d
mov r8d, r12d
mov edx, esi
mov dword [rsp + 0x20], r13d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400275c9
xor esi, esi
mov ecx, 0x1e
call qword [sym.imp.KERNEL32.dll_Sleep]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], r14d
mov r8d, r12d
mov edx, 0x40000000
mov dword [rsp + 0x20], r13d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400275c9
add esi, r12d
cmp esi, 3
jb 0x140027580
jne 0x1400275dd
xor eax, eax
jmp 0x140027744
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r13d, 0x19000
lea rcx, [rsp + 0x50]
mov r8d, r13d
xor edx, edx
call fcn.14002dc80
mov rcx, qword [rdi + 0x260]
xor esi, esi
mov rax, qword [rdi + 0x268]
xor ebp, ebp
sub rax, rcx
sar rax, 3
test rax, rax
je 0x1400276b8
xor edx, edx
mov r14, qword [rcx + rdx*8]
mov ecx, dword [r14]
lea eax, [rcx + rsi]
cmp eax, r13d
jbe 0x140027651
and dword [rsp + 0x40], 0
cmp rbx, 0xffffffffffffffff
je 0x14002764f
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, esi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [r14]
xor esi, esi
cmp ecx, r13d
jbe 0x14002767d
and dword [rsp + 0x40], 0
cmp rbx, 0xffffffffffffffff
je 0x140027695
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ecx
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140027695
mov r8d, ecx
mov rdx, r14
mov eax, esi
lea rcx, [rsp + 0x50]
add rcx, rax
call fcn.14002d5d0
add esi, dword [r14]
mov rcx, qword [rdi + 0x260]
add ebp, r12d
mov rax, qword [rdi + 0x268]
sub rax, rcx
mov edx, ebp
sar rax, 3
cmp rdx, rax
jb 0x140027616
and dword [rsp + 0x40], 0
cmp rbx, 0xffffffffffffffff
je 0x1400276e8
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, esi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x260]
xor esi, esi
mov rax, qword [rdi + 0x268]
sub rax, rdx
sar rax, 3
test rax, rax
je 0x14002773a
xor ebx, ebx
mov rcx, qword [rdx + rbx*8]
call fcn.140032990
mov rax, qword [rdi + 0x260]
add esi, r12d
and qword [rax + rbx*8], 0
mov rdx, qword [rdi + 0x260]
mov rcx, qword [rdi + 0x268]
sub rcx, rdx
mov ebx, esi
sar rcx, 3
cmp rbx, rcx
jb 0x140027706
mov qword [rdi + 0x268], rdx
mov eax, r12d
mov rcx, qword [rsp + 0x19050]
xor rcx, rsp
call fcn.14002b930
lea r11, [rsp + 0x19060]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret