Function at 0x1400af8d0
Capabilities:
Check os version

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x5b0
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x5a0], rax
mov rax, qword [r8]
mov r15, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
mov ebp, 1
mov rcx, r8
mov edx, ebp
mov rbx, r8
call qword [rax + 0x48]
mov eax, dword [r15 + 0x10]
mov rcx, qword [rdi + reloc.MFC80U.DLL_Ordinal_1112]
mov dword [rsp + 0x40], eax
mov eax, dword [r15 + 0x18]
mov dword [rsp + 0x48], eax
mov eax, dword [r15 + 0x20]
mov dword [rsp + 0x34], eax
mov eax, dword [r15 + 0x38]
mov dword [rsp + 0x44], eax
mov eax, dword [r15 + 0x28]
mov dword [rsp + 0x4c], eax
mov rax, qword [rcx]
call qword [rax + 0x20]
mov edx, dword [r15 + 0x10]
mov rcx, qword [r15 + 8]
mov rdi, rax
call fcn.1400bcc40
mov edx, dword [r15 + 0x10]
mov rcx, rdi
mov r12, rax
call fcn.1400bcc40
mov rdx, qword [r12]
mov rcx, r12
mov rsi, rax
mov qword [rsp + 0x190], rax
call qword [rdx + 0x40]
mov qword [rsp + 0x58], rax
mov rax, qword [r12]
xor edx, edx
mov rcx, r12
call qword [rax + 0x78]
test eax, eax
je 0x1400afa7c
mov rax, qword [rbx]
lea edx, [rbp + 7]
mov rcx, rbx
call qword [rax + 0x40]
call fcn.140049470
lea rsi, [0x1404342a0]
lea r8d, [rbp + 0x7f]
mov rcx, rsi
xor edx, edx
mov rbx, rax
call sub.ntdll.dll_memset
lea edx, [rbp + 0x5b]
lea rcx, str...optcore.cpp
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x1400af9dd
xor r14d, r14d
jmp 0x1400afa62
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x190]
mov r8d, 0x236e
mov byte [rsp + 0x190], 0
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_401], rax
mov word [rsp + 0x199], ax
mov byte [rsp + 0x19b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rsi
sub rcx, rdx
movzx eax, byte [rdx]
mov byte [rdx + rcx], al
add rdx, rbp
test al, al
jne 0x1400afa23
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x190]
nop
nop
nop
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
add rcx, rbp
test al, al
jne 0x1400afa50
mov r14, rsi
mov rax, qword [rbx]
lea rdx, str._s:_Partition_Overlap_in__QuickPart.
mov r8, r14
mov rcx, rbx
call qword [rax + 0x10]
xor eax, eax
jmp 0x1400b03b9
lea rcx, [rsp + 0x70]
xor r14d, r14d
xor edx, edx
mov r8d, Ordinal_280
mov qword [rsp + 0x608], r13
mov dword [rsp + 0x30], r14d
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], 5
jne 0x1400afac8
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x1400afac4
cmp eax, ebp
jne 0x1400afac8
mov dword [rsp + 0x30], ebp
mov rdi, qword [rsi]
mov rcx, rsi
call qword [rdi + 0x40]
mov rcx, rsi
mov rdx, rax
call qword [rdi + 8]
mov rbp, rax
call fcn.140049400
mov rdx, qword [rbp]
mov rcx, rbp
mov r13, rax
call qword [rdx + 0x30]
test rax, rax
mov rsi, rax
je 0x1400afb2e
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 0x50]
cmp ax, 0x2a
je 0x1400afb1c
mov rax, qword [rsi]
mov rdi, qword [r13]
mov rcx, rsi
call qword [rax + 0x50]
mov rcx, r13
movzx edx, ax
call qword [rdi + 0x20]
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x38]
test rax, rax
mov rsi, rax
jne 0x1400afaf7
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x10]
cmp dword [rsp + 0x30], r14d
je 0x1400afb53
mov esi, dword [rsp + 0x34]
test esi, esi
jne 0x1400afb57
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x68]
jmp 0x1400afb66
mov esi, dword [rsp + 0x34]
mov rax, qword [rbp]
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [rax + 0x58]
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax]
mov rcx, qword [rsp + 0x190]
mov rdx, qword [rcx]
call qword [rdx + 0x40]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x60]
test esi, esi
mov ecx, r14d
sete cl
cmp eax, ecx
je 0x1400afbb8
mov rbp, qword [rsp + 0x58]
mov r9d, esi
mov rsi, qword [rsp + 0x50]
mov edi, 1
mov r8, rbx
mov rcx, rsi
mov rdx, rbp
mov dword [rsp + 0x20], edi
call fcn.1400af460
jmp 0x1400afbc7
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov edi, 1
cmp dword [rsp + 0x4c], r14d
je 0x1400afc2d
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]
mov edx, dword [rsp + 0x74]
cmp edx, 5
jne 0x1400afc02
mov dword [r15 + 0x28], r14d
jmp 0x1400afc1c
cmp edx, 6
jne 0x1400afc14
cmp dword [rsp + 0x78], r14d
jne 0x1400afc14
mov dword [r15 + 0x28], edi
jmp 0x1400afc1c
mov dword [r15 + 0x28], 2
mov r9d, edi
mov r8, rbx
mov rdx, r15
mov rcx, rsi
call fcn.1400acd50
mov rax, qword [rbp]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x3c]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x68]
mov rcx, rbp
call qword [rax + 0x30]
mov rax, qword [r12]
mov rdi, qword [rbx]
mov rcx, r12
call qword [rax + 0x90]
mov rcx, rbx
mov edx, eax
call qword [rdi + 0x28]
mov rdi, qword [r12]
mov rcx, r12
call qword [rdi + 0x40]
mov rcx, r12
mov rdx, rax
call qword [rdi + 8]
mov rcx, rax
mov rsi, rax
mov rdx, qword [rax]
call qword [rdx + 0x30]
mov r13d, r14d
test rax, rax
mov rdi, rax
je 0x1400affdf
mov r15d, dword [rsp + 0x48]
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x78]
test al, al
je 0x1400affca
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x40]
mov rax, qword [rbx]
mov edx, r13d
mov rcx, rbx
call qword [rax + 0x20]
mov rax, qword [rsi]
mov rcx, rsi
add r13d, 1
call qword [rax + 0x90]
cmp r13d, eax
jne 0x1400afced
mov rax, qword [rbx]
mov edx, 0x5a
mov rcx, rbx
call qword [rax + 0x50]
jmp 0x1400afcfb
mov rax, qword [rbx]
mov edx, 0x64
mov rcx, rbx
call qword [rax + 0x50]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x10]
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x48]
cmp eax, 1
jne 0x1400afecd
call fcn.1400d6a30
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0xa8
mov rbp, rax
call sub.ntdll.dll_memset
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x30]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x50]
mov rdx, qword [rdi]
mov rcx, rdi
mov dword [rsp + 0x70], eax
call qword [rdx + 0x38]
mov rcx, rdi
mov qword [rsp + 0x78], rax
mov rax, qword [rdi]
call qword [rax + 0x88]
mov rcx, rdi
mov qword [rsp + 0x80], rax
mov rax, qword [rdi]
call qword [rax + 0x70]
mov rcx, rdi
mov qword [rsp + 0x88], rax
mov rax, qword [rdi]
call qword [rax + 0x60]
mov rcx, rdi
mov word [rsp + 0x110], ax
movzx eax, word [rsp + 0x38]
mov word [rsp + 0x112], ax
movzx eax, word [rsp + 0x3c]
mov word [rsp + 0x114], ax
mov rax, qword [rdi]
call qword [rax + 0x58]
lea rdx, [rsp + 0x90]
nop
nop
nop
movzx ecx, word [rax]
add rdx, 2
add rax, 2
test cx, cx
mov word [rdx - 2], cx
jne 0x1400afdc0
mov rax, qword [rbp]
lea rdx, [rsp + 0x70]
mov r8, rbx
mov rcx, rbp
call qword [rax + 0x40]
test eax, eax
jne 0x1400affbc
call fcn.140049470
lea rsi, [0x1404342a0]
xor edx, edx
mov rcx, rsi
mov r8d, 0x80
mov rbx, rax
call sub.ntdll.dll_memset
lea rcx, str...optcore.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x1400afeb3
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x190]
mov r8d, 0x23e3
mov byte [rsp + 0x190], r14b
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_401], rax
mov word [rsp + 0x199], ax
mov byte [rsp + 0x19b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rsi
sub rcx, rdx
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rdx + rcx - 1], al
jne 0x1400afe71
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x190]
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400afea0
mov r14, rsi
mov rax, qword [rbx]
lea rdx, str._s:_Format_NTFS_partition_failed_
mov r8, r14
mov rcx, rbx
call qword [rax + 0x10]
xor eax, eax
jmp 0x1400b03b1
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x48]
test eax, eax
jne 0x1400affbc
call fcn.140116720
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0xb0
mov rbp, rax
call sub.ntdll.dll_memset
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x30]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x50]
mov rdx, qword [rdi]
mov rcx, rdi
mov dword [rsp + 0x70], eax
call qword [rdx + 0x38]
mov rcx, rdi
mov qword [rsp + 0x78], rax
mov rax, qword [rdi]
call qword [rax + 0x40]
mov rcx, rdi
mov qword [rsp + 0x80], rax
mov rax, qword [rdi]
call qword [rax + 0x70]
mov rcx, rdi
mov qword [rsp + 0x88], rax
mov rax, qword [rdi]
call qword [rax + 0x48]
mov rcx, rdi
mov dword [rsp + 0x110], eax
mov rax, qword [rdi]
call qword [rax + 0x60]
mov rcx, rdi
mov dword [rsp + 0x11c], r15d
mov word [rsp + 0x114], ax
movzx eax, word [rsp + 0x38]
mov word [rsp + 0x116], ax
movzx eax, word [rsp + 0x3c]
mov word [rsp + reloc.MFC80U.DLL_Ordinal_280], ax
mov rax, qword [rdi]
call qword [rax + 0x58]
lea rdx, [rsp + 0x90]
movzx ecx, word [rax]
add rdx, 2
add rax, 2
test cx, cx
mov word [rdx - 2], cx
jne 0x1400aff92
mov rax, qword [rbp]
lea rdx, [rsp + 0x70]
mov r8, rbx
mov rcx, rbp
call qword [rax + 0x28]
test eax, eax
je 0x1400b002e
mov rax, qword [rbx]
mov edx, 0x64
mov rcx, rbx
call qword [rax + 0x10]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x38]
test rax, rax
mov rdi, rax
jne 0x1400afca0
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov rax, qword [rbx]
mov edx, 0xa
mov rcx, rbx
call qword [rax + 0x50]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x10]
call fcn.1400494c0
cmp dword [rsp + 0x30], r14d
mov rdi, rax
je 0x1400b010d
mov eax, dword [rsp + 0x34]
test eax, eax
jne 0x1400b010d
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x68]
jmp 0x1400b037e
call fcn.140049470
lea rsi, [0x1404342a0]
xor edx, edx
mov rcx, rsi
mov r8d, 0x80
mov rbx, rax
call sub.ntdll.dll_memset
lea rcx, str...optcore.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x1400b00f3
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x190]
mov r8d, 0x23fa
mov byte [rsp + 0x190], r14b
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_401], rax
mov word [rsp + 0x199], ax
mov byte [rsp + 0x19b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rsi
sub rcx, rdx
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rdx + rcx - 1], al
jne 0x1400b00b1
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x190]
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400b00e0
mov r14, rsi
mov rax, qword [rbx]
lea rdx, str._s:_Format_FAT32_partition_failed_
mov r8, r14
mov rcx, rbx
call qword [rax + 0x10]
xor eax, eax
jmp 0x1400b03b1
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x20]
test eax, eax
je 0x1400b012b
cmp dword [rsp + 0x44], r14d
mov r13d, 1
cmove r13d, r14d
jmp 0x1400b0131
mov r13d, 1
mov rax, qword [r12]
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [rax + 0x58]
test eax, eax
jne 0x1400b0244
mov rax, qword [rbx]
mov edx, 6
mov rcx, rbx
call qword [rax + 0x40]
call fcn.140049470
lea rsi, [0x1404342a0]
mov rcx, rsi
xor edx, edx
mov r8d, 0x80
mov rbp, rax
call sub.ntdll.dll_memset
lea rcx, str...optcore.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x1400b0197
mov rsi, r14
jmp 0x1400b0220
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x190]
mov r8d, 0x2419
mov byte [rsp + 0x190], r14b
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_401], rax
mov word [rsp + 0x199], ax
mov byte [rsp + 0x19b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rsi
sub rcx, rdx
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rdx + rcx - 1], al
jne 0x1400b01e0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x190]
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400b0210
mov rax, qword [rbp]
lea rdx, str._s:_Failed_to_UpdatePartTable_in__QuickPart.
mov r8, rsi
mov rcx, rbp
call qword [rax + 0x10]
test r13d, r13d
je 0x1400b037e
xor eax, eax
jmp 0x1400b03b1
test r13d, r13d
je 0x1400b037e
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x20]
test eax, eax
je 0x1400b0267
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400b0272
mov ecx, 0x9c4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rbx]
mov edx, 0x32
mov rcx, rbx
call qword [rax + 0x10]
mov rdx, qword [r12]
mov rcx, r12
call qword [rdx + 0x30]
test rax, rax
mov rdi, rax
je 0x1400b037e
mov r13d, dword [rsp + 0x40]
nop
nop
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x38]
mov rdx, qword [rdi]
mov rcx, rdi
mov rsi, rax
call qword [rdx + 0x50]
movzx ebp, ax
call fcn.140049400
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_418]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + 0x1a0], r14w
mov rdi, rax
call sub.ntdll.dll_memset
mov rax, qword [rdi]
lea rdx, [rsp + 0x1a0]
mov r9d, r13d
mov r8d, reloc.MFC80U.DLL_Ordinal_512
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [rax + 0x58]
test eax, eax
jne 0x1400b0313
mov rax, qword [rdi]
mov r8, rsi
mov edx, r13d
mov rcx, rdi
call qword [rax + 0xa8]
mov rax, qword [rdi]
lea rdx, [rsp + 0x30]
mov r9, rsi
mov r8d, r13d
mov rcx, rdi
call qword [rax + 0x50]
movzx edx, word [rsp + 0x30]
cmp dx, bp
je 0x1400b0368
cmp dx, 0x2a
je 0x1400b0340
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x20]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0xc8]
test eax, eax
jne 0x1400b0368
cmp bp, 0x2a
je 0x1400b0368
mov rax, qword [rdi]
mov r9, rsi
mov r8d, r13d
movzx edx, bp
mov rcx, rdi
call qword [rax + 0x18]
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x38]
test rax, rax
mov rdi, rax
jne 0x1400b02a0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0xc8]
test eax, eax
jne 0x1400b039c
mov rax, qword [rbx]
mov edx, 0x64
mov rcx, rbx
call qword [rax + 0x10]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0xc8]
test eax, eax
sete r14b
mov eax, r14d
mov r13, qword [rsp + 0x608]
mov rcx, qword [rsp + 0x5a0]
xor rcx, rsp
call fcn.140161080
add rsp, 0x5b0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret