Function at 0x14002c780
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 [0x1400a0f20]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r9
mov rsi, r8
mov r13, rdx
mov rbx, rcx
cmp rcx, 0x1000
jb 0x14002ca23
movabs rax, 0xffff800000000000
test rax, rcx
jne 0x14002ca23
cmp dword [rcx], 0x19570528
jne 0x14002ca23
cmp byte [rcx + 0x10], 0
jne 0x14002ca1c
mov qword [r11 - 0x28], rdi
add rcx, 0x60
mov qword [r11 - 0x30], r12
call fcn.140030c30
mov edi, eax
test eax, eax
js 0x14002ca08
cmp dword [rbx + 0x18], 0
jne 0x14002c9fa
cmp byte [rbx + 0x12], 0
mov qword [rsp + 0x80], r15
mov r15d, 0xfffffed3
mov dword [rbx + 0x18], 1
je 0x14002c84c
mov rcx, rbx
call fcn.14002b790
mov edi, eax
test eax, eax
je 0x14002c84e
js 0x14002c9e4
mov r15, qword [rsp + 0x80]
mov qword [r14], 0
dec dword [rbx + 0x18]
jmp 0x14002c9ff
xor edi, edi
cmp byte [rbx + 0x15], 0
jne 0x14002c8a8
test rsi, rsi
je 0x14002c8a8
xor edx, edx
lea rcx, [rsp + 0x38]
lea r8d, [rdx + 0x10]
call sym.NetMonitor.exe_nocrt_memset
xor edx, edx
lea rcx, [rsp + 0x48]
lea r8d, [rdx + 0x28]
call sym.NetMonitor.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 0x14002c8a8
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 0x14002c911
cmp rax, rcx
jae 0x14002c911
cmp rsi, rcx
lea r8, [0x140054850]
cmova rsi, rcx
mov rcx, qword [rbx + 0x40]
lea r15, [rsi + 0x3ff]
and r15, 0xfffffffffffffc00
mov rdx, r15
call fcn.14001edb0
test rax, rax
je 0x14002c8fc
mov qword [rbx + 0x50], r15
mov r15d, 0xfffffed3
mov qword [rbx + 0x40], rax
jmp 0x14002c918
dec dword [rbx + 0x18]
mov edi, 0xfffffff8
mov r15, qword [rsp + 0x80]
jmp 0x14002c9ff
cmp rsi, rcx
cmova rsi, rcx
test edi, edi
js 0x14002c9e4
test rsi, rsi
je 0x14002c835
mov rcx, qword [rbx + 0x40]
mov r8, rsi
mov rdx, r13
call sym.NetMonitor.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 0x14002c991
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 0x14002c9ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14002c9b4
mov r15, qword [rsp + 0x80]
xor edi, edi
mov qword [r14], rsi
dec dword [rbx + 0x18]
mov byte [rbx + 0x12], 1
jmp 0x14002c9ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x14002c9d5
dec dword [rbx + 0x18]
mov edi, r15d
mov r15, qword [rsp + 0x80]
mov byte [rbx + 0x14], 1
jmp 0x14002c9ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001ee80
mov edi, eax
cmp edi, r15d
jne 0x14002c9ed
mov byte [rbx + 0x14], 1
dec dword [rbx + 0x18]
mov r15, qword [rsp + 0x80]
jmp 0x14002c9ff
mov edi, 0xffffffea
lea rcx, [rbx + 0x60]
call fcn.140030e10
mov r12, qword [rsp + 0x88]
mov eax, edi
mov rdi, qword [rsp + 0x90]
jmp 0x14002ca28
mov eax, 0xffffffda
jmp 0x14002ca28
mov eax, 0xfffffffc
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001250
add rsp, 0x98
pop r14
pop r13
pop rsi
pop rbx
ret