Function at 0x140056cc0
Capabilities:
Get file attributes
Write file on windows

Disassembly:
mov r11, rsp
push rbx
push rsi
push r13
push r14
sub rsp, 0x98
mov rax, qword [0x1400f54e0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r9
mov rsi, r8
mov r13, rdx
mov rbx, rcx
cmp rcx, 0x1000
jb 0x140056f63
movabs rax, 0xffff800000000000
test rax, rcx
jne 0x140056f63
cmp dword [rcx], 0x19570528
jne 0x140056f63
cmp byte [rcx + 0x10], 0
jne 0x140056f5c
mov qword [r11 - 0x28], rdi
add rcx, 0x60
mov qword [r11 - 0x30], r12
call fcn.1400518e0
mov edi, eax
test eax, eax
js 0x140056f48
cmp dword [rbx + 0x18], 0
jne 0x140056f3a
cmp byte [rbx + 0x12], 0
mov qword [rsp + 0x80], r15
mov r15d, 0xfffffed3
mov dword [rbx + 0x18], 1
je 0x140056d8c
mov rcx, rbx
call fcn.140055780
mov edi, eax
test eax, eax
je 0x140056d8e
js 0x140056f24
mov r15, qword [rsp + 0x80]
mov qword [r14], 0
dec dword [rbx + 0x18]
jmp 0x140056f3f
xor edi, edi
cmp byte [rbx + 0x15], 0
jne 0x140056de8
test rsi, rsi
je 0x140056de8
xor edx, edx
lea rcx, [rsp + 0x38]
lea r8d, [rdx + 0x10]
call sym.vkat.exe_nocrt_memset
xor edx, edx
lea rcx, [rsp + 0x48]
lea r8d, [rdx + 0x28]
call sym.vkat.exe_nocrt_memset
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x48]
mov r9d, 0x28
mov dword [rsp + 0x20], 0x18
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x140056de8
cmp dword [rsp + 0x68], 4
cmove edi, r15d
mov rax, qword [rbx + 0x50]
mov ecx, 0x10000
mov byte [rbx + 0x15], 0
cmp rax, rsi
jae 0x140056e51
cmp rax, rcx
jae 0x140056e51
cmp rsi, rcx
lea r8, [0x1400a1620]
cmova rsi, rcx
mov rcx, qword [rbx + 0x40]
lea r15, [rsi + 0x3ff]
and r15, 0xfffffffffffffc00
mov rdx, r15
call fcn.140041980
test rax, rax
je 0x140056e3c
mov qword [rbx + 0x50], r15
mov r15d, 0xfffffed3
mov qword [rbx + 0x40], rax
jmp 0x140056e58
dec dword [rbx + 0x18]
mov edi, 0xfffffff8
mov r15, qword [rsp + 0x80]
jmp 0x140056f3f
cmp rsi, rcx
cmova rsi, rcx
test edi, edi
js 0x140056f24
test rsi, rsi
je 0x140056d75
mov rcx, qword [rbx + 0x40]
mov r8, rsi
mov rdx, r13
call sym.vkat.exe_nocrt_memcpy
mov rcx, qword [rbx + 0x38]
mov eax, esi
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov r8d, dword [rbx + 0x48]
lea rax, [rbx + 0x20]
mov rdx, qword [rbx + 0x40]
lea r9, [rsp + 0x30]
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140056ed1
mov eax, dword [rsp + 0x30]
mov r15, qword [rsp + 0x80]
cmp rax, rsi
cmovbe rsi, rax
xor edi, edi
mov qword [r14], rsi
dec dword [rbx + 0x18]
jmp 0x140056f3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140056ef4
mov r15, qword [rsp + 0x80]
xor edi, edi
mov qword [r14], rsi
dec dword [rbx + 0x18]
mov byte [rbx + 0x12], 1
jmp 0x140056f3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x140056f15
dec dword [rbx + 0x18]
mov edi, r15d
mov r15, qword [rsp + 0x80]
mov byte [rbx + 0x14], 1
jmp 0x140056f3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14005db40
mov edi, eax
cmp edi, r15d
jne 0x140056f2d
mov byte [rbx + 0x14], 1
dec dword [rbx + 0x18]
mov r15, qword [rsp + 0x80]
jmp 0x140056f3f
mov edi, 0xffffffea
lea rcx, [rbx + 0x60]
call fcn.140051ac0
mov r12, qword [rsp + 0x88]
mov eax, edi
mov rdi, qword [rsp + 0x90]
jmp 0x140056f68
mov eax, 0xffffffda
jmp 0x140056f68
mov eax, 0xfffffffc
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001270
add rsp, 0x98
pop r14
pop r13
pop rsi
pop rbx
ret