Function at 0x1400af460
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x1b0
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor eax, eax
lea rcx, [rsp + 0x48]
mov esi, r9d
mov rbp, r8
mov r12, rdx
mov word [rsp + 0x48], 0
mov qword [rsp + 0x4a], rax
mov dword [rsp + 0x52], eax
mov word [rsp + 0x56], ax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [rsp + 0x50]
movzx edx, word [rsp + 0x54]
imul ax, ax, 0x64
add dx, word [rsp + 0x4a]
add ax, word [rsp + 0x52]
lea rcx, [rsp + 0x80]
add ax, word [rsp + 0x48]
imul dx, dx, 0x64
add dx, word [rsp + 0x56]
add dx, word [rsp + 0x4e]
movzx eax, ax
mov dword [rsp + 0x80], Ordinal_280
movzx edi, dx
shl eax, 0x10
or edi, eax
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x84], 5
jne 0x1400af6a0
cmp dword [rsp + 0x88], 0
jne 0x1400af6a0
mov ecx, 0xa8
call sub.MFC80U.DLL_Ordinal_265
xor edx, edx
mov r8d, 0xa8
mov rcx, rax
mov rsi, rax
call sub.ntdll.dll_memset
xor ebx, ebx
mov dword [rsi], 4
mov eax, ebx
mov dword [rsi + 4], edi
lea rdx, [rsi + 0x23]
nop
nop
mov byte [rdx], 1
add eax, 1
add rdx, 0x20
cmp eax, dword [rsi]
jb 0x1400af550
mov rax, qword [r12]
mov rcx, r12
mov dword [rsp + 0x40], ebx
call qword [rax + 0x80]
mov qword [rsp + 0x38], rbx
mov r9d, 0xa8
mov rcx, rax
lea rax, [rsp + 0x40]
mov r8, rsi
mov qword [rsp + 0x30], rax
mov edx, 0x7c010
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
mov edi, eax
call sub.MFC80U.DLL_Ordinal_266
test edi, edi
jne 0x1400af7c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [rdi + 0x2d]
mov rcx, rbp
mov r12d, eax
mov rax, qword [rbp]
call qword [rax + 0x40]
call fcn.140049470
lea rbp, [0x1404342a0]
mov rcx, rbp
xor edx, edx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea edx, [rdi + 0x5c]
lea rcx, str...optcore.cpp
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x1400af683
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x70]
mov r8d, 0x1fab
mov byte [rsp + 0x70], bl
mov qword [rsp + 0x71], rax
mov word [rsp + 0x79], ax
mov byte [rsp + 0x7b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbp
sub rcx, rdx
nop
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1400af640
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x70]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400af670
mov rbx, rbp
mov rax, qword [rsi]
lea rdx, str._s:_Init_disk_style_fail._ErrorCode:_d_
mov r9d, r12d
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1400af7c7
xor ebx, ebx
test esi, esi
je 0x1400af6b0
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x5c], edi
jmp 0x1400af71a
lea rcx, [rsp + 0x70]
mov word [rsp + 0x74], 0x5858
mov word [rsp + 0x76], 0x9090
mov byte [rsp + 0x78], 0x80
mov byte [rsp + 0x79], 0x81
mov byte [rsp + 0x7a], 0x82
mov byte [rsp + 0x7b], 0x83
mov byte [rsp + 0x7c], 0x10
mov byte [rsp + 0x7d], 0x11
mov byte [rsp + 0x7e], 0x12
mov byte [rsp + 0x7f], 0x13
mov dword [rsp + 0x70], edi
mov eax, dword [rcx]
lea rdx, [rsp + 0x5c]
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x6c], 0x80
mov dword [rdx], eax
mov eax, dword [rcx + 4]
mov dword [rdx + 4], eax
mov eax, dword [rcx + 8]
mov dword [rdx + 8], eax
mov eax, dword [rcx + 0xc]
mov dword [rdx + 0xc], eax
cmp dword [rsp + 0x1f0], ebx
jne 0x1400af732
mov rax, qword [rbp]
mov edx, 0x32
mov rcx, rbp
call qword [rax + 0x10]
mov rax, qword [r12]
mov rcx, r12
mov dword [rsp + 0x40], ebx
call qword [rax + 0x80]
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x58]
mov rcx, rax
lea rax, [rsp + 0x40]
mov r9d, 0x18
mov qword [rsp + 0x30], rax
mov edx, 0x7c058
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400af7c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x2d
mov rcx, rbp
mov esi, eax
mov rax, qword [rbp]
call qword [rax + 0x40]
call fcn.140049470
lea rcx, str...optcore.cpp
mov rbx, qword [rax]
mov edx, 0x1fe9
mov rdi, rax
call fcn.1400a0fc0
lea rdx, str._s:_Init_disk_style_fail._Error_Code:_d_
mov r9d, esi
mov r8, rax
mov rcx, rdi
call qword [rbx + 0x10]
xor eax, eax
jmp 0x1400af7c7
mov eax, 1
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret