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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x100a0
call fcn.1401e9500
sub rsp, rax
mov rax, qword [0x1402bd5c0]
xor rax, rsp
mov qword [rsp + 0x10090], rax
mov eax, dword [rsp + 0x100c4]
mov dword [rsp + 0x34], eax
xor r9d, r9d
lea r8, [rsp + 0x34]
mov edx, dword [rsp + 0x100c0]
mov rcx, qword [rsp + 0x100b0]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x10048], eax
cmp dword [rsp + 0x10048], 0xffffffff
jne 0x1400f9b9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x10048], eax
cmp dword [rsp + 0x10048], 0
je 0x1400f9b9b
xor eax, eax
jmp 0x1400f9dce
mov eax, dword [rsp + 0x100c4]
mov dword [rsp + 0x34], eax
xor r9d, r9d
lea r8, [rsp + 0x34]
mov edx, dword [rsp + 0x100c0]
mov rcx, qword [rsp + 0x100b8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x10048], eax
cmp dword [rsp + 0x10048], 0xffffffff
jne 0x1400f9bf2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x10048], eax
cmp dword [rsp + 0x10048], 0
je 0x1400f9bf2
xor eax, eax
jmp 0x1400f9dce
mov dword [rsp + 0x10040], 0
lea rdi, [rsp + 0x10044]
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
cmp qword [rsp + 0x100c8], 0
jle 0x1400f9dc9
cmp qword [rsp + 0x100c8], 0x10000
jbe 0x1400f9c39
mov qword [rsp + 0x10088], 0x10000
jmp 0x1400f9c49
mov rax, qword [rsp + 0x100c8]
mov qword [rsp + 0x10088], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x1004c]
mov r8d, dword [rsp + 0x10088]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x100b0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400f9c9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x10080], eax
lea rdx, [0x1402b6740]
lea rcx, [rsp + 0x10080]
call fcn.1400b20ec
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x1004c]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x100b8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400f9ce8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x10084], eax
lea rdx, [0x1402b6740]
lea rcx, [rsp + 0x10084]
call fcn.1400b20ec
mov eax, dword [rsp + 0x1004c]
cmp dword [rsp + 0x30], eax
jae 0x1400f9cfc
xor eax, eax
jmp 0x1400f9dce
mov ecx, dword [rsp + 0x1004c]
mov rax, qword [rsp + 0x100c8]
sub rax, rcx
mov qword [rsp + 0x100c8], rax
cmp qword [rsp + 0x100d8], 0
je 0x1400f9dc4
mov ecx, dword [rsp + 0x1004c]
mov rax, qword [rsp + 0x10040]
add rax, rcx
mov qword [rsp + 0x10040], rax
cmp qword [rsp + 0x100d0], 0
je 0x1400f9d84
mov rcx, qword [rsp + 0x10040]
mov rax, qword [rsp + 0x100c0]
add rax, rcx
imul rax, rax, 0x64
cqo
idiv qword [rsp + 0x100d0]
xor r9d, r9d
mov r8, rax
mov edx, 0x402
mov rcx, qword [rsp + 0x100d8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x10050]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400f9dc4
lea rcx, [rsp + 0x10050]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x10050]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1400f9d84
jmp 0x1400f9c0e
mov eax, 1
mov rcx, qword [rsp + 0x10090]
xor rcx, rsp
call fcn.1400a9820
add rsp, 0x100a0
pop rdi
ret