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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x1803dc740]
xor rax, rsp
mov qword [rsp + 0xb8], 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 [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x1800da56c
xor al, al
jmp 0x1800da7af
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xffffffff
jne 0x1800da596
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1800da7af
mov eax, dword [rsp + 0x44]
mov ecx, eax
call fcn.18015adf0
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800da5e7
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call fcn.18015ae30
xor al, al
jmp 0x1800da7af
mov dword [rsp + 0x68], 0x7d0
lea r9, [rsp + 0x68]
movabs r8, 0x2b9fff192bd4c83e
movabs rdx, 0xbb62c62c9808ea37
lea rcx, [rsp + 0x90]
call fcn.1800d0b20
nop
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
call fcn.1800d9b80
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x44]
mov r8, qword [rsp + 0xd8]
mov edx, eax
mov rcx, qword [rsp + 0x58]
call fcn.1800d9150
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x1800da6c4
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x60]
call fcn.1800da7d0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1800da6bf
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x50], eax
jmp 0x1800da76c
mov rcx, qword [rsp + 0xd8]
call fcn.1800d62f0
add rax, 0x10
mov rcx, rax
call fcn.1800db560
test rax, rax
je 0x1800da717
mov rcx, qword [rsp + 0xd8]
call fcn.1800d62f0
add rax, 0x10
mov rcx, rax
call fcn.1800db560
mov rcx, rax
call fcn.180259b00
mov edx, 0xdddd
mov rcx, rax
call fcn.1800db5a0
mov qword [rsp + 0x70], rax
jmp 0x1800da720
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x78]
call fcn.1800da7d0
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call fcn.18015ae30
cmp dword [rsp + 0x50], 0
je 0x1800da78f
mov byte [rsp + 0x40], 1
jmp 0x1800da794
mov byte [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x41], al
lea rcx, [rsp + 0x90]
call fcn.1800d5570
movzx eax, byte [rsp + 0x41]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.18021fab0
add rsp, 0xc8
ret