Function at 0x100006490
Capabilities:
Check os version

Disassembly:
mov r11, rsp
sub rsp, 0x228
mov rax, qword [0x100011410]
mov qword [rsp + 0x200], rax
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 - 0x18], r13
mov r13, rcx
lea rcx, [rsp + 0x50]
xor ebp, ebp
mov esi, ebp
mov dword [rsp + 0x50], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1000064f8
mov esi, 0x4b4
xor r9d, r9d
xor r8d, r8d
mov edx, esi
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 0x10
call fcn.100005260
jmp 0x100006802
mov eax, dword [rsp + 0x60]
mov r10d, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x54]
dec eax
je 0x100006573
dec eax
je 0x100006514
mov esi, 0x4ca
jmp 0x1000064d8
cmp ecx, 3
mov ax, 2
mov dword [0x100011400], 1
mov word [0x100012178], ax
mov dword [0x100011404], 1
ja 0x100006561
cmp ecx, 3
mov ax, 1
mov word [0x100012178], ax
jb 0x100006553
cmp ecx, 3
jne 0x100006591
cmp r10d, 0x33
jae 0x100006591
mov dword [0x100011400], ebp
mov dword [0x100011404], ebp
jmp 0x100006591
cmp ecx, 5
jb 0x100006591
mov ax, 3
mov word [0x100012178], ax
jmp 0x100006591
xor ax, ax
mov dword [0x100011400], 1
mov dword [0x100011404], 1
mov word [0x100012178], ax
cmp dword [0x1000130f4], esi
jne 0x100006802
test r13, r13
je 0x100006802
test ax, ax
mov qword [rsp + 0x220], rdi
jne 0x1000065b9
lea rdi, [r13 + 0x40]
jmp 0x1000065bd
lea rdi, [r13 + 4]
mov qword [rsp + 0x238], rbx
mov qword [rsp + 0x218], r12
movzx r12d, word [rsp + 0x5c]
mov edx, ebp
mov dword [rsp + 0x30], ebp
jmp 0x1000065e9
mov r10d, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x54]
movsxd rax, edx
movsxd rbx, edx
mov edx, r10d
lea r8, [rax + rax*2]
mov r9d, dword [rdi + r8*8 + 4]
mov r8d, dword [rdi + r8*8]
call fcn.100002770
mov edx, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x54]
mov dword [rsp + rbx*4 + 0x38], eax
lea rax, [rbx + rbx*2]
mov r9d, dword [rdi + rax*8 + 0x10]
mov r8d, dword [rdi + rax*8 + 0xc]
call fcn.100002770
movsxd rdx, dword [rsp + 0x30]
mov r8d, dword [rsp + rdx*4 + 0x38]
test r8d, r8d
js 0x100006770
test eax, eax
jg 0x100006770
test r8d, r8d
jne 0x10000672f
test eax, eax
jne 0x10000672f
lea rax, [rdx + rdx*2]
movzx ecx, r12w
cmp ecx, dword [rdi + rax*8 + 8]
jb 0x100006762
cmp ecx, dword [rdi + rax*8 + 0x14]
ja 0x100006762
cmp dword [r13 + 0x7c], esi
je 0x1000067ea
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0xf0]
mov r8d, 0x104
mov rcx, r13
call fcn.100002b10
test eax, eax
jne 0x1000067ea
mov edx, dword [rsp + 0x30]
mov esi, 0x54d
cmp esi, 0x54d
mov r12, rbp
jne 0x1000066cd
mov ecx, dword [r13 + 0x80]
movsxd rax, edx
lea r12, [rsp + 0xf0]
imul rax, rax, 0x3c
add rax, r13
lea rdi, [rcx + rax + 0x84]
mov eax, dword [rdi + 0x34]
mov ecx, dword [rdi + 0x30]
lea r13, [rax + r13 + 0x84]
call fcn.100002750
test byte [0x1000130f8], 1
mov ebx, eax
jne 0x1000067cb
cmp byte [r13], bpl
je 0x1000067cb
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBeep]
call fcn.100009d30
test eax, eax
je 0x100006793
mov rcx, qword [0x100012bc0]
mov edx, 0x10
lea r8d, [rdx - 0xf]
call fcn.100009c40
test eax, eax
je 0x100006793
mov r9d, 0x180000
jmp 0x100006796
test r8d, r8d
jne 0x100006748
lea rcx, [rdx + rdx*2]
movzx eax, r12w
cmp eax, dword [rdi + rcx*8 + 8]
jae 0x10000666b
jmp 0x100006762
test eax, eax
jne 0x10000666b
lea rcx, [rdx + rdx*2]
movzx eax, r12w
cmp eax, dword [rdi + rcx*8 + 0x14]
jbe 0x10000666b
test edx, edx
je 0x100006775
mov esi, 0x54c
jmp 0x1000066a1
cmp edx, 1
je 0x100006789
inc edx
cmp edx, 2
mov dword [rsp + 0x30], edx
jl 0x1000065e0
jmp 0x10000666b
mov esi, 0x54c
jmp 0x1000066a1
mov r9d, ebp
or r9d, ebx
lea r8, [0x1000122b8]
mov rdx, r13
or r9d, 0x30
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
test bl, 4
je 0x1000067bd
cmp eax, 6
jne 0x1000067ea
mov esi, ebp
jmp 0x1000067ea
test bl, 1
je 0x1000067ea
cmp eax, 1
jne 0x1000067ea
mov esi, ebp
jmp 0x1000067ea
lea r8, [0x1000122b8]
mov r9, r12
mov edx, esi
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 0x30
call fcn.100005260
mov rbx, qword [rsp + 0x238]
mov r12, qword [rsp + 0x218]
mov rdi, qword [rsp + 0x220]
mov r13, qword [rsp + 0x210]
test esi, esi
mov rsi, qword [rsp + 0x248]
sete bpl
mov eax, ebp
mov rbp, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x200]
call fcn.10000ea20
add rsp, 0x228
ret