Function at 0x1400aa5e0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x1400aa8d0
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 0x1400aa648
xor edx, edx
xor eax, eax
div dword [rcx + 0xe0]
mov rcx, qword [r8 + rdx*8]
test rcx, rcx
je 0x1400aa648
cmp dword [rcx + 0x18], esi
jne 0x1400aa63f
cmp dword [rcx], esi
je 0x1400aa679
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x1400aa636
mov rax, rsi
lea r9, [0x1402008a8]
lea r8, [0x1401ffdb0]
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x20], esi
call fcn.1401467e0
test rax, rax
mov rdi, rax
je 0x1400aa6e9
cmp qword [rax + 0x20], rsi
jne 0x1400aa698
mov ebp, esi
jmp 0x1400aa6e3
mov rcx, qword [rcx + 8]
lea r9, [0x1401ffdb0]
lea r8, [0x1401ffe28]
xor edx, edx
mov dword [rsp + 0x20], esi
call fcn.1401467e0
jmp 0x1400aa64b
mov rcx, rax
mov ebp, esi
call fcn.1400a8990
test eax, eax
je 0x1400aa6e3
mov edx, dword [rdi + 0x4c]
mov ecx, esi
lea rax, [0x1401ec908]
lea r8, [0x1401ec9b0]
nop
nop
cmp dword [rax], edx
je 0x1400aa6d2
add rax, 0x18
add ecx, 1
cmp rax, r8
jl 0x1400aa6c0
jmp 0x1400aa6e3
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.140139fd0
mov dword [rbx + 0x168], esi
mov ebp, esi
lea r13, [0x1401ee550]
cmp dword [0x140206d04], esi
jne 0x1400aa723
lea rcx, [0x140206d00]
mov dword [0x140206d00], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x140206d04], 6
jne 0x1400aa73b
cmp dword [0x140206d08], esi
jne 0x1400aa73b
mov eax, 0x18
jmp 0x1400aa740
mov eax, 0x1b
cmp ebp, eax
jge 0x1400aa877
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 0x1400aa869
mov r9, qword [rax + 0x390]
test r9, r9
je 0x1400aa869
mov rcx, rsi
mov rax, r9
nop
test edx, edx
je 0x1400aa7b4
cmp dword [rax], edx
jne 0x1400aa7b9
test rcx, rcx
js 0x1400aa869
test dword [r9 + rcx*8 + 4], r8d
je 0x1400aa869
mov ecx, esi
mov rax, r13
cmp dword [rax], r8d
je 0x1400aa7cf
add ecx, 1
add rax, 0x14
cmp ecx, 0x1b
jb 0x1400aa7a1
jmp 0x1400aa7db
cmp dword [rax + 4], esi
jne 0x1400aa788
add rcx, 1
add rax, 8
cmp rcx, 7
jl 0x1400aa780
add ebp, 1
jmp 0x1400aa704
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 0x1400aa81e
test rdx, rdx
mov rcx, rdx
je 0x1400aa871
mov rcx, qword [rcx + 0x10]
movzx eax, word [rdi + 8]
mov rdx, qword [rdx]
cmp word [rcx + 8], ax
ja 0x1400aa81e
add r8d, 1
movsxd rax, r8d
cmp rax, qword [rbx + 0x148]
jl 0x1400aa7f5
lea eax, [r8 - 1]
lea rcx, [rbx + 0x130]
movsxd rdx, eax
call fcn.14013a0fc
lea rcx, [rbx + 0x130]
mov r8, rdi
mov rdx, rax
call fcn.14013a2ec
cmp dword [rdi + 4], 0xac44
jne 0x1400aa856
mov dword [rbx + 0x124], 1
cmp dword [rdi + 4], 0xbb80
jne 0x1400aa869
mov dword [rbx + 0x128], 1
add ebp, 1
jmp 0x1400aa704
call fcn.140129ec4
int3
mov eax, dword [rbx + 0x68]
test eax, eax
je 0x1400aa8b7
test eax, eax
je 0x1400aa8b7
cmp esi, dword [rbx + 0x68]
jae 0x1400aa8af
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x1400aa8af
mov eax, esi
lea rcx, [rax + rax*8]
lea rdx, [rdx + rcx*8]
test rdx, rdx
je 0x1400aa8af
lea rcx, [rbx + 0x130]
add rdx, 0x30
call fcn.14013a248
add esi, 1
cmp esi, dword [rbx + 0x68]
jb 0x1400aa882
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