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

Disassembly:
mov r11, rsp
sub rsp, 0x248
mov rax, qword [0x006443a8]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
xor r12d, r12d
mov dword [rsp + 0x30], r12d
xor edx, edx
mov r8d, LoadRegTypeLib
mov byte [rcx + 0x9c], r12b
mov rbx, rcx
call fcn.0056a100
mov rcx, rbx
mov dword [rbx], LoadRegTypeLib
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4dc684
mov rcx, rbx
mov dword [rbx], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rbx + 0x10], 2
jne 0x4dc684
cmp dword [rbx + 4], 4
jne 0x4dc684
lea rax, [rsp + 0x38]
lea r9d, [r12 + 1]
lea rdx, str.SYSTEMCurrentControlSetControlProductOptions
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4dc684
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.ProductType
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], 0x50
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4dc679
lea rdx, [rsp + 0x40]
lea rcx, str.WINNT
call fcn.0056ecc0
test eax, eax
jne 0x4dc65d
mov byte [rbx + 0x9a], 1
jmp 0x4dc679
lea rdx, [rsp + 0x40]
lea rcx, str.SERVERNT
call fcn.0056ecc0
test eax, eax
jne 0x4dc679
mov byte [rbx + 0x9a], 3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbx + 0x10], 2
jne 0x4dc690
cmp dword [rbx + 4], 5
ja 0x4dc6a4
cmp dword [rbx + 4], 5
jne 0x4dc886
cmp dword [rbx + 8], 1
jb 0x4dc886
lea rax, [rsp + 0x38]
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4dc886
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.ProductName
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x268], rsi
mov dword [rsp + 0x30], 0x190
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x240], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4dc841
xor eax, eax
lea rdi, [rsp + 0x90]
mov rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
movabs rax, 0x7ffffffffffffffe
mov esi, 7
not rcx
mov r8, r12
mov qword [rsp + 0x260], rbp
sub rcx, 1
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], r12
cmp rcx, rax
mov word [rsp + 0x48], r8w
mov rbp, rcx
jbe 0x4dc77e
call fcn.0053cc80
mov rsi, qword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
cmp rsi, rbp
jae 0x4dc819
lea rcx, [rsp + 0x40]
mov rdx, rbp
call fcn.005118a0
mov rsi, qword [rsp + 0x60]
test rbp, rbp
je 0x4dc7e6
lea rcx, [rsp + 0x48]
cmp rsi, 8
lea rdi, [rbp + rbp]
cmovae rcx, qword [rsp + 0x48]
lea rdx, [rsi + rsi]
lea r8, [rsp + 0x90]
mov r9, rdi
call fcn.00568a50
cmp qword [rsp + 0x60], 8
lea rax, [rsp + 0x48]
cmovae rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rbp
mov word [rdi + rax], r12w
mov rsi, qword [rsp + 0x60]
mov r12d, 1
lea rdx, str.Preinstallation
lea rcx, [rsp + 0x40]
lea r9d, [r12 + 0xe]
xor r8d, r8d
call fcn.00473e70
mov rbp, qword [rsp + 0x260]
cmp rax, 0xffffffffffffffff
je 0x4dc846
movzx edi, r12b
jmp 0x4dc849
test rbp, rbp
jne 0x4dc799
cmp rsi, 8
lea rax, [rsp + 0x48]
mov qword [rsp + 0x58], r12
cmovae rax, qword [rsp + 0x48]
mov word [rax], r12w
mov rsi, qword [rsp + 0x60]
jmp 0x4dc7e6
mov rsi, qword [rsp + 0x60]
xor dil, dil
test r12b, 1
je 0x4dc85f
cmp rsi, 8
jb 0x4dc85f
mov rcx, qword [rsp + 0x48]
call fcn.00568830
mov rsi, qword [rsp + 0x268]
test dil, dil
mov rdi, qword [rsp + 0x240]
je 0x4dc87b
mov byte [rbx + 0x9c], 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12, qword [rsp + 0x238]
mov rax, rbx
mov rbx, qword [rsp + 0x258]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.00568fb0
add rsp, 0x248
ret