Function at 0x18003cea4
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x7e0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1800824d0]
xor rax, rsp
mov qword [rsp + 0x7d0], rax
mov r14, rdx
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor r15d, r15d
mov dword [rsp + 0x44], r15d
lea ecx, [r15 + 8]
call fcn.18004316c
cmp rax, r15
je 0x18003cefe
mov qword [rax], rbx
jmp 0x18003cf01
mov rax, r15
mov qword [rbx], rax
mov qword [rbx + 0x18], r15
mov qword [rbx + 0x20], r15
mov qword [rbx + 0x28], r15
mov dword [rsp + 0x44], 1
mov r13d, r15d
mov edi, 0xf
mov rbp, qword [rsp + 0x48]
mov esi, r15d
mov edx, 3
lea r8d, [rdx - 2]
lea rcx, [rsp + 0x60]
call fcn.18003f0fc
nop
lea rdx, str.DeviceHarddisk
lea rcx, [rsp + 0x70]
call fcn.180037488
mov rcx, rax
mov edx, r13d
call fcn.18002f1ac
mov rcx, rax
lea rdx, str.Partition
call fcn.180037488
mov rcx, rax
mov edx, esi
call fcn.18002f1ac
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x60]
call fcn.18003f244
nop
lea r12, [rsp + 0x168]
cmp qword [rsp + 0x180], 0x10
cmovae r12, qword [rsp + 0x168]
xor r9d, r9d
lea r8, [rsp + 0x5b0]
mov rdx, r12
mov rcx, r14
call fcn.18003cde4
cmp eax, r15d
jne 0x18003d020
cmp esi, r15d
je 0x18003d2fc
cmp qword [rsp + 0x180], 0x10
jb 0x18003cfda
mov rcx, qword [rsp + 0x168]
call fcn.180043070
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x178], r15
mov byte [rsp + 0x168], r15b
lea rcx, [rsp + 0xf8]
call fcn.18003f1c8
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0xf8], rax
lea rcx, [rsp + 0xf8]
call fcn.1800586d8
jmp 0x18003d2ec
lea rcx, [rsp + 0x190]
call fcn.18003c62c
nop
mov dword [rsp + 0x220], r13d
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r12
lea rcx, [rsp + 0x1e8]
call fcn.1800026f8
mov edi, 0x230
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0x260]
call fcn.180045560
mov r8, r12
lea rdx, [0x180069cb0]
lea rcx, [rsp + 0x260]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x260]
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, [rsp + 0x260]
mov edx, 0x222038
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, r15d
je 0x18003d0ec
mov rax, qword [rsp + 0x480]
shr rax, 8
cmp al, r15b
setne byte [rsp + 0x190]
mov rax, qword [rsp + 0x470]
mov qword [rsp + 0x218], rax
mov byte [rsp + 0x196], r15b
cmp esi, r15d
jne 0x18003d136
lea rdx, [rsp + 0x190]
mov rcx, rbx
call fcn.18003f014
mov rcx, qword [rbx + 0x20]
sub rcx, qword [rbx + 0x18]
movabs rax, 0xa3d70a3d70a3d70b
imul rcx
add rdx, rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
lea rbp, [rdx + rax - 1]
jmp 0x18003d280
cmp esi, 1
jne 0x18003d194
mov rcx, qword [rbx + 0x20]
sub rcx, qword [rbx + 0x18]
movabs r12, 0xa3d70a3d70a3d70b
mov rax, r12
imul rcx
add rdx, rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbp, rdx
jb 0x18003d16e
call fcn.180043018
mov rdx, rbp
imul rdx, rdx, 0xc8
mov rcx, qword [rbx + 0x18]
mov rax, qword [rsp + 0x218]
cmp qword [rdx + rcx + 0x88], rax
je 0x18003d35a
jmp 0x18003d19e
movabs r12, 0xa3d70a3d70a3d70b
mov byte [rsp + 0x194], 1
mov dword [rsp + 0x220], esi
mov rcx, qword [rbx + 0x20]
sub rcx, qword [rbx + 0x18]
mov rax, r12
imul rcx
add rdx, rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbp, rdx
jb 0x18003d1d6
call fcn.180043018
mov rdi, rbp
imul rdi, rdi, 0xc8
mov rdx, qword [rbx + 0x18]
mov al, byte [rdi + rdx + 0x80]
mov byte [rsp + 0x210], al
cmp byte [rsp + 0x191], r15b
je 0x18003d22d
mov rcx, qword [rbx + 0x20]
sub rcx, rdx
mov rax, r12
imul rcx
add rdx, rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbp, rdx
jb 0x18003d224
call fcn.180043018
mov rax, qword [rbx + 0x18]
mov byte [rax + rdi + 1], 1
lea rdx, [rsp + 0x190]
mov rcx, rbx
call fcn.18003f014
mov rcx, qword [rbx + 0x20]
sub rcx, qword [rbx + 0x18]
mov rax, r12
imul rcx
add rdx, rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbp, rdx
jb 0x18003d266
call fcn.180043018
mov rax, qword [rbx + 0x18]
lea rcx, [rax + rdi + 0x98]
lea rdx, [rsp + 0x190]
call fcn.18003f014
nop
lea rcx, [rsp + 0x190]
call fcn.18003c6e0
nop
cmp qword [rsp + 0x180], 0x10
jb 0x18003d2a6
mov rcx, qword [rsp + 0x168]
call fcn.180043070
mov edi, 0xf
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x178], r15
mov byte [rsp + 0x168], r15b
lea rcx, [rsp + 0xf8]
call fcn.18003f1c8
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0xf8], rax
lea rcx, [rsp + 0xf8]
call fcn.1800586d8
inc esi
cmp esi, 0x20
jge 0x18003d50f
jmp 0x18003cf28
cmp qword [rsp + 0x180], 0x10
jb 0x18003d314
mov rcx, qword [rsp + 0x168]
call fcn.180043070
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x178], r15
mov byte [rsp + 0x168], r15b
lea rcx, [rsp + 0xf8]
call fcn.18003f1c8
lea r12, vtable.std::ios_base.0
mov qword [rsp + 0xf8], r12
lea rcx, [rsp + 0xf8]
call fcn.1800586d8
jmp 0x18003d516
mov rcx, qword [rbx + 0x20]
sub rcx, qword [rbx + 0x18]
mov rax, r12
imul rcx
add rdx, rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbp, rdx
jb 0x18003d383
call fcn.180043018
mov rdi, rbp
imul rdi, rdi, 0xc8
mov rax, qword [rbx + 0x18]
mov byte [rax + rdi + 5], 1
mov rcx, qword [rbx + 0x20]
sub rcx, qword [rbx + 0x18]
mov rax, r12
imul rcx
add rdx, rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbp, rdx
jb 0x18003d3bf
call fcn.180043018
mov rax, qword [rbx + 0x18]
lea rcx, [rax + rdi + 8]
or rsi, 0xffffffffffffffff
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x198]
call fcn.180002398
mov rcx, qword [rbx + 0x20]
sub rcx, qword [rbx + 0x18]
mov rax, r12
imul rcx
add rdx, rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbp, rdx
jb 0x18003d408
call fcn.180043018
mov rax, qword [rbx + 0x18]
lea rcx, [rax + rdi + 0x30]
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x1c0]
call fcn.18000250c
mov rcx, qword [rbx + 0x20]
sub rcx, qword [rbx + 0x18]
mov rax, r12
imul rcx
add rdx, rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbp, rdx
jb 0x18003d44d
call fcn.180043018
mov rax, qword [rbx + 0x18]
lea rcx, [rax + rdi + 0x58]
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x1e8]
call fcn.180002398
mov rcx, qword [rbx + 0x20]
sub rcx, qword [rbx + 0x18]
mov rax, r12
imul rcx
add rdx, rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbp, rdx
jb 0x18003d492
call fcn.180043018
mov rcx, qword [rbx + 0x18]
mov al, byte [rsp + 0x196]
mov byte [rcx + rdi + 6], al
lea rcx, [rsp + 0x190]
call fcn.18003c6e0
nop
cmp qword [rsp + 0x180], 0x10
jb 0x18003d4c7
mov rcx, qword [rsp + 0x168]
call fcn.180043070
mov edi, 0xf
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x178], r15
mov byte [rsp + 0x168], r15b
lea rcx, [rsp + 0xf8]
call fcn.18003f1c8
lea r12, vtable.std::ios_base.0
mov qword [rsp + 0xf8], r12
lea rcx, [rsp + 0xf8]
call fcn.1800586d8
jmp 0x18003d516
lea r12, vtable.std::ios_base.0
inc r13d
cmp r13d, 0x40
jl 0x18003cf25
mov dword [rsp + 0x490], 0x114
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x494]
call fcn.180045560
lea rcx, [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x494], 6
jb 0x18003d793
mov esi, r15d
mov edx, 3
lea r8d, [rdx - 2]
lea rcx, [rsp + 0x60]
call fcn.18003f0fc
nop
lea rdx, str.DeviceHarddiskVolume
lea rcx, [rsp + 0x70]
call fcn.180037488
mov rcx, rax
mov edx, esi
call fcn.18002f1ac
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x60]
call fcn.18003f244
nop
lea rbp, [rsp + 0x168]
cmp qword [rsp + 0x180], 0x10
cmovae rbp, qword [rsp + 0x168]
xor r9d, r9d
lea r8, [rsp + 0x5b0]
mov rdx, rbp
mov rcx, r14
call fcn.18003cde4
cmp eax, r15d
jne 0x18003d630
cmp qword [rsp + 0x180], 0x10
jb 0x18003d5f1
mov rcx, qword [rsp + 0x168]
call fcn.180043070
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x178], r15
mov byte [rsp + 0x168], r15b
lea rcx, [rsp + 0xf8]
call fcn.18003f1c8
mov qword [rsp + 0xf8], r12
lea rcx, [rsp + 0xf8]
call fcn.1800586d8
jmp 0x18003d785
mov r13d, 0x230
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x260]
call fcn.180045560
mov r8, rbp
lea rdx, [0x180069cb0]
lea rcx, [rsp + 0x260]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
lea rax, [rsp + 0x260]
mov qword [rsp + 0x20], rax
mov r9d, r13d
lea r8, [rsp + 0x260]
mov edx, 0x222038
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, r15d
je 0x18003d733
cmp dword [rsp + 0x48c], r15d
je 0x18003d733
lea rcx, [rsp + 0x190]
call fcn.18003c62c
nop
mov byte [rsp + 0x192], 1
mov byte [rsp + 0x194], 1
mov dword [rsp + 0x220], esi
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbp
lea rcx, [rsp + 0x1e8]
call fcn.1800026f8
mov rdx, qword [rsp + 0x470]
mov qword [rsp + 0x218], rdx
mov byte [rsp + 0x196], r15b
lea rdx, [rsp + 0x190]
mov rcx, rbx
call fcn.18003f014
nop
lea rcx, [rsp + 0x190]
call fcn.18003c6e0
mov edi, 0xf
cmp qword [rsp + 0x180], 0x10
jb 0x18003d74b
mov rcx, qword [rsp + 0x168]
call fcn.180043070
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x178], r15
mov byte [rsp + 0x168], r15b
lea rcx, [rsp + 0xf8]
call fcn.18003f1c8
mov qword [rsp + 0xf8], r12
lea rcx, [rsp + 0xf8]
call fcn.1800586d8
inc esi
cmp esi, 0x100
jl 0x18003d562
mov rax, rbx
mov rcx, qword [rsp + 0x7d0]
xor rcx, rsp
call fcn.180042bb0
mov rbx, qword [rsp + 0x830]
add rsp, 0x7e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret