Function at 0x1400f7f00
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.1401d5c30
sub rsp, rax
mov rax, qword [0x1402a25c0]
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 0x1400f7f8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x10048], eax
cmp dword [rsp + 0x10048], 0
je 0x1400f7f8b
xor eax, eax
jmp 0x1400f81be
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 0x1400f7fe2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x10048], eax
cmp dword [rsp + 0x10048], 0
je 0x1400f7fe2
xor eax, eax
jmp 0x1400f81be
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 0x1400f81b9
cmp qword [rsp + 0x100c8], 0x10000
jbe 0x1400f8029
mov qword [rsp + 0x10088], 0x10000
jmp 0x1400f8039
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 0x1400f808a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x10080], eax
lea rdx, [0x14029ad60]
lea rcx, [rsp + 0x10080]
call fcn.1400b08fc
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 0x1400f80d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x10084], eax
lea rdx, [0x14029ad60]
lea rcx, [rsp + 0x10084]
call fcn.1400b08fc
mov eax, dword [rsp + 0x1004c]
cmp dword [rsp + 0x30], eax
jae 0x1400f80ec
xor eax, eax
jmp 0x1400f81be
mov ecx, dword [rsp + 0x1004c]
mov rax, qword [rsp + 0x100c8]
sub rax, rcx
mov qword [rsp + 0x100c8], rax
cmp qword [rsp + 0x100d8], 0
je 0x1400f81b4
mov ecx, dword [rsp + 0x1004c]
mov rax, qword [rsp + 0x10040]
add rax, rcx
mov qword [rsp + 0x10040], rax
cmp qword [rsp + 0x100d0], 0
je 0x1400f8174
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 0x1400f81b4
lea rcx, [rsp + 0x10050]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x10050]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1400f8174
jmp 0x1400f7ffe
mov eax, 1
mov rcx, qword [rsp + 0x10090]
xor rcx, rsp
call fcn.1400a8040
add rsp, 0x100a0
pop rdi
ret