Function at 0x1400304a0
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.14003f630
sub rsp, rax
mov rax, qword [0x14007f080]
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 0x140030503
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov r14, rax
test rax, rax
je 0x140030503
mov rcx, rax
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov r14, rax
mov eax, esi
and eax, 0x1010
cmp eax, 0x1010
jne 0x140030528
mov r9d, esi
mov r8, rbx
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140030746
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.14005fd20
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x168]
call fcn.14005fd20
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x374]
call fcn.14005fd20
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x57c]
call fcn.14005fd20
xor edx, edx
mov r8d, 0x2698
lea rcx, [rbp + 0x7ac]
call fcn.14005fd20
test r15, r15
je 0x140030604
mov r8d, 0x2f18
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.14005f680
test esi, 0x7000000
je 0x14003067c
mov rdx, qword [rbp + 0x788]
test rdx, rdx
je 0x14003067c
cmp word [rdx], bx
je 0x14003067c
mov r9, 0xffffffffffffffff
lea r9, [r9 + 1]
cmp word [rdi + r9*2], bx
jne 0x140030624
mov r10d, ebx
movzx r8d, word [rdi]
test r8w, r8w
je 0x14003065c
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 0x140030640
mov dword [rbp + 0x790], ebx
mov r8d, ebx
lea rcx, [rbp + 0x57c]
call fcn.140033ce0
test eax, 0x7000000
jne 0x140030746
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, pe_nt_image_headers64
lea rcx, [rbp + 0x2e54]
call fcn.14005fd20
mov dword [rbp + 0x2e50], 0x114
lea rcx, [rbp + 0x2e50]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1400306de
cmp dword [rbp + 0x2e54], 6
jb 0x1400306de
or dword [rsp + 0x44], 2
xor edx, edx
mov r8d, 0x1580
lea rcx, [rbp + 0x2f70]
call fcn.14005fd20
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.140030800
nop
bt esi, 0x1e
jb 0x14003072a
and esi, 0xf0
mov ecx, esi
call qword [sym.imp.USER32.dll_MessageBeep]
lea rcx, [rbp + 0x2f70]
call fcn.140033700
mov ebx, eax
lea rcx, [rbp + 0x2f70]
call fcn.140031f30
mov eax, ebx
mov rcx, qword [rbp + 0x44f0]
xor rcx, rsp
call fcn.14003f1d0
add rsp, 0x4600
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret