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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x70
mov eax, dword [rsp + 0xb0]
and qword [r11 - 0x40], 0
mov rdi, r9
mov r10, rdx
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0xb8]
mov r12, r8
mov r14d, ecx
lea r9, [r11 - 0x40]
xor esi, esi
mov rdx, rdi
xor r8d, r8d
mov rcx, r10
mov dword [rsp + 0x60], eax
xor ebp, ebp
mov qword [r11 - 0x38], rsi
call fcn.1000b2490
mov ebx, eax
test eax, eax
je 0x1000cdb2f
xor r9d, r9d
mov r8d, eax
mov edx, 0x6ac0197
xor ecx, ecx
call fcn.1000b51b8
jmp 0x1000cdd7e
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rdi
mov rcx, r12
call fcn.1000b2490
xor ecx, ecx
mov ebx, eax
test eax, eax
je 0x1000cdb64
xor r9d, r9d
mov r8d, eax
mov edx, 0x6af0197
call fcn.1000b51b8
mov rsi, qword [rsp + 0x50]
jmp 0x1000cdd7e
mov r12d, 0x80000
mov r9d, 4
mov r8d, 0x1000
mov rdx, r12
mov dword [rsp + 0xb0], r12d
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x1000cdbb7
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xb0]
call fcn.1000cbea8
mov rbp, qword [rsp + 0x58]
mov r12d, dword [rsp + 0xb0]
mov ebx, eax
jmp 0x1000cdbb9
xor ebx, ebx
test ebx, ebx
je 0x1000cdbcc
xor r9d, r9d
mov r8d, ebx
mov edx, 0x6b20197
xor ecx, ecx
jmp 0x1000cdb55
and qword [rsp + 0x30], rsi
mov rcx, qword [rsp + 0x48]
and dword [rsp + 0x28], esi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, qword [rsp + 0x50]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x1000cdc29
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov r8d, eax
mov edx, 0x6bf0197
mov ebx, eax
call fcn.1000b51b8
jmp 0x1000cdd6f
neg r14d
mov edx, 0x40000000
mov rcx, rsi
sbb eax, eax
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
neg eax
xor r9d, r9d
xor r8d, r8d
inc eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1000cdc79
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0x6cc0197
mov ebx, eax
mov r8d, eax
jmp 0x1000cdde3
mov rbx, qword [rsp + 0x60]
xor edi, edi
xor ecx, ecx
test rbx, rbx
jle 0x1000cdd3c
and qword [rsp + 0x20], 0
lea r9, [rsp + 0xb8]
mov r8d, r12d
mov rdx, rbp
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000cde0b
mov r8d, dword [rsp + 0xb8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000cddf3
mov eax, dword [rsp + 0xb8]
cmp dword [rsp + 0x40], eax
jne 0x1000cddd6
add rdi, rax
mov rax, rdi
mov dword [rsp + 0x60], edi
shr rax, 0x20
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x60]
add rax, 0xffff
cqo
movzx ecx, dx
xor edx, edx
add rcx, rax
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax]
sar rcx, 0x10
add eax, ecx
imul eax, eax, 0x64
div dword [rsp + 0xc0]
cmp rdi, rbx
mov rdx, qword [rsp + 0xd0]
mov dword [rdx], eax
jl 0x1000cdc8b
mov rax, qword [rsp + 0xc8]
xor edx, edx
add dword [rax], ecx
mov eax, dword [rax]
mov rcx, qword [rsp + 0xd0]
imul eax, eax, 0x64
div dword [rsp + 0xc0]
xor ebx, ebx
mov dword [rcx], eax
cmp r14, 0xffffffffffffffff
je 0x1000cdd6f
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp r13, 0xffffffffffffffff
je 0x1000cdd7e
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x48], 0
je 0x1000cdd91
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rsi, rsi
je 0x1000cdd9f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x1000cddb5
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
mov ebx, 0x80070026
mov edx, 0x6e20197
mov r8d, ebx
xor r9d, r9d
mov rcx, rsi
call fcn.1000b51b8
jmp 0x1000cdd60
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0x6dd0197
mov ebx, eax
mov r8d, eax
jmp 0x1000cdde3
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
xor r9d, r9d
mov edx, 0x6d60197
mov ebx, eax
mov r8d, eax
xor ecx, ecx
jmp 0x1000cdde9