Function at 0x14002ce70
Capabilities:
Check os version

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x4500]
mov eax, 0x4600
call fcn.14003a390
sub rsp, rax
mov rax, qword [0x140077040]
xor rax, rsp
mov qword [rbp + 0x44f0], rax
mov esi, r9d
mov rbx, r8
mov rdi, rdx
mov r14, rcx
mov r15, qword [rbp + 0x4560]
test rcx, rcx
jne 0x14002ced3
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov r14, rax
test rax, rax
je 0x14002ced3
mov rcx, rax
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov r14, rax
mov eax, esi
and eax, 0x1010
cmp eax, 0x1010
jne 0x14002cef8
mov r9d, esi
mov r8, rbx
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x14002d116
lea r12, str.Error
test rbx, rbx
cmovne r12, rbx
xor ebx, ebx
mov qword [rsp + 0x34], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rbp + 0x798], rbx
mov qword [rbp + 0x790], rbx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x58], ebx
mov dword [rbp + 0x164], ebx
mov dword [rbp + 0x370], ebx
mov qword [rsp + 0x3c], rbx
mov dword [rsp + 0x44], ebx
mov qword [rbp + 0x788], rbx
mov dword [rbp + 0x7a8], ebx
mov qword [rbp + 0x7a0], 0xffffffffffffffff
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x5c]
call fcn.14005af20
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x168]
call fcn.14005af20
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x374]
call fcn.14005af20
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x57c]
call fcn.14005af20
xor edx, edx
mov r8d, 0x2698
lea rcx, [rbp + 0x7ac]
call fcn.14005af20
test r15, r15
je 0x14002cfd4
mov r8d, 0x2f18
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.14005a880
test esi, 0x7000000
je 0x14002d04c
mov rdx, qword [rbp + 0x788]
test rdx, rdx
je 0x14002d04c
cmp word [rdx], bx
je 0x14002d04c
mov r9, 0xffffffffffffffff
lea r9, [r9 + 1]
cmp word [rdi + r9*2], bx
jne 0x14002cff4
mov r10d, ebx
movzx r8d, word [rdi]
test r8w, r8w
je 0x14002d02c
nop dword [rax]
movzx ecx, r8b
lea eax, [r10 + r9]
imul ecx, eax
add ebx, ecx
lea r10d, [r10 + 1]
movzx r8d, word [rdi + r10*2]
test r8w, r8w
jne 0x14002d010
mov dword [rbp + 0x790], ebx
mov r8d, ebx
lea rcx, [rbp + 0x57c]
call fcn.1400306b0
test eax, 0x7000000
jne 0x14002d116
mov eax, dword [rsp + 0x34]
mov ecx, 0xa
cmp eax, 0x3e8
cmovge eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x38]
cmp eax, 0x3e8
cmovge eax, ecx
mov dword [rsp + 0x38], eax
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x2e54]
call fcn.14005af20
mov dword [rbp + 0x2e50], 0x114
lea rcx, [rbp + 0x2e50]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14002d0ae
cmp dword [rbp + 0x2e54], 6
jb 0x14002d0ae
or dword [rsp + 0x44], 2
xor edx, edx
mov r8d, 0x1580
lea rcx, [rbp + 0x2f70]
call fcn.14005af20
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, r12
mov r8, rdi
mov rdx, r14
lea rcx, [rbp + 0x2f70]
call fcn.14002d1d0
nop
bt esi, 0x1e
jb 0x14002d0fa
and esi, 0xf0
mov ecx, esi
call qword [sym.imp.USER32.dll_MessageBeep]
lea rcx, [rbp + 0x2f70]
call fcn.1400300d0
mov ebx, eax
lea rcx, [rbp + 0x2f70]
call fcn.14002e900
mov eax, ebx
mov rcx, qword [rbp + 0x44f0]
xor rcx, rsp
call fcn.1400398f0
add rsp, 0x4600
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret