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

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc8
mov rax, qword [0x14029f7a8]
xor rax, rsp
mov qword [rbp + 7], rax
mov r13, qword [rbp + 0x7f]
mov rsi, r9
mov r15, r8
mov r12, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x14002dcf9
mov eax, 0x1000000
jmp 0x14002df1b
lea rdx, [rbp - 0x51]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x14002dd14
mov eax, 0x200
jmp 0x14002df1b
mov qword [rsp + 0xc0], rdi
lea rcx, [rbp - 0x19]
mov qword [rsp + 0xb8], r14
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rcx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov r8d, dword [rbp - 0x51]
mov r9d, r8d
mov rax, qword [rbp - 0x59]
and r9d, 1
sub rax, qword [rbp - 0x69]
mov ecx, r9d
sub qword [rbp - 0x3d], rax
or ecx, 2
sub qword [rbp - 0x45], rax
sub qword [rbp - 0x4d], rax
mov eax, r8d
and al, 2
mov eax, r8d
cmove ecx, r9d
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
mov ecx, r8d
mov eax, edx
or eax, 0x10
and ecx, 0x10
cmove eax, edx
mov edx, 0x81000000
mov edi, eax
or edi, 0x20
and r8b, 0x20
cmove edi, eax
test ecx, ecx
mov eax, 0x41000000
cmove eax, edx
or edi, eax
test r9d, r9d
jne 0x14002ddc3
bts edi, 0x17
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
cmp eax, 0x28
jbe 0x14002dea5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rbp - 0x61]
mov qword [rsp + 0x20], 0
mov r8d, 2
lea rdx, [rbp - 0x71]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 0x24]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rbp - 0x61]
mov qword [rsp + 0x20], 0
mov r8d, 4
lea rdx, [rbp - 0x69]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [rbp - 0x71], ax
jne 0x14002dea5
mov edx, dword [rbp - 0x69]
lea eax, [rdx + 0x34]
cmp r14d, eax
jbe 0x14002dea5
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rbp - 0x61]
mov qword [rsp + 0x20], 0
mov r8d, 4
lea rdx, [rbp - 0x59]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rbp - 0x59]
cmp eax, 0x5a4d
je 0x14002dea1
add eax, 0xffffbab4
cmp eax, 4
ja 0x14002dea5
mov ecx, 0x15
bt ecx, eax
jae 0x14002dea5
bts edi, 0x16
test r12, r12
je 0x14002deae
mov dword [r12], edi
mov rdi, qword [rsp + 0xc0]
test r15, r15
je 0x14002debe
mov dword [r15], r14d
mov r14, qword [rsp + 0xb8]
test rsi, rsi
je 0x14002def1
mov rcx, qword [rbp - 0x45]
call fcn.14002dbe0
mov rcx, qword [rbp - 0x3d]
mov qword [rsi], rax
call fcn.14002dbe0
mov rcx, qword [rbp - 0x4d]
mov qword [rsi + 8], rax
call fcn.14002dbe0
mov qword [rsi + 0x10], rax
test r13, r13
je 0x14002df19
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x3d]
call qword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx ecx, word [rbp - 0x71]
movzx eax, word [rbp - 0x69]
shl ecx, 0x10
or ecx, eax
mov dword [r13], ecx
xor eax, eax
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1401b1a60
add rsp, 0xc8
pop r15
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret