Function at 0x1800cf1c0
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 [0x180371940]
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 0x1800cf243
xor al, al
jmp 0x1800cf500
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 0x1800cf269
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1800cf500
mov eax, dword [rbp + 0x24]
mov ecx, eax
call fcn.180162320
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 0x1800cf2b3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x48]
call fcn.180162360
xor al, al
jmp 0x1800cf500
mov dword [rbp + 0x264], 0x7d0
lea r9, [rbp + 0x264]
movabs r8, 0x2b9fff192bd4c83e
movabs rdx, 0xbb62c62c9808ea37
lea rcx, [rbp + 0x68]
call fcn.1800c1b10
nop
lea rdx, [rbp + 0x68]
mov rcx, qword [rbp + 0x48]
call fcn.1800cf8b0
lea rax, [0x180377b50]
mov qword [rbp + 0xa8], rax
mov rcx, qword [rbp + 0xa8]
call fcn.1800d2270
mov qword [rbp + 0xc8], rax
mov rcx, qword [rbp + 0xa8]
call fcn.1800d2300
mov qword [rbp + 0xe8], rax
jmp 0x1800cf337
mov rax, qword [rbp + 0xc8]
add rax, 0x28
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xe8]
cmp qword [rbp + 0xc8], rax
je 0x1800cf4d6
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.1800ced30
mov qword [rbp + 0x128], rax
cmp qword [rbp + 0x128], 0
jne 0x1800cf4be
lea rcx, [rbp + 0x68]
call fcn.1800cb5d0
cmp dword [rax], 0x7d0
jge 0x1800cf4b0
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 0x1800cf4ae
mov rcx, qword [rbp + 0x108]
call fcn.1800cf090
add rax, 0x10
mov rcx, rax
call fcn.1800d30b0
test rax, rax
je 0x1800cf40a
mov rcx, qword [rbp + 0x108]
call fcn.1800cf090
add rax, 0x10
mov rcx, rax
call fcn.1800d30b0
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_malloc]
mov edx, 0xdddd
mov rcx, rax
call fcn.1800d3110
mov qword [rbp + 0x298], rax
jmp 0x1800cf415
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.1800d10a0
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 0x1800cf4ae
mov dword [rbp + 0x184], 0x7d0
lea rcx, [rbp + 0x68]
call fcn.1800cf090
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 0x1800cf4b9
xor eax, eax
test eax, eax
jne 0x1800cf4b9
int3
jmp 0x1800cf325
mov rdx, qword [rbp + 0x108]
mov rcx, qword [rbp + 0x128]
call fcn.1800cf8b0
jmp 0x1800cf325
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x48]
call fcn.180162360
mov byte [rbp + 0x284], 1
lea rcx, [rbp + 0x68]
call fcn.1800c8020
movzx eax, byte [rbp + 0x284]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x180257ba0]
call fcn.180225a10
mov rax, rdi
mov rcx, qword [rbp + 0x2a0]
xor rcx, rbp
call fcn.180225d60
lea rsp, [rbp + 0x2b8]
pop rdi
pop rbp
ret