Function at 0x140048b30
Capabilities:
Check os version
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x170
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x1a0], rbx
mov ebx, edx
mov rdi, rcx
mov rax, qword [rsp + 0x1b8]
mov qword [rsp + 0x20], rax
call fcn.140048880
nop
lea rax, vtable.CSABDiskVolumeFAT12.0
mov qword [rdi], rax
mov dword [rdi + 0x74], ebx
lea rsi, [rdi + 0x1088]
mov qword [rsp + 0x40], rsi
lea rax, vtable.CSABOSVersion.0
mov qword [rsi], rax
lea rbx, [rsi + 0x8a8]
lea rax, vtable.CSABString.0
mov qword [rbx], rax
xor ebp, ebp
mov qword [rbx + 8], rbp
mov dword [rbx + 0x10], ebp
lea ecx, [rbp + 0x10]
call fcn.140247068
mov qword [rbx + 8], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rbx + 0x14], 1
lea rcx, [rsi + 8]
mov dword [rcx], 0x9c
mov dword [rsi + 0x8a4], 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsi + 0xc], 6
jne 0x140048ce4
cmp dword [rsi + 0x10], 2
jne 0x140048ce4
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140048ce4
mov dword [rsp + 0x50], 0x11c
lea rcx, [rsp + 0x50]
call rax
mov eax, dword [rsp + 0x60]
mov dword [rsi + 0x18], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsi + 0x14], eax
mov eax, dword [rsp + 0x54]
mov dword [rsi + 0xc], eax
mov eax, dword [rsp + 0x58]
mov dword [rsi + 0x10], eax
movzx eax, byte [rsp + 0x16a]
mov byte [rsi + 0xa2], al
movzx eax, byte [rsp + 0x16b]
mov byte [rsi + 0xa3], al
movzx eax, word [rsp + 0x164]
mov word [rsi + 0x9c], ax
movzx eax, word [rsp + 0x166]
mov word [rsi + 0x9e], ax
movzx eax, word [rsp + 0x168]
mov word [rsi + 0xa0], ax
lea rcx, [rsi + 0x1c]
lea rdx, [rsp + 0x64]
mov rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp word [rdx + rax*2], 0
jne 0x140048ca0
lea r9d, [rax + 1]
lea rdx, [rsp + 0x198]
mov qword [rsp + 0x38], rdx
lea rdx, [0x1402860c8]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x64]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rdx, rbx
mov rcx, rsi
call fcn.140006130
nop
lea rbx, [rdi + 0x1958]
mov qword [rsp + 0x40], rbx
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14000b0b0
mov qword [rbx], rax
mov rax, qword [rsp + 0x1b0]
mov qword [rdi + 0x1968], rax
mov qword [rdi + 0x6c], rbp
mov qword [rdi + 0x1080], rbp
mov qword [rdi + 0x60], 0xffffffffffffffff
mov dword [rdi + 0x50], 0x5c3a41
movzx eax, byte [rdi + 0x74]
add al, 0x41
mov byte [rdi + 0x50], al
mov eax, dword [str..A:]
mov dword [rdi + 0x54], eax
movzx eax, word [0x140290664]
mov word [rdi + 0x58], ax
movzx eax, byte [0x140290666]
mov byte [rdi + 0x5a], al
movzx eax, byte [rdi + 0x74]
add byte [rdi + 0x58], al
mov ecx, dword [rsi + 0xc]
mov eax, dword [rsi + 0x10]
cmp ecx, 4
jne 0x140048d8b
test eax, eax
je 0x140048d85
cmp eax, 0xa
je 0x140048d99
cmp eax, 0x5a
jne 0x140048d8b
jmp 0x140048d99
cmp dword [rsi + 0x18], 1
je 0x140048d99
mov rcx, rdi
call fcn.140049b80
mov ecx, dword [rsi + 0xc]
mov eax, dword [rsi + 0x10]
cmp ecx, 4
jne 0x140048dc9
test eax, eax
je 0x140048dac
cmp eax, 0xa
je 0x140048db2
cmp eax, 0x5a
jmp 0x140048db0
cmp dword [rsi + 0x18], 1
jne 0x140048dc9
lea rbx, [rdi + 0x78]
mov r9, rbx
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rdi
call fcn.14004a200
jmp 0x140048dff
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rbx, [rdi + 0x78]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x198]
mov r8d, 0x1000
mov rdx, rbx
mov rcx, qword [rdi + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rdi + 0x1078], rbx
movzx ecx, byte [rbx + 0xd]
movzx eax, word [rbx + 0xb]
imul ecx, eax
mov dword [rdi + 0x68], ecx
mov dword [rdi + 0x14], ecx
mov rcx, rdi
call fcn.14004a140
mov dword [rdi + 0x70], 1
mov rax, rdi
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x170
pop rdi
pop rsi
pop rbp
ret