Function at 0x659e20
Capabilities:
Check os version

Disassembly:
lea r12, [rsp - 0xa8]
cmp r12, qword [r14 + 0x10]
jbe 0x65a2d7
push rbp
mov rbp, rsp
sub rsp, 0x120
mov ecx, dword [rax]
nop
cmp ecx, 1
je 0x65a2c5
cmp ecx, 2
je 0x659ecb
mov qword [rsp + 0x130], rax
mov dword [rax], 1
cmp byte [0x00afade0], 0
jne 0x659e6d
xor edx, edx
xor ecx, ecx
xor ebx, ebx
jmp 0x659ea2
nop
call fcn.006793e0
xorps xmm15, xmm15
mov r14, qword [0x00afacb0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [0x00afadf0]
mov rcx, qword [0x00afadf8]
mov rdx, qword [rsp]
mov rbx, rax
mov rax, qword [rsp + 0x130]
cmp dword [rax + 4], 0
je 0x65a2b2
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x28], rdx
lea rsi, [rax + 8]
mov qword [rsp + 0x110], rsi
xor esi, esi
jmp 0x659f18
add rsp, 0x120
pop rbp
ret
mov eax, esi
shl rsi, 3
add rsi, qword [rsp + 0x110]
inc eax
mov dword [rsp + 0x24], eax
mov qword [rsp + 0x108], rsi
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rdx]
call rcx
mov rax, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x40]
mov esi, dword [rsp + 0x24]
cmp dword [rax + 4], esi
ja 0x659ed4
cmp byte [0x00afade0], 0
je 0x65a0c6
nop
call fcn.006793e0
xorps xmm15, xmm15
mov r14, qword [0x00afacb0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [0x00afadf8]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x110]
mov rcx, qword [rcx]
mov rdx, qword [rsp]
mov rbx, qword [rsp + 0x28]
sub rdx, rbx
mov qword [rsp + 0x58], rdx
mov rsi, qword [0x00afadf0]
mov qword [rsp + 0x50], rsi
mov rax, rcx
call fcn.00663ea0
nop
call fcn.00664600
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x30], rbx
movups xmmword [rsp + 0x68], xmm15
movups xmmword [rsp + 0x70], xmm15
nop
call fcn.0064c0c0
lea rax, [0x007b7604]
mov ebx, 5
call fcn.0064c940
mov rax, qword [rsp + 0x100]
mov rbx, qword [rsp + 0x30]
call fcn.0064c940
lea rax, [0x007b3767]
mov ebx, 2
call fcn.0064c940
call fcn.0064c120
mov rax, qword [0x00afac20]
mov rdi, qword [rsp + 0x28]
sub rdi, rax
lea rax, [rsp + 0x68]
mov ebx, 0x18
mov rcx, rbx
call fcn.0062fe40
mov rcx, rbx
mov rbx, rax
lea rax, [rsp + 0xe0]
call fcn.006617a0
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x48], rbx
nop
call fcn.0064c0c0
mov rax, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x48]
call fcn.0064c940
lea rax, [0x007b7609]
mov ebx, 5
call fcn.0064c940
call fcn.0064c120
lea rax, [rsp + 0x68]
mov ebx, 0x18
mov rcx, rbx
mov rdi, qword [rsp + 0x58]
nop
call fcn.0062fe40
mov rcx, rbx
mov rbx, rax
lea rax, [rsp + 0xc0]
call fcn.006617a0
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x48], rbx
call fcn.0064c0c0
mov rax, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x48]
call fcn.0064c940
lea rax, [0x007ca2df]
mov ebx, 0xb
call fcn.0064c940
call fcn.0064c120
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
sub rax, rcx
mov ecx, 0x17
jmp 0x65a0e4
mov dword [rax], 2
add rsp, 0x120
pop rbp
ret
lea rsi, [rbx + 0x30]
mov byte [rsp + rcx + 0x68], sil
dec rcx
mov rax, rdx
cmp rax, 0xa
jb 0x65a120
mov rdx, rax
movabs rax, 0xcccccccccccccccd
mov rbx, rdx
mul rdx
shr rdx, 3
lea rsi, [rdx + rdx*4]
shl rsi, 1
sub rbx, rsi
cmp rcx, 0x18
jb 0x65a0d5
jmp 0x65a2a5
cmp rcx, 0x18
jae 0x65a293
lea rdx, [rax + 0x30]
mov byte [rsp + rcx + 0x68], dl
lea rdx, [rcx - 0x18]
mov rsi, rdx
sar rdx, 0x3f
and rcx, rdx
lea rbx, [rsp + rcx + 0x68]
neg rsi
lea rax, [rsp + 0xa0]
mov rcx, rsi
call fcn.006617a0
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x48], rbx
call fcn.0064c0c0
mov rax, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x48]
call fcn.0064c940
lea rax, [0x007c1b9a]
mov ebx, 8
call fcn.0064c940
call fcn.0064c120
mov rdx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
sub rdx, rsi
mov eax, 0x17
jmp 0x65a1b3
lea rsi, [rbx + 0x30]
mov byte [rsp + rcx + 0x68], sil
lea rax, [rcx - 1]
cmp rdx, 0xa
jb 0x65a1eb
mov rcx, rax
movabs rax, 0xcccccccccccccccd
mov rbx, rdx
mul rdx
shr rdx, 3
lea rsi, [rdx + rdx*4]
shl rsi, 1
sub rbx, rsi
nop word [rax + rax]
cmp rcx, 0x18
jb 0x65a1a6
jmp 0x65a286
cmp rax, 0x18
jae 0x65a27c
add rdx, 0x30
mov byte [rsp + rax + 0x68], dl
lea rcx, [rax - 0x18]
mov rdx, rcx
sar rdx, 0x3f
and rax, rdx
lea rbx, [rsp + rax + 0x68]
neg rcx
lea rax, [rsp + 0x80]
nop dword [rax + rax]
call fcn.006617a0
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x48], rbx
call fcn.0064c0c0
mov rax, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x48]
call fcn.0064c940
lea rax, [0x007bd528]
mov ebx, 7
call fcn.0064c940
call fcn.0064c120
nop
call fcn.0064c0c0
call fcn.0064c300
call fcn.0064c120
mov rax, qword [rsp + 0x130]
jmp 0x65a0c6
mov ecx, 0x18
call fcn.00677b20
mov rax, rcx
mov ecx, 0x18
call fcn.00677b20
mov rax, rcx
mov ecx, 0x18
nop dword [rax + rax]
call fcn.00677b20
mov rax, rcx
mov ecx, 0x18
call fcn.00677b20
lea rax, [0x007e7200]
mov ebx, 0x1a
nop
call fcn.0064a720
lea rax, [0x007f374e]
mov ebx, 0x32
call fcn.0064a720
nop
mov qword [rsp + 8], rax
nop dword [rax]
call fcn.006758a0
mov rax, qword [rsp + 8]
jmp fcn.00659e20