Function at 0x18001be40
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, dword [0x180119fb8]
xor edi, edi
mov rbx, rcx
test edx, edx
je 0x18001beeb
lea rcx, [0x180119d00]
lea eax, [rdi + 2]
nop dword [rax]
lea rbx, [rbx + 0x80]
movups xmm0, xmmword [rcx]
lea rcx, [rcx + 0x80]
movups xmmword [rbx - 0x80], xmm0
movups xmm1, xmmword [rcx - 0x70]
movups xmmword [rbx - 0x70], xmm1
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rbx - 0x60], xmm0
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rbx - 0x50], xmm1
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rbx - 0x40], xmm0
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rbx - 0x30], xmm1
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rbx - 0x20], xmm0
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rbx - 0x10], xmm1
sub rax, 1
jne 0x18001be70
movups xmm0, xmmword [rcx]
mov edi, edx
movups xmmword [rbx], xmm0
mov rax, qword [rcx + 0x10]
mov qword [rbx + 0x10], rax
mov eax, dword [rcx + 0x18]
mov dword [rbx + 0x18], eax
mov eax, edx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rcx, [0x1800a7a98]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x1800a7a78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
mov r8d, 0x11c
mov rcx, rbx
mov rsi, rax
call fcn.180061460
mov dword [rbx], 0x11c
test rsi, rsi
je 0x18001bf2f
mov rcx, rbx
call rsi
test eax, eax
je 0x18001bf4c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x18001bf4c
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp dword [rbx + 0x10], 2
jne 0x18001c311
mov eax, dword [rbx + 4]
cmp eax, 0xa
jne 0x18001bf65
cmp dword [rbx + 8], edi
ja 0x18001bf67
cmp eax, eax
jbe 0x18001bf7e
mov edi, 0xff
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 0xa
jne 0x18001bfd2
cmp dword [rbx + 8], edi
jne 0x18001bfa8
cmp byte [rbx + 0x11a], 1
jne 0x18001bfa8
mov edi, __WSAFDIsSet
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 0xa
jne 0x18001bfd2
cmp dword [rbx + 8], edi
jne 0x18001bfd2
cmp byte [rbx + 0x11a], 1
je 0x18001bfd2
mov edi, LoadRegTypeLib
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 6
jne 0x18001c18d
cmp dword [rbx + 8], 3
jne 0x18001c001
cmp byte [rbx + 0x11a], 1
je 0x18001c001
mov edi, Ordinal_145
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 6
jne 0x18001c18d
cmp dword [rbx + 8], 3
jne 0x18001c030
cmp byte [rbx + 0x11a], 1
jne 0x18001c030
mov edi, Ordinal_133
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 6
jne 0x18001c18d
cmp dword [rbx + 8], 2
jne 0x18001c05f
cmp byte [rbx + 0x11a], 1
je 0x18001c05f
mov edi, Ordinal_142
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 6
jne 0x18001c18d
cmp dword [rbx + 8], 2
jne 0x18001c08e
cmp byte [rbx + 0x11a], 1
jne 0x18001c08e
mov edi, Ordinal_133
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 6
jne 0x18001c18d
cmp dword [rbx + 8], 1
jne 0x18001c0c5
cmp byte [rbx + 0x11a], 1
jne 0x18001c0c5
cmp word [rbx + 0x114], 1
sbb edi, edi
add edi, 0x79
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 6
jne 0x18001c18d
cmp dword [rbx + 8], 1
jne 0x18001c0fc
cmp byte [rbx + 0x11a], 1
je 0x18001c0fc
cmp word [rbx + 0x114], 1
sbb edi, edi
add edi, 0x71
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 6
jne 0x18001c18d
cmp dword [rbx + 8], edi
jne 0x18001c132
cmp byte [rbx + 0x11a], 1
je 0x18001c132
cmp word [rbx + 0x114], 2
sbb edi, edi
add edi, 0x6f
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 6
jne 0x18001c18d
cmp dword [rbx + 8], edi
jne 0x18001c18d
cmp byte [rbx + 0x11a], 1
jne 0x18001c18d
lea edi, [rax + 0x5e]
movzx eax, word [rbx + 0x114]
cmp ax, 1
jne 0x18001c16c
mov edi, 0x66
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp ax, 2
jb 0x18001c311
mov edi, 0x67
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 5
jne 0x18001c1f6
cmp dword [rbx + 8], 2
jne 0x18001c1f6
cmp byte [rbx + 0x11a], 1
je 0x18001c1f6
lea ecx, [rax + 0x54]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x18001c1f6
lea edi, [rax + 0x5a]
movzx eax, word [rbx + 0x114]
cmp ax, 1
jne 0x18001c1d5
mov edi, 0x5c
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp ax, 2
jb 0x18001c311
mov edi, 0x5e
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp dword [rbx + 4], 5
jne 0x18001c264
cmp dword [rbx + 8], 2
jne 0x18001c264
cmp byte [rbx + 0x11a], 1
je 0x18001c264
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x18001c264
movzx eax, word [rbx + 0x114]
mov edi, 0x5b
cmp ax, 1
jne 0x18001c243
mov edi, 0x5d
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp ax, 2
jb 0x18001c311
mov edi, 0x5f
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 4]
cmp eax, 5
jne 0x18001c311
cmp dword [rbx + 8], 2
jne 0x18001c2b2
cmp byte [rbx + 0x11a], 1
jne 0x18001c2b2
lea edi, [rax + 0x46]
movzx eax, word [rbx + 0x114]
cmp ax, 1
je 0x18001c2cd
cmp ax, 2
je 0x18001c2ea
cmp ax, 3
jb 0x18001c311
mov edi, 0x54
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 5
jne 0x18001c311
cmp dword [rbx + 8], 1
jne 0x18001c311
lea edi, [rax + 0x46]
movzx eax, word [rbx + 0x114]
cmp ax, 1
jne 0x18001c2e4
mov edi, 0x50
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp ax, 2
jne 0x18001c301
mov edi, 0x52
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, edi
cmp ax, 3
mov edi, 0x54
cmovae ecx, edi
mov edi, ecx
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret