Function at 0x1800ced20
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2f8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x7e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x318]
mov rax, qword [0x180370940]
xor rax, rbp
mov qword [rbp + 0x2a0], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0xc0000000
mov rcx, qword [rbp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x1800ceda3
xor al, al
jmp 0x1800cf060
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0xffffffff
jne 0x1800cedc9
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1800cf060
mov eax, dword [rbp + 0x24]
mov ecx, eax
call fcn.180161280
mov qword [rbp + 0x48], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800cee13
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x48]
call fcn.1801612c0
xor al, al
jmp 0x1800cf060
mov dword [rbp + 0x264], 0x7d0
lea r9, [rbp + 0x264]
movabs r8, 0x2b9fff192bd4c83e
movabs rdx, 0xbb62c62c9808ea37
lea rcx, [rbp + 0x68]
call fcn.1800c09e0
nop
lea rdx, [rbp + 0x68]
mov rcx, qword [rbp + 0x48]
call fcn.1800cf410
lea rax, [0x180376b70]
mov qword [rbp + 0xa8], rax
mov rcx, qword [rbp + 0xa8]
call fcn.1800d1dd0
mov qword [rbp + 0xc8], rax
mov rcx, qword [rbp + 0xa8]
call fcn.1800d1e60
mov qword [rbp + 0xe8], rax
jmp 0x1800cee97
mov rax, qword [rbp + 0xc8]
add rax, 0x28
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xe8]
cmp qword [rbp + 0xc8], rax
je 0x1800cf036
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x108], rax
mov eax, dword [rbp + 0x24]
mov r8, qword [rbp + 0x108]
mov edx, eax
mov rcx, qword [rbp + 0x48]
call fcn.1800ce890
mov qword [rbp + 0x128], rax
cmp qword [rbp + 0x128], 0
jne 0x1800cf01e
lea rcx, [rbp + 0x68]
call fcn.1800cb130
cmp dword [rax], 0x7d0
jge 0x1800cf010
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1800cf00e
mov rcx, qword [rbp + 0x108]
call fcn.1800cebf0
add rax, 0x10
mov rcx, rax
call fcn.1800d2c10
test rax, rax
je 0x1800cef6a
mov rcx, qword [rbp + 0x108]
call fcn.1800cebf0
add rax, 0x10
mov rcx, rax
call fcn.1800d2c10
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_malloc]
mov edx, 0xdddd
mov rcx, rax
call fcn.1800d2c70
mov qword [rbp + 0x298], rax
jmp 0x1800cef75
mov qword [rbp + 0x298], 0
mov rax, qword [rbp + 0x298]
mov qword [rbp + 0x148], rax
mov rdx, qword [rbp + 0x108]
mov rcx, qword [rbp + 0x148]
call fcn.1800d0c00
mov qword [rbp + 0x168], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbp + 0x168]
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1800cf00e
mov dword [rbp + 0x184], 0x7d0
lea rcx, [rbp + 0x68]
call fcn.1800cebf0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, eax
lea rdx, [rbp + 0x184]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1800cf019
xor eax, eax
test eax, eax
jne 0x1800cf019
int3
jmp 0x1800cee85
mov rdx, qword [rbp + 0x108]
mov rcx, qword [rbp + 0x128]
call fcn.1800cf410
jmp 0x1800cee85
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x48]
call fcn.1801612c0
mov byte [rbp + 0x284], 1
lea rcx, [rbp + 0x68]
call fcn.1800c7540
movzx eax, byte [rbp + 0x284]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x180256e10]
call fcn.180224a80
mov rax, rdi
mov rcx, qword [rbp + 0x2a0]
xor rcx, rbp
call fcn.180224dd0
lea rsp, [rbp + 0x2b8]
pop rdi
pop rbp
ret