Function at 0x140050a90
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rax, vtable.CAtaSmart.0
mov qword [rcx], rax
lea rax, vtable.CArray_struct_CAtaSmart::ATA_SMART_INFO__struct_CAtaSmart::ATA_SMART_INFO_.0
mov qword [rcx + 8], rax
xor ebp, ebp
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x28], rbp
mov qword [rcx + 0x20], rbp
mov qword [rcx + 0x18], rbp
lea rax, vtable.CArray_struct_CAtaSmart::EXTERNAL_DISK_INFO__struct_CAtaSmart::EXTERNAL_DISK_INFO_.0
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rbp
mov qword [rcx + 0x50], rbp
mov qword [rcx + 0x48], rbp
mov qword [rcx + 0x40], rbp
add rcx, 0x58
call fcn.14008b504
nop
lea rcx, [rdi + 0x80]
call fcn.14008b504
nop
lea rcx, [rdi + 0xa8]
call fcn.14008b504
nop
call fcn.140071a10
mov rcx, rax
test rax, rax
je 0x140050d2e
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rdi + 0xd0], rax
lea rcx, [rdi + 0xd8]
call fcn.14008b504
nop
lea rcx, [rdi + 0x100]
call fcn.14008b504
nop
lea rcx, [rdi + 0x128]
call fcn.14008b504
nop
lea rcx, [rdi + 0x150]
call fcn.14008b504
nop
lea rax, vtable.CArray_unsigned_long_int__unsigned_long_int_.0
mov qword [rdi + 0x178], rax
mov qword [rdi + 0x180], rbp
mov qword [rdi + 0x198], rbp
mov qword [rdi + 0x190], rbp
mov qword [rdi + 0x188], rbp
lea rax, vtable.CArray_int__int_.0
mov qword [rdi + 0x1a0], rax
mov qword [rdi + 0x1a8], rbp
mov qword [rdi + 0x1c0], rbp
mov qword [rdi + 0x1b8], rbp
mov qword [rdi + 0x1b0], rbp
lea rcx, [rdi + 0x340]
lea rax, [fcn.140002f4c]
mov qword [rsp + 0x20], rax
lea r9, [fcn.1400042f0]
lea edx, [rbp + 8]
lea r8d, [rbp + 0x1a]
call fcn.1400aa2c8
nop
lea rbx, [rdi + 0x220]
xor edx, edx
mov r8d, 0x11c
mov rcx, rbx
call fcn.1400abab0
mov dword [rbx], 0x11c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140050c17
mov dword [rbx], 0x114
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov qword [rdi + 0x410], rbp
mov dword [rdi + 0x418], ebp
mov eax, dword [rdi + 0x224]
cmp eax, 0xa
jb 0x140050c60
mov dword [rdi + 0x418], 1
mov dword [rdi + 0x414], 1
mov dword [rdi + 0x410], 1
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
cmp eax, 6
jae 0x140050c39
cmp eax, 5
jne 0x140050c4d
mov eax, dword [rdi + 0x228]
cmp eax, 2
je 0x140050c39
cmp eax, 1
jne 0x140050c4d
call fcn.140071a10
mov rcx, rax
test rax, rax
je 0x140050d23
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rbx, [rdi + 0x234]
test rbx, rbx
jne 0x140050caa
mov eax, ebp
jmp 0x140050cb2
mov rcx, rbx
call fcn.1400af134
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140002b78
lea r8, [0x1400ea000]
lea rdx, str.Service_Pack
lea rcx, [rsp + 0x48]
call fcn.140011f84
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.1400b2fb8
cmp eax, 2
jl 0x140050d00
mov dword [rdi + 0x410], 1
mov dword [rdi + 0x414], 1
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140050c4d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140050c4d
mov ecx, 0x80004005
call fcn.140002f7c
nop
mov ecx, 0x80004005
call fcn.140002f7c
int3