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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc8
mov rax, qword [0x180074020]
xor rax, rsp
mov qword [rbp + 7], rax
mov r13, qword [rbp + 0x7f]
mov rsi, r9
mov r15, r8
mov r12, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.DLL_GetFileType]
cmp eax, 1
je 0x180025149
mov eax, 0x1000000
jmp 0x18002537b
lea rdx, [rbp - 0x51]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileInformationByHandle]
test eax, eax
jne 0x180025164
mov eax, 0x200
jmp 0x18002537b
mov qword [rsp + 0xc0], rbx
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 ebx, 0x41000000
mov rax, qword [rbp - 0x59]
mov r9d, r8d
sub rax, qword [rbp - 0x69]
and r9d, 1
sub qword [rbp - 0x3d], rax
mov r10d, r8d
sub qword [rbp - 0x45], rax
mov ecx, r9d
sub qword [rbp - 0x4d], rax
or ecx, 2
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 eax, edx
or eax, 0x10
and r10d, 0x10
cmove eax, edx
mov ecx, eax
or ecx, 0x20
and r8b, 0x20
cmove ecx, eax
test r10d, r10d
mov eax, 0x81000000
cmove ebx, eax
or ebx, ecx
test r9d, r9d
jne 0x180025223
test r10d, r10d
mov ebx, 0x41800000
mov eax, 0x81800000
cmove ebx, eax
or ebx, ecx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileSize]
mov r14d, eax
cmp eax, 0x28
jbe 0x180025305
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
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, rdi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
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, rdi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, 0x54ad
cmp word [rbp - 0x71], ax
jne 0x180025305
mov edx, dword [rbp - 0x69]
lea eax, [rdx + 0x34]
cmp r14d, eax
jbe 0x180025305
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
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, rdi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [rbp - 0x59]
cmp eax, 0x5a4d
je 0x180025301
add eax, 0xffffbab4
cmp eax, 4
ja 0x180025305
mov ecx, 0x15
bt ecx, eax
jae 0x180025305
bts ebx, 0x16
test r12, r12
je 0x18002530e
mov dword [r12], ebx
mov rbx, qword [rsp + 0xc0]
test r15, r15
je 0x18002531e
mov dword [r15], r14d
mov r14, qword [rsp + 0xb8]
test rsi, rsi
je 0x180025351
mov rcx, qword [rbp - 0x45]
call fcn.180025030
mov rcx, qword [rbp - 0x3d]
mov qword [rsi], rax
call fcn.180025030
mov rcx, qword [rbp - 0x4d]
mov qword [rsi + 8], rax
call fcn.180025030
mov qword [rsi + 0x10], rax
test r13, r13
je 0x180025379
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.1800292f0
add rsp, 0xc8
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret