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

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edi, r8d
mov qword [rsp + 0x30], 0
mov r15, rdx
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
lea rcx, str.core_riot.dll
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000140e
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov r14d, eax
call fcn.140001c34
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, r14d
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x5a4d
cmp word [rbp], ax
jne 0x14000140e
mov qword [rsp + 0x70], rbx
xorps xmm0, xmm0
movsxd rbx, dword [rbp + 0x3c]
xor edx, edx
add rbx, rbp
movzx eax, word [rbx + 6]
lea rcx, [rax + rax*4]
xor eax, eax
movups xmmword [rbx + rcx*8 + 0x108], xmm0
movups xmmword [rbx + rcx*8 + 0x118], xmm0
mov qword [rbx + rcx*8 + 0x128], rax
movzx eax, word [rbx + 6]
lea rcx, [rax + rax*4]
mov rax, qword [r15]
mov qword [rbx + rcx*8 + 0x108], rax
mov eax, edi
mov ecx, dword [rbx + 0x38]
div ecx
test edx, edx
jne 0x1400012bf
mov edx, edi
jmp 0x1400012c5
lea edx, [rax + 1]
imul edx, ecx
movzx eax, word [rbx + 6]
lea rcx, [rax + rax*4]
mov dword [rbx + rcx*8 + 0x110], edx
xor edx, edx
movzx r9d, word [rbx + 6]
mov r8d, dword [rbx + 0x38]
lea rax, [r9 + r9*4]
mov r10d, dword [rbx + rax*8 + 0xec]
mov ecx, dword [rbx + rax*8 + 0xe8]
mov eax, ecx
div r8d
test edx, edx
je 0x140001302
lea ecx, [rax + 1]
imul ecx, r8d
lea edx, [r10 + rcx]
mov eax, edi
lea rcx, [r9 + r9*4]
mov dword [rbx + rcx*8 + 0x114], edx
xor edx, edx
mov ecx, dword [rbx + 0x3c]
div ecx
test edx, edx
je 0x140001324
lea edi, [rax + 1]
imul edi, ecx
movzx eax, word [rbx + 6]
xor edx, edx
lea rcx, [rax + rax*4]
mov dword [rbx + rcx*8 + 0x118], edi
movzx r9d, word [rbx + 6]
mov r8d, dword [rbx + 0x3c]
lea rax, [r9 + r9*4]
mov r10d, dword [rbx + rax*8 + 0xf4]
mov ecx, dword [rbx + rax*8 + 0xf0]
mov eax, ecx
div r8d
test edx, edx
je 0x140001361
lea ecx, [rax + 1]
imul ecx, r8d
lea edx, [r10 + rcx]
xor r8d, r8d
lea rcx, [r9 + r9*4]
xor r9d, r9d
mov dword [rbx + rcx*8 + 0x11c], edx
movzx eax, word [rbx + 6]
lea rcx, [rax + rax*4]
mov dword [rbx + rcx*8 + 0x12c], 0xe00000e0
movzx eax, word [rbx + 6]
lea rcx, [rax + rax*4]
mov edx, dword [rbx + rcx*8 + 0x11c]
add edx, dword [rbx + rcx*8 + 0x118]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
movzx eax, word [rbx + 6]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rax + rax*4]
mov eax, dword [rbx + rcx*8 + 0x114]
add eax, dword [rbx + rcx*8 + 0x110]
mov rcx, rsi
mov dword [rbx + 0x50], eax
inc word [rbx + 6]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, r14d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x70]
mov al, 1
jmp 0x140001410
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001bd0
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret