Function at 0x14005cd94
Capabilities:
Get file size
Read file on windows
Read file via mapping
Timestomp file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1401f7030]
xor rax, rsp
mov qword [rbp - 8], rax
xor esi, esi
mov r14, rdx
mov dword [rdx], esi
mov rdi, rcx
lea r12d, [rsi + 1]
cmp byte [rcx + 0x28], sil
jne 0x14005cde3
cmp dword [rcx + 0x2c], r12d
jne 0x14005ce0a
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x14005ce1f
mov eax, dword [rdi + 0x34]
cmp dword [rcx], eax
jne 0x14005ce1f
mov al, r12b
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14005a600
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r13d, 2
cmp dword [rcx + 0x2c], r13d
jne 0x14005ce40
mov rax, qword [rcx + 0x10]
test rax, rax
jne 0x14005ce29
mov dword [rdx], 4
xor al, al
jmp 0x14005cde6
cmp dword [rax + 0x2c], esi
je 0x14005ce34
mov esi, dword [rax + 0x38]
add rsi, rax
mov qword [rcx + 0x18], rsi
mov eax, dword [rax + 0x38]
sub dword [rcx + 0x34], eax
jmp 0x14005cde3
mov cl, byte [rcx + 0x29]
mov ebx, 3
mov al, cl
mov qword [rsp + 0x30], rsi
neg al
mov dword [rsp + 0x28], esi
mov eax, 0xc0000000
mov dword [rbp - 0x30], esi
sbb r8d, r8d
mov dword [rsp + 0x20], ebx
add r8d, r13d
neg cl
mov rcx, qword [rdi + 0x20]
sbb edx, edx
xor r9d, r9d
and edx, eax
add edx, eax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x14005cea1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14005ce95
mov dword [r14], r13d
jmp 0x14005ce25
cmp eax, r13d
cmove ebx, r12d
mov dword [r14], ebx
jmp 0x14005ce25
xor edx, edx
mov dword [r14], ebx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r12d, eax
mov dword [rbp - 0x2c], r12d
cmp eax, 0xffffffff
jne 0x14005cec9
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14005ce25
cmp byte [rdi + 0x29], sil
je 0x14005cf18
mov rcx, r12
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
lea r9, [rbp - 0x30]
mov qword [rbp - 0x28], rax
mov r8d, r12d
mov qword [rsp + 0x20], rsi
mov rdx, rax
mov rcx, r15
mov r13, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14005ce25
cmp dword [rbp - 0x30], r12d
je 0x14005cfa3
jmp 0x14005ce25
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x20], esi
mov rcx, r15
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbx, rax
test rax, rax
je 0x14005cebb
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea rcx, [rbp - 0x18]
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea r9, [rbp - 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13, r13
je 0x14005ce25
mov qword [rbp - 0x28], r13
mov byte [rdi + 0x2a], 1
lea r9, [rbp - 0x2c]
mov qword [rsp + 0x20], r14
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rdi + 0x2c]
call fcn.14005ca00
test al, al
jne 0x14005cfd8
cmp byte [rdi + 0x2a], sil
jne 0x14005ce25
mov rcx, qword [rbp - 0x28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x14005ce25
mov ecx, dword [rbp - 0x2c]
mov edx, dword [rdi + 0x2c]
mov dword [rdi + 0x34], ecx
mov dword [rdi + 0x30], ecx
mov byte [rdi + 0x28], 1
lea eax, [rdx - 2]
test eax, 0xfffffffd
je 0x14005d01a
cmp edx, 1
jne 0x14005d03c
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8d, dword [rdi + 0x34]
mov rcx, rax
mov rdx, qword [rbp - 0x28]
mov qword [rdi + 0x18], rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, r13
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x14005d03c
mov rcx, qword [rbp - 0x28]
mov qword [rdi + 0x10], rcx
cmp dword [rcx + 0x2c], esi
je 0x14005d02f
mov eax, dword [rcx + 0x38]
add rax, rcx
jmp 0x14005d032
mov rax, rsi
mov qword [rdi + 0x18], rax
mov ecx, dword [rcx + 0x38]
sub dword [rdi + 0x34], ecx
mov dword [r14], esi
mov al, 1
jmp 0x14005cde6