Function at 0x180037000
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 [0x1800764c0]
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.18003c75c
cmp rax, r15
je 0x18003705a
mov qword [rax], rbx
jmp 0x18003705d
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.180039168
nop
lea rdx, str.DeviceHarddisk
lea rcx, [rsp + 0x70]
call fcn.180031a18
mov rcx, rax
mov edx, r13d
call fcn.18002948c
mov rcx, rax
lea rdx, str.Partition
call fcn.180031a18
mov rcx, rax
mov edx, esi
call fcn.18002948c
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x60]
call fcn.1800392b0
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.180036f40
cmp eax, r15d
jne 0x18003717c
cmp esi, r15d
je 0x180037458
cmp qword [rsp + 0x180], 0x10
jb 0x180037136
mov rcx, qword [rsp + 0x168]
call fcn.18003c660
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x178], r15
mov byte [rsp + 0x168], r15b
lea rcx, [rsp + 0xf8]
call fcn.180039234
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0xf8], rax
lea rcx, [rsp + 0xf8]
call fcn.180051cd8
jmp 0x180037448
lea rcx, [rsp + 0x190]
call fcn.180036938
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.1800023b4
mov edi, 0x230
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0x260]
call fcn.18003eb60
mov r8, r12
lea rdx, [0x180060f18]
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 0x180037248
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 0x180037292
lea rdx, [rsp + 0x190]
mov rcx, rbx
call fcn.180039080
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 0x1800373dc
cmp esi, 1
jne 0x1800372f0
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 0x1800372ca
call fcn.18003c608
mov rdx, rbp
imul rdx, rdx, 0xc8
mov rcx, qword [rbx + 0x18]
mov rax, qword [rsp + 0x218]
cmp qword [rdx + rcx + 0x88], rax
je 0x1800374b6
jmp 0x1800372fa
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 0x180037332
call fcn.18003c608
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 0x180037389
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 0x180037380
call fcn.18003c608
mov rax, qword [rbx + 0x18]
mov byte [rax + rdi + 1], 1
lea rdx, [rsp + 0x190]
mov rcx, rbx
call fcn.180039080
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 0x1800373c2
call fcn.18003c608
mov rax, qword [rbx + 0x18]
lea rcx, [rax + rdi + 0x98]
lea rdx, [rsp + 0x190]
call fcn.180039080
nop
lea rcx, [rsp + 0x190]
call fcn.1800369ec
nop
cmp qword [rsp + 0x180], 0x10
jb 0x180037402
mov rcx, qword [rsp + 0x168]
call fcn.18003c660
mov edi, 0xf
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x178], r15
mov byte [rsp + 0x168], r15b
lea rcx, [rsp + 0xf8]
call fcn.180039234
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0xf8], rax
lea rcx, [rsp + 0xf8]
call fcn.180051cd8
inc esi
cmp esi, 0x20
jge 0x18003766b
jmp 0x180037084
cmp qword [rsp + 0x180], 0x10
jb 0x180037470
mov rcx, qword [rsp + 0x168]
call fcn.18003c660
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x178], r15
mov byte [rsp + 0x168], r15b
lea rcx, [rsp + 0xf8]
call fcn.180039234
lea r12, vtable.std::ios_base.0
mov qword [rsp + 0xf8], r12
lea rcx, [rsp + 0xf8]
call fcn.180051cd8
jmp 0x180037672
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 0x1800374df
call fcn.18003c608
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 0x18003751b
call fcn.18003c608
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.1800020ec
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 0x180037564
call fcn.18003c608
mov rax, qword [rbx + 0x18]
lea rcx, [rax + rdi + 0x30]
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x1c0]
call fcn.180002260
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 0x1800375a9
call fcn.18003c608
mov rax, qword [rbx + 0x18]
lea rcx, [rax + rdi + 0x58]
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x1e8]
call fcn.1800020ec
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 0x1800375ee
call fcn.18003c608
mov rcx, qword [rbx + 0x18]
mov al, byte [rsp + 0x196]
mov byte [rcx + rdi + 6], al
lea rcx, [rsp + 0x190]
call fcn.1800369ec
nop
cmp qword [rsp + 0x180], 0x10
jb 0x180037623
mov rcx, qword [rsp + 0x168]
call fcn.18003c660
mov edi, 0xf
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x178], r15
mov byte [rsp + 0x168], r15b
lea rcx, [rsp + 0xf8]
call fcn.180039234
lea r12, vtable.std::ios_base.0
mov qword [rsp + 0xf8], r12
lea rcx, [rsp + 0xf8]
call fcn.180051cd8
jmp 0x180037672
lea r12, vtable.std::ios_base.0
inc r13d
cmp r13d, 0x40
jl 0x180037081
mov dword [rsp + 0x490], 0x114
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x494]
call fcn.18003eb60
lea rcx, [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x494], 6
jb 0x1800378ef
mov esi, r15d
mov edx, 3
lea r8d, [rdx - 2]
lea rcx, [rsp + 0x60]
call fcn.180039168
nop
lea rdx, str.DeviceHarddiskVolume
lea rcx, [rsp + 0x70]
call fcn.180031a18
mov rcx, rax
mov edx, esi
call fcn.18002948c
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x60]
call fcn.1800392b0
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.180036f40
cmp eax, r15d
jne 0x18003778c
cmp qword [rsp + 0x180], 0x10
jb 0x18003774d
mov rcx, qword [rsp + 0x168]
call fcn.18003c660
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x178], r15
mov byte [rsp + 0x168], r15b
lea rcx, [rsp + 0xf8]
call fcn.180039234
mov qword [rsp + 0xf8], r12
lea rcx, [rsp + 0xf8]
call fcn.180051cd8
jmp 0x1800378e1
mov r13d, 0x230
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x260]
call fcn.18003eb60
mov r8, rbp
lea rdx, [0x180060f18]
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 0x18003788f
cmp dword [rsp + 0x48c], r15d
je 0x18003788f
lea rcx, [rsp + 0x190]
call fcn.180036938
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.1800023b4
mov rdx, qword [rsp + 0x470]
mov qword [rsp + 0x218], rdx
mov byte [rsp + 0x196], r15b
lea rdx, [rsp + 0x190]
mov rcx, rbx
call fcn.180039080
nop
lea rcx, [rsp + 0x190]
call fcn.1800369ec
mov edi, 0xf
cmp qword [rsp + 0x180], 0x10
jb 0x1800378a7
mov rcx, qword [rsp + 0x168]
call fcn.18003c660
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x178], r15
mov byte [rsp + 0x168], r15b
lea rcx, [rsp + 0xf8]
call fcn.180039234
mov qword [rsp + 0xf8], r12
lea rcx, [rsp + 0xf8]
call fcn.180051cd8
inc esi
cmp esi, 0x100
jl 0x1800376be
mov rax, rbx
mov rcx, qword [rsp + 0x7d0]
xor rcx, rsp
call fcn.18003c1a0
mov rbx, qword [rsp + 0x830]
add rsp, 0x7e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret