Function at 0x1400b5850
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x1400b5b40
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 0x1400b58b8
xor edx, edx
xor eax, eax
div dword [rcx + 0xe0]
mov rcx, qword [r8 + rdx*8]
test rcx, rcx
je 0x1400b58b8
cmp dword [rcx + 0x18], esi
jne 0x1400b58af
cmp dword [rcx], esi
je 0x1400b58e9
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x1400b58a6
mov rax, rsi
lea r9, [0x140225d38]
lea r8, [0x140225138]
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x20], esi
call fcn.14015da90
test rax, rax
mov rdi, rax
je 0x1400b5959
cmp qword [rax + 0x20], rsi
jne 0x1400b5908
mov ebp, esi
jmp 0x1400b5953
mov rcx, qword [rcx + 8]
lea r9, [0x140225138]
lea r8, [0x1402251b0]
xor edx, edx
mov dword [rsp + 0x20], esi
call fcn.14015da90
jmp 0x1400b58bb
mov rcx, rax
mov ebp, esi
call fcn.1401003d0
test eax, eax
je 0x1400b5953
mov edx, dword [rdi + 0x4c]
mov ecx, esi
lea rax, [0x140210638]
lea r8, [0x1402106e0]
nop
nop
cmp dword [rax], edx
je 0x1400b5942
add rax, 0x18
add ecx, 1
cmp rax, r8
jl 0x1400b5930
jmp 0x1400b5953
movsxd rax, ecx
lea rcx, [rax + rax*2]
lea rax, [0x140210630]
mov ebp, dword [rax + rcx*8]
mov dword [rbx + 0x120], ebp
lea rcx, [rbx + 0x130]
call fcn.14014e56c
mov dword [rbx + 0x168], esi
mov ebp, esi
lea r13, [0x140212360]
cmp dword [0x14022c3f4], esi
jne 0x1400b5993
lea rcx, [0x14022c3f0]
mov dword [0x14022c3f0], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x14022c3f4], 6
jne 0x1400b59ab
cmp dword [0x14022c3f8], esi
jne 0x1400b59ab
mov eax, 0x18
jmp 0x1400b59b0
mov eax, 0x1d
cmp ebp, eax
jge 0x1400b5ae7
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 0x1400b5ad9
mov r9, qword [rax + 0x398]
test r9, r9
je 0x1400b5ad9
mov rcx, rsi
mov rax, r9
nop
test edx, edx
je 0x1400b5a24
cmp dword [rax], edx
jne 0x1400b5a29
test rcx, rcx
js 0x1400b5ad9
test dword [r9 + rcx*8 + 4], r8d
je 0x1400b5ad9
mov ecx, esi
mov rax, r13
cmp dword [rax], r8d
je 0x1400b5a3f
add ecx, 1
add rax, 0x14
cmp ecx, 0x1d
jb 0x1400b5a11
jmp 0x1400b5a4b
cmp dword [rax + 4], esi
jne 0x1400b59f8
add rcx, 1
add rax, 8
cmp rcx, 7
jl 0x1400b59f0
add ebp, 1
jmp 0x1400b5974
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 0x1400b5a8e
test rdx, rdx
mov rcx, rdx
je 0x1400b5ae1
mov rcx, qword [rcx + 0x10]
movzx eax, word [rdi + 8]
mov rdx, qword [rdx]
cmp word [rcx + 8], ax
ja 0x1400b5a8e
add r8d, 1
movsxd rax, r8d
cmp rax, qword [rbx + 0x148]
jl 0x1400b5a65
lea eax, [r8 - 1]
lea rcx, [rbx + 0x130]
movsxd rdx, eax
call fcn.140154ad0
lea rcx, [rbx + 0x130]
mov r8, rdi
mov rdx, rax
call fcn.14014e868
cmp dword [rdi + 4], 0xac44
jne 0x1400b5ac6
mov dword [rbx + 0x124], 1
cmp dword [rdi + 4], 0xbb80
jne 0x1400b5ad9
mov dword [rbx + 0x128], 1
add ebp, 1
jmp 0x1400b5974
call fcn.14013de24
int3
mov eax, dword [rbx + 0x68]
test eax, eax
je 0x1400b5b27
test eax, eax
je 0x1400b5b27
cmp esi, dword [rbx + 0x68]
jae 0x1400b5b1f
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x1400b5b1f
mov eax, esi
lea rcx, [rax + rax*8]
lea rdx, [rdx + rcx*8]
test rdx, rdx
je 0x1400b5b1f
lea rcx, [rbx + 0x130]
add rdx, 0x30
call fcn.14014e7c4
add esi, 1
cmp esi, dword [rbx + 0x68]
jb 0x1400b5af2
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