Function at 0x140052f00
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rbx, rcx
add rcx, 8
call fcn.140002570
nop
xor esi, esi
mov qword [rbx + 0x10], rsi
mov dword [rbx], esi
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x44]
call fcn.140136ad0
mov dword [rbp - 0x50], 0x114
mov dword [rbp - 0x4c], 5
mov dword [rbp - 0x48], 1
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140053237
mov edx, dword [rbp - 0x4c]
mov dword [rbp + 0xf8], edx
mov ecx, dword [rbp - 0x48]
mov dword [rbp + 0xfc], ecx
mov rax, qword [rbp + 0xf8]
mov qword [rbx + 0x10], rax
mov eax, dword [rbp - 0x40]
sub eax, 1
je 0x1400531e2
cmp eax, 1
jne 0x140053237
cmp edx, 4
ja 0x140052faf
mov dword [rbx], 0x3ec
lea rdx, [0x140195010]
jmp 0x140052ff1
cmp edx, 5
jne 0x140053003
test ecx, ecx
jne 0x140052fc7
mov dword [rbx], 0x3ed
lea rdx, [0x140195040]
jmp 0x140052ff1
cmp ecx, 1
jne 0x140052fdb
mov dword [rbx], 0x3ee
lea rdx, [0x140195070]
jmp 0x140052ff1
cmp ecx, 2
jne 0x140053237
mov dword [rbx], 0x3ef
lea rdx, [0x1401950a0]
xor r9d, r9d
lea rcx, [rbx + 8]
call fcn.140035440
mov edx, dword [rbp - 0x4c]
mov ecx, dword [rbp - 0x48]
cmp edx, 6
jne 0x140053063
test ecx, ecx
jne 0x14005301e
mov dword [rbx], 0x3f0
lea rdx, [0x1401950e0]
jmp 0x14005322b
cmp ecx, 1
jne 0x140053035
mov dword [rbx], 0x3f1
lea rdx, [0x140195110]
jmp 0x14005322b
cmp ecx, 2
jne 0x14005304c
mov dword [rbx], 0x3f2
lea rdx, [0x140195138]
jmp 0x14005322b
cmp ecx, 3
jne 0x1400530ae
mov dword [rbx], 0x3f3
lea rdx, [0x140195160]
jmp 0x14005322b
cmp edx, 0xa
jne 0x1400530a0
test ecx, ecx
jne 0x1400530b4
xor r9d, r9d
lea rcx, [rbx + 8]
cmp dword [rbp - 0x44], 0x55f0
jb 0x14005308e
mov dword [rbx], 0x3f5
lea rdx, str.Microsoft_Windows_11
jmp 0x140053232
mov dword [rbx], 0x3f4
lea rdx, [0x1401951c0]
jmp 0x140053232
cmp edx, 6
ja 0x1400530b4
jne 0x140053237
cmp ecx, 3
jbe 0x140053237
mov dword [rbx], 0x3f6
mov dword [rsp + 0x30], esi
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rbp - 0x60], xmm0
mov dword [rsp + 0x30], esi
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rbp - 0x70], xmm1
mov dword [rsp + 0x40], 4
mov eax, ecx
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp - 0x80], xmm0
mov dword [rsp + 0x30], 4
mov eax, edx
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x70], xmm0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x68], rax
cmp dword [0x1401eb6c0], 0xb23a8c33
je 0x140053164
mov ecx, 0x6c0
call fcn.1400f2ce0
mov qword [rbp + 0x100], rax
test rax, rax
je 0x14005315b
mov rcx, rax
call fcn.1400302c0
mov rsi, rax
mov qword [0x1401f7b90], rsi
jmp 0x14005316b
mov rsi, qword [0x1401f7b90]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
mov qword [rbp + 0xf8], rax
lea r9, [rbp + 0xf8]
mov r8d, 4
lea rdx, [rsp + 0x50]
lea rcx, str.Microsoft_Windows_New___d._d_
call fcn.140048670
lea rdx, [rbp + 0xf8]
lea rcx, [rbx + 8]
call fcn.140030d70
nop
mov rdx, qword [rbp + 0xf8]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400531e0
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400531d6
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400531e0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x140053237
cmp edx, 4
jne 0x140053237
test ecx, ecx
jne 0x1400531fa
mov dword [rbx], 0x3e8
lea rdx, [0x140195230]
jmp 0x14005322b
cmp ecx, 0xa
jne 0x140053219
cmp word [rbp - 0x3a], 0x41
sete sil
add esi, 0x3e9
mov dword [rbx], esi
lea rdx, [0x140195260]
jmp 0x14005322b
cmp ecx, 0x5a
jne 0x140053237
mov dword [rbx], 0x3eb
lea rdx, str.Microsoft_Windows_ME
xor r9d, r9d
lea rcx, [rbx + 8]
call fcn.140035440
cmp dword [rbx], 0
jne 0x14005325a
mov rax, qword [rbx + 8]
cmp dword [rax - 0x10], 0
jne 0x14005325a
xor r9d, r9d
lea rdx, str.Unknown_OS
lea rcx, [rbx + 8]
call fcn.140035440
nop
mov rax, rbx
mov rbx, qword [rsp + 0x208]
add rsp, 0x1d0
pop rdi
pop rsi
pop rbp
ret