Function at 0x1401705b0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov rax, qword [0x140713740]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x120], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov rcx, qword [rsp + 0x178]
call fcn.1400fddb0
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x1401706f6
lea rdx, str.Failed_to_open_file:
lea rcx, [0x140718d80]
call fcn.14013f2e0
mov qword [rsp + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x90]
call fcn.140160fc0
mov qword [rsp + 0x98], rax
lea rax, [0x14014c900]
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0x98]
call qword [rsp + 0xa0]
nop
lea rdx, [0x140426378]
mov rcx, qword [rsp + 0x170]
call fcn.1400fde20
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x170]
jmp 0x140170a61
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xffffffff
jne 0x1401707a6
lea rdx, str.Failed_to_get_file_size:
lea rcx, [0x140718d80]
call fcn.14013f2e0
mov qword [rsp + 0xa8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x64], eax
mov edx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0xa8]
call fcn.140160fc0
mov qword [rsp + 0xb0], rax
lea rax, [0x14014c900]
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0xb8]
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x14042639c]
mov rcx, qword [rsp + 0x170]
call fcn.1400fde20
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x170]
jmp 0x140170a61
mov eax, dword [rsp + 0x44]
mov qword [rsp + 0xc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0xc0]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14017084c
lea rdx, str.Failed_to_allocate_memory
lea rcx, [0x140718d80]
call fcn.14013f2e0
mov qword [rsp + 0xc8], rax
lea rax, [0x14014c900]
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xc8]
call qword [rsp + 0xd0]
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x1404263c4]
mov rcx, qword [rsp + 0x170]
call fcn.1400fde20
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x170]
jmp 0x140170a61
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x120]
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140170924
lea rdx, str.Failed_to_read_file:
lea rcx, [0x140718d80]
call fcn.14013f2e0
mov qword [rsp + 0xd8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0xd8]
call fcn.140160fc0
mov qword [rsp + 0xe0], rax
lea rax, [0x14014c900]
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe0]
call qword [rsp + 0xe8]
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdx, [0x1404263e8]
mov rcx, qword [rsp + 0x170]
call fcn.1400fde20
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x170]
jmp 0x140170a61
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 8]
mov qword [rsp + 0x128], rax
lea rcx, [rsp + 0x128]
call fcn.14017afa0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
cmp dword [rax + 8], 1
jl 0x140170988
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 8]
dec eax
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 8], eax
jmp 0x1401709b8
mov rax, qword [rsp + 0x48]
cmp dword [rax + 8], 0
jne 0x1401709b8
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0xc]
dec eax
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 0xc], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 8]
add eax, 0x17
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 8], eax
mov r9, qword [rsp + 0x48]
lea r8, str._Y__m__d:_H:_M:_S
mov edx, 0x20
lea rcx, [rsp + 0x130]
call fcn.1403f8e24
lea rdx, [rsp + 0x130]
mov rcx, qword [rsp + 0x170]
call fcn.1400fde20
nop
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x170]
jmp 0x140170a61
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1403e5550
add rsp, 0x168
ret