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

Disassembly:
push rbp
sub rsp, 0x7f0
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x7d0], rax
mov rbp, rcx
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, Ordinal_280
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], Ordinal_280
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x74], 6
jae 0x140077041
xor eax, eax
jmp 0x140077414
mov r8d, dword [rbp + 0x10]
xor eax, eax
mov qword [rsp + Ordinal_2058], rbx
mov qword [rsp + Ordinal_2070], rsi
lea rdx, str..PhysicalDrive_d
lea rcx, [rsp + 0x190]
mov qword [rsp + Ordinal_2026], rdi
mov word [rsp + 0x190], 0
mov qword [rsp + 0x192], rax
mov qword [rsp + Ordinal_2021], r12
mov qword [rsp + 0x19a], rax
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_418], rax
mov qword [rsp + 0x1aa], rax
mov qword [rsp + 0x1b2], rax
mov qword [rsp + 0x1ba], rax
mov qword [rsp + 0x1c2], rax
mov dword [rsp + 0x1ca], eax
mov word [rsp + 0x1ce], ax
call qword [sym.imp.MSVCR80.dll__swprintf]
xor r12d, r12d
lea rcx, [rsp + 0x190]
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 3]
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rsi, rax
jne 0x14007713a
call fcn.140049470
lea rcx, str...disk.cpp
mov edx, Ordinal_599
mov rdi, qword [rax]
mov rbx, rax
call fcn.140075c60
lea rdx, str._s:_Failed_to_open_disk_in__IsOfflineDisk.
mov rcx, rbx
mov r8, rax
call qword [rdi + 0x10]
jmp 0x1400773f2
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x70024
mov rcx, rsi
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400773e9
lea rcx, [rsp + 0x3d2]
mov ebx, r12d
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov qword [rsp + 0x50], reloc.MFC80U.DLL_Ordinal_512
mov word [rsp + 0x3d0], bx
call sub.ntdll.dll_memset
lea r8, [rsp + 0x54]
xor r9d, r9d
mov edx, reloc.MFC80U.DLL_Ordinal_512
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1400771ca
call fcn.140049470
mov edx, reloc.MFC80U.DLL_Ordinal_621
mov rdi, qword [rax]
mov rbx, rax
jmp 0x140077230
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x3d0]
mov r8d, reloc.MFC80U.DLL_Ordinal_512
mov rcx, rsi
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400773bd
cmp dword [rsp + 0x40], reloc.MFC80U.DLL_Ordinal_512
jne 0x1400773bd
mov edx, dword [rsp + 0x50]
lea r8, [rsp + 0x54]
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140077248
call fcn.140049470
mov edx, Ordinal_647
mov rdi, qword [rax]
mov rbx, rax
lea rcx, str...disk.cpp
call fcn.140075c60
lea rdx, str._s:_Failed_to_SetFilePointer_in__IsOfflineDisk.
jmp 0x1400773e0
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x3d0]
mov r8d, reloc.MFC80U.DLL_Ordinal_512
mov rcx, rsi
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14007727c
cmp dword [rsp + 0x40], reloc.MFC80U.DLL_Ordinal_512
je 0x140077281
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1400773f2
call fcn.140049440
mov edx, dword [rbp + 0x10]
mov r8, qword [rax]
mov rcx, rax
mov rbx, rax
call qword [r8 + 8]
test eax, eax
je 0x1400773f2
call fcn.140049400
lea rcx, [rsp + 0x1d2]
xor edx, edx
mov r8d, Ordinal_512
mov word [rsp + 0x1d0], r12w
mov rdi, rax
call sub.ntdll.dll_memset
mov r11, qword [rbx]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [r11 + 0x10]
test eax, eax
je 0x14007732f
nop
nop
mov eax, dword [rsp + 0x60]
mov r10, qword [rdi]
mov r9d, dword [rbp + 0x10]
lea rdx, [rsp + 0x1d0]
mov r8d, 0x100
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [r10 + 0x38]
test eax, eax
jne 0x1400773a9
mov rax, qword [rbx]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [rax + 0x10]
test eax, eax
jne 0x1400772f0
mov dword [rsp + 0x44], r12d
mov rax, qword [rbx]
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
je 0x140077390
nop
nop
mov eax, dword [rsp + 0x44]
mov r10, qword [rdi]
mov r9d, dword [rbp + 0x10]
lea rdx, [rsp + 0x1d0]
mov r8d, 0x100
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [r10 + 0x38]
test eax, eax
jne 0x1400773a9
mov rax, qword [rbx]
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
jne 0x140077350
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x20]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11]
mov eax, 1
jmp 0x1400773f4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x20]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11]
jmp 0x1400773f2
call fcn.140049470
lea rcx, str...disk.cpp
mov edx, Ordinal_632
mov rdi, qword [rax]
mov rbx, rax
call fcn.140075c60
lea rdx, str._s:_Failed_to_ReadFile_in__IsOfflineDisk.
mov r8, rax
mov rcx, rbx
call qword [rdi + 0x10]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, qword [rsp + 0x7e8]
mov rsi, qword [rsp + 0x810]
mov rbx, qword [rsp + 0x808]
mov r12, qword [rsp + 0x7e0]
mov rcx, qword [rsp + 0x7d0]
xor rcx, rsp
call fcn.140161080
add rsp, 0x7f0
pop rbp
ret