Function at 0x1400f7f70
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.1401d4c90
sub rsp, rax
mov rax, qword [0x1402a15c0]
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 0x1400f7ffb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x10048], eax
cmp dword [rsp + 0x10048], 0
je 0x1400f7ffb
xor eax, eax
jmp 0x1400f822e
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 0x1400f8052
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x10048], eax
cmp dword [rsp + 0x10048], 0
je 0x1400f8052
xor eax, eax
jmp 0x1400f822e
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 0x1400f8229
cmp qword [rsp + 0x100c8], 0x10000
jbe 0x1400f8099
mov qword [rsp + 0x10088], 0x10000
jmp 0x1400f80a9
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 0x1400f80fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x10080], eax
lea rdx, [0x140299fb0]
lea rcx, [rsp + 0x10080]
call fcn.1400b091c
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 0x1400f8148
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x10084], eax
lea rdx, [0x140299fb0]
lea rcx, [rsp + 0x10084]
call fcn.1400b091c
mov eax, dword [rsp + 0x1004c]
cmp dword [rsp + 0x30], eax
jae 0x1400f815c
xor eax, eax
jmp 0x1400f822e
mov ecx, dword [rsp + 0x1004c]
mov rax, qword [rsp + 0x100c8]
sub rax, rcx
mov qword [rsp + 0x100c8], rax
cmp qword [rsp + 0x100d8], 0
je 0x1400f8224
mov ecx, dword [rsp + 0x1004c]
mov rax, qword [rsp + 0x10040]
add rax, rcx
mov qword [rsp + 0x10040], rax
cmp qword [rsp + 0x100d0], 0
je 0x1400f81e4
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 0x1400f8224
lea rcx, [rsp + 0x10050]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x10050]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1400f81e4
jmp 0x1400f806e
mov eax, 1
mov rcx, qword [rsp + 0x10090]
xor rcx, rsp
call fcn.1400a8050
add rsp, 0x100a0
pop rdi
ret