Function at 0x1400f8290
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.1401da720
sub rsp, rax
mov rax, qword [0x1402aa5c0]
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 0x1400f831b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x10048], eax
cmp dword [rsp + 0x10048], 0
je 0x1400f831b
xor eax, eax
jmp 0x1400f854e
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 0x1400f8372
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x10048], eax
cmp dword [rsp + 0x10048], 0
je 0x1400f8372
xor eax, eax
jmp 0x1400f854e
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 0x1400f8549
cmp qword [rsp + 0x100c8], 0x10000
jbe 0x1400f83b9
mov qword [rsp + 0x10088], 0x10000
jmp 0x1400f83c9
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 0x1400f841a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x10080], eax
lea rdx, [0x1402a35a0]
lea rcx, [rsp + 0x10080]
call fcn.1400b0fac
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 0x1400f8468
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x10084], eax
lea rdx, [0x1402a35a0]
lea rcx, [rsp + 0x10084]
call fcn.1400b0fac
mov eax, dword [rsp + 0x1004c]
cmp dword [rsp + 0x30], eax
jae 0x1400f847c
xor eax, eax
jmp 0x1400f854e
mov ecx, dword [rsp + 0x1004c]
mov rax, qword [rsp + 0x100c8]
sub rax, rcx
mov qword [rsp + 0x100c8], rax
cmp qword [rsp + 0x100d8], 0
je 0x1400f8544
mov ecx, dword [rsp + 0x1004c]
mov rax, qword [rsp + 0x10040]
add rax, rcx
mov qword [rsp + 0x10040], rax
cmp qword [rsp + 0x100d0], 0
je 0x1400f8504
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 0x1400f8544
lea rcx, [rsp + 0x10050]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x10050]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1400f8504
jmp 0x1400f838e
mov eax, 1
mov rcx, qword [rsp + 0x10090]
xor rcx, rsp
call fcn.1400a8790
add rsp, 0x100a0
pop rdi
ret