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

Disassembly:
push 0x1d0
mov eax, 0x57c9d8
call fcn.004fb9d0
mov eax, dword [0x6063ec]
xor ebx, ebx
cmp eax, ebx
jne 0x49dbdc
mov esi, 0x11c
push esi
lea eax, [ebp - 0x1cc]
push ebx
xor edi, edi
push eax
inc edi
call fcn.004fc1f0
add esp, 0xc
lea eax, [ebp - 0x1cc]
mov dword [ebp - 0x1cc], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x49d941
lea eax, [ebp - 0x1cc]
push eax
mov dword [ebp - 0x1cc], 0x114
call esi
test eax, eax
jne 0x49d95d
inc eax
jmp 0x49dbdc
cmp byte [ebp - 0xb2], 1
jne 0x49d951
xor ebx, ebx
jmp 0x49d9ea
cmp byte [ebp - 0xb2], 3
jmp 0x49d9e5
lea eax, [ebp - 0x1d0]
push eax
push 1
xor esi, esi
push esi
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0xb0]
push eax
push esi
push esi
push str.ProductType
push dword [ebp - 0x1d0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x1d0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp - 0xb0]
push eax
push str.WINNT
call esi
test eax, eax
jne 0x49d9c0
xor ebx, ebx
lea eax, [ebp - 0xb0]
push eax
push str.LANMANNT
call esi
test eax, eax
jne 0x49d9d5
xor ebx, ebx
inc ebx
lea eax, [ebp - 0xb0]
push eax
push str.SERVERNT
call esi
test eax, eax
jne 0x49d9ea
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x1bc]
xor edx, edx
sub eax, edx
je 0x49dbd1
dec eax
je 0x49dba2
dec eax
jne 0x49dbd4
mov ecx, dword [ebp - 0x1c8]
cmp ecx, 4
ja 0x49da1a
push 6
jmp 0x49dbd3
cmp ecx, 5
jne 0x49da52
cmp dword [ebp - 0x1c4], edx
jne 0x49da2e
push 0xb
jmp 0x49dbd3
cmp dword [ebp - 0x1c4], 1
jne 0x49da3e
push 0xd
jmp 0x49dbd3
cmp dword [ebp - 0x1c4], 2
jne 0x49db9e
push 0xf
jmp 0x49dbd3
mov eax, dword [ebp - 0x1c4]
cmp ecx, 6
jne 0x49db91
cmp eax, edx
jne 0x49da75
xor eax, eax
cmp ebx, edx
setne al
lea edi, [eax + eax + 0x13]
jmp 0x49dbd4
cmp eax, 1
jne 0x49da8a
xor eax, eax
cmp ebx, edx
setne al
lea edi, [eax + eax + 0x17]
jmp 0x49dbd4
cmp eax, 2
jne 0x49db83
xor eax, eax
cmp ebx, edx
setne al
push ecx
mov ecx, esp
mov dword [ebp - 0x1d8], esp
push str.CurrentVersion
lea edi, [eax + 0x1b]
call fcn.0043479c
and dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1d4], esp
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push esi
call fcn.0043479c
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x1dc], esp
push str.HKEY_LOCAL_MACHINE
call fcn.0043479c
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1d0]
push eax
or dword [ebp - 4], 0xffffffff
call fcn.0049b925
add esp, 0x10
mov dword [ebp - 4], 3
push 0x5a46f8
lea ecx, [ebp - 0x1d0]
call fcn.00431ed3
test eax, eax
jne 0x49db15
push 0x1e
jmp 0x49db2b
push 0x5a46f0
lea ecx, [ebp - 0x1d0]
call fcn.00431ed3
test eax, eax
jne 0x49db2c
push 0x1f
pop edi
push ecx
mov ecx, esp
mov dword [ebp - 0x1dc], esp
push str.CurrentMajorVersionNumber
call fcn.0043479c
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x1d4], esp
push esi
call fcn.0043479c
mov byte [ebp - 4], 5
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 3
call fcn.0049aac0
add esp, 0xc
cmp eax, 0xa
jne 0x49db6f
push 0x1f
pop edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1d0]
add ecx, 0xfffffff0
call fcn.004310e3
jmp 0x49dbd4
cmp eax, 3
jne 0x49db8c
push 0x1e
jmp 0x49dbd3
cmp eax, 4
je 0x49db9a
cmp ecx, 0xa
jne 0x49db9e
cmp eax, edx
jne 0x49db9e
push 0x1f
jmp 0x49dbd3
push 0x20
jmp 0x49dbd3
cmp dword [ebp - 0x1c8], 4
jne 0x49dbd4
cmp dword [ebp - 0x1c4], edx
jne 0x49dbb7
push 3
jmp 0x49dbd3
cmp dword [ebp - 0x1c4], 0xa
jne 0x49dbc4
push 8
jmp 0x49dbd3
cmp dword [ebp - 0x1c4], 0x5a
jne 0x49dbd4
push 0xa
jmp 0x49dbd3
push 2
pop edi
mov dword [0x6063ec], edi
mov eax, edi
call fcn.004fba53
ret