Function at 0x140135c30
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x1b0
mov rax, qword [0x14047b0a0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [reloc.WS2_32.dll_accept], 0
lea rbx, [0x140493020]
mov rdi, rcx
mov esi, 2
je 0x140135e56
mov rcx, rbx
mov dword [0x140493020], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140135d73
xor eax, eax
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x160], rax
lea r9, [rsp + 0x34]
mov qword [rsp + 0x168], rax
lea r8, str.CurrentVersion
mov qword [rsp + 0x170], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov qword [rsp + 0x178], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x188], rax
mov qword [rsp + 0x190], rax
mov qword [rsp + 0x198], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], SHGetSetSettings
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x140135d46
movsx eax, byte [rsp + 0x160]
lea rcx, [rsp + 0x162]
sub eax, 0x30
mov dword [0x140493030], esi
mov dword [0x140493024], eax
call fcn.1402e6630
mov ecx, eax
mov dword [0x140493028], eax
jmp 0x140135d79
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx edx, al
movzx ecx, ax
xor eax, eax
shr ecx, 8
cmp dl, 4
mov dword [0x140493024], edx
mov dword [0x140493028], ecx
seta al
inc eax
mov dword [0x140493030], eax
jmp 0x140135d7f
mov ecx, dword [0x140493028]
mov edx, dword [0x140493024]
cmp edx, 6
ja 0x140135d92
jne 0x140135e4f
cmp ecx, esi
jb 0x140135e4f
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, VarUI4FromDisp
call fcn.1402dd440
lea rcx, str.ntdll.dll
mov dword [rsp + 0x40], VarUI4FromDisp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140135e4f
lea rcx, [rsp + 0x40]
call rax
test eax, eax
jne 0x140135e4f
mov rcx, rbx
lea rax, [rsp + 0x40]
mov rdx, rsi
nop dword [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140135df0
movups xmm0, xmmword [rax]
mov eax, dword [rax + 0x10]
movups xmmword [rcx], xmm0
mov dword [rcx + 0x10], eax
mov byte [reloc.WS2_32.dll_accept], 0
lea rdi, [rdi + 0x80]
movups xmm0, xmmword [rbx]
lea rbx, [rbx + 0x80]
movups xmmword [rdi - 0x80], xmm0
movups xmm1, xmmword [rbx - 0x70]
movups xmmword [rdi - 0x70], xmm1
movups xmm0, xmmword [rbx - 0x60]
movups xmmword [rdi - 0x60], xmm0
movups xmm1, xmmword [rbx - 0x50]
movups xmmword [rdi - 0x50], xmm1
movups xmm0, xmmword [rbx - 0x40]
movups xmmword [rdi - 0x40], xmm0
movups xmm1, xmmword [rbx - 0x30]
movups xmmword [rdi - 0x30], xmm1
movups xmm0, xmmword [rbx - 0x20]
movups xmmword [rdi - 0x20], xmm0
movups xmm1, xmmword [rbx - 0x10]
movups xmmword [rdi - 0x10], xmm1
sub rsi, 1
jne 0x140135e56
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
mov eax, dword [rbx + 0x10]
mov dword [rdi + 0x10], eax
mov al, 1
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1401aed20
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret