Function at 0x1400aa410
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x1400aa700
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
xor esi, esi
mov qword [rsp + 0x60], rdi
mov dword [rbx + 0x120], esi
mov r8, qword [rcx + 0xd8]
test r8, r8
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
je 0x1400aa478
xor edx, edx
xor eax, eax
div dword [rcx + 0xe0]
mov rcx, qword [r8 + rdx*8]
test rcx, rcx
je 0x1400aa478
cmp dword [rcx + 0x18], esi
jne 0x1400aa46f
cmp dword [rcx], esi
je 0x1400aa4a9
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x1400aa466
mov rax, rsi
lea r9, [0x140200898]
lea r8, [0x1401ffda0]
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x20], esi
call fcn.1401461d0
test rax, rax
mov rdi, rax
je 0x1400aa519
cmp qword [rax + 0x20], rsi
jne 0x1400aa4c8
mov ebp, esi
jmp 0x1400aa513
mov rcx, qword [rcx + 8]
lea r9, [0x1401ffda0]
lea r8, [0x1401ffe18]
xor edx, edx
mov dword [rsp + 0x20], esi
call fcn.1401461d0
jmp 0x1400aa47b
mov rcx, rax
mov ebp, esi
call fcn.1400eb0d0
test eax, eax
je 0x1400aa513
mov edx, dword [rdi + 0x4c]
mov ecx, esi
lea rax, [0x1401ec908]
lea r8, [0x1401ec9b0]
nop
nop
cmp dword [rax], edx
je 0x1400aa502
add rax, 0x18
add ecx, 1
cmp rax, r8
jl 0x1400aa4f0
jmp 0x1400aa513
movsxd rax, ecx
lea rcx, [rax + rax*2]
lea rax, [0x1401ec900]
mov ebp, dword [rax + rcx*8]
mov dword [rbx + 0x120], ebp
lea rcx, [rbx + 0x130]
call fcn.1401399d0
mov dword [rbx + 0x168], esi
mov ebp, esi
lea r13, [0x1401ee540]
cmp dword [0x140206d04], esi
jne 0x1400aa553
lea rcx, [0x140206d00]
mov dword [0x140206d00], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x140206d04], 6
jne 0x1400aa56b
cmp dword [0x140206d08], esi
jne 0x1400aa56b
mov eax, 0x18
jmp 0x1400aa570
mov eax, 0x1b
cmp ebp, eax
jge 0x1400aa6a7
mov rax, qword [rbx + 0x20]
mov edx, dword [rbx + 0x120]
mov ecx, ebp
mov r8d, 1
mov rdi, rsi
shl r8d, cl
test rax, rax
je 0x1400aa699
mov r9, qword [rax + 0x390]
test r9, r9
je 0x1400aa699
mov rcx, rsi
mov rax, r9
nop
test edx, edx
je 0x1400aa5e4
cmp dword [rax], edx
jne 0x1400aa5e9
test rcx, rcx
js 0x1400aa699
test dword [r9 + rcx*8 + 4], r8d
je 0x1400aa699
mov ecx, esi
mov rax, r13
cmp dword [rax], r8d
je 0x1400aa5ff
add ecx, 1
add rax, 0x14
cmp ecx, 0x1b
jb 0x1400aa5d1
jmp 0x1400aa60b
cmp dword [rax + 4], esi
jne 0x1400aa5b8
add rcx, 1
add rax, 8
cmp rcx, 7
jl 0x1400aa5b0
add ebp, 1
jmp 0x1400aa534
movsxd rax, ecx
lea rcx, [rax + rax*4]
lea rdi, [r13 + rcx*4]
or dword [rbx + 0x168], r8d
cmp qword [rbx + 0x148], rsi
mov rdx, qword [rbx + 0x138]
mov r8d, esi
jle 0x1400aa64e
test rdx, rdx
mov rcx, rdx
je 0x1400aa6a1
mov rcx, qword [rcx + 0x10]
movzx eax, word [rdi + 8]
mov rdx, qword [rdx]
cmp word [rcx + 8], ax
ja 0x1400aa64e
add r8d, 1
movsxd rax, r8d
cmp rax, qword [rbx + 0x148]
jl 0x1400aa625
lea eax, [r8 - 1]
lea rcx, [rbx + 0x130]
movsxd rdx, eax
call fcn.14013dc14
lea rcx, [rbx + 0x130]
mov r8, rdi
mov rdx, rax
call fcn.140139ccc
cmp dword [rdi + 4], 0xac44
jne 0x1400aa686
mov dword [rbx + 0x124], 1
cmp dword [rdi + 4], 0xbb80
jne 0x1400aa699
mov dword [rbx + 0x128], 1
add ebp, 1
jmp 0x1400aa534
call fcn.1401298b4
int3
mov eax, dword [rbx + 0x68]
test eax, eax
je 0x1400aa6e7
test eax, eax
je 0x1400aa6e7
cmp esi, dword [rbx + 0x68]
jae 0x1400aa6df
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x1400aa6df
mov eax, esi
lea rcx, [rax + rax*8]
lea rdx, [rdx + rcx*8]
test rdx, rdx
je 0x1400aa6df
lea rcx, [rbx + 0x130]
add rdx, 0x30
call fcn.140139c28
add esi, 1
cmp esi, dword [rbx + 0x68]
jb 0x1400aa6b2
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r13, qword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret