Function at 0x10002aaa8
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x1310
call fcn.10000c600
sub rsp, rax
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rsp + 0x1350], rbx
mov rax, qword [0x1000cc510]
xor rax, rsp
mov qword [rsp + 0x1300], rax
mov r14, rdx
mov r13, rcx
and dword [rsp + 0xa0], 0
xor edx, edx
mov r8d, 0x254
lea rcx, [rsp + 0xa4]
call sub.msvcrt.dll_memset
or rbx, 0xffffffffffffffff
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
xor r9d, r9d
lea r8, [rsp + 0xa0]
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindFirstStreamW]
mov rdi, rax
mov qword [rsp + 0x78], rax
cmp rax, rbx
je 0x10002ab5b
lea rdx, [rsp + 0xa0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextStreamW]
test eax, eax
jne 0x10003d3a8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rcx, qword [rsp + 0x1300]
xor rcx, rsp
call fcn.1000010a0
mov rbx, qword [rsp + 0x1350]
add rsp, 0x1310
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x48]
call fcn.1000045bc
nop
mov edx, 0x3a
lea rcx, [rsp + 0x48]
call fcn.10000614c
cmp eax, 2
jl 0x10003d5d7
mov r9d, eax
xor r8d, r8d
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.1000885b8
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.100028ae0
nop
lea rcx, [rsp + 0x80]
call fcn.100001188
lea rcx, [rsp + 0x68]
call fcn.100001194
nop
mov r9, qword [rsp + 0x48]
mov r8, r13
lea rdx, str._s_s
lea rcx, [rsp + 0x68]
call fcn.1000045c8
lea rcx, [rsp + 0x70]
call fcn.100001194
nop
mov r9, qword [rsp + 0x48]
mov r8, r14
lea rdx, str._s_s
lea rcx, [rsp + 0x70]
call fcn.1000045c8
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
mov qword [rsp + 0x60], rax
cmp rax, rbx
jne 0x10003d4a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.1000885ac
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov qword [rsp + 0x58], rax
cmp rax, rbx
jne 0x10003d4f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.1000885ac
and dword [rsp + 0x40], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rsp + 0x300]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10003d539
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.1000885ac
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x10003d59a
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, eax
lea rdx, [rsp + 0x300]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10003d582
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.1000885ac
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x50], eax
je 0x10003d59a
mov ecx, 0x8000ffff
call fcn.1000885ac
mov eax, dword [rsp + 0x40]
cmp eax, 0x1000
je 0x10003d4fa
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x58], rbx
lea rcx, [rsp + 0x70]
call fcn.100001188
nop
lea rcx, [rsp + 0x68]
call fcn.100001188
nop
lea rcx, [rsp + 0x48]
call fcn.100001188
jmp 0x10002ab38