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

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xf8
mov eax, dword [0x514d34]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
mov esi, dword [ebp + 0x7c]
lea eax, [ebp - 0x7c]
push edi
mov edi, 0x9c
push edi
push 0
push eax
call fcn.00443240
add esp, 0xc
mov dword [ebp - 0x7c], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x7c]
push eax
call edi
mov ebx, eax
test ebx, ebx
jne 0x46fa87
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0x94
push eax
call edi
test eax, eax
je 0x46fdfc
mov eax, dword [ebp - 0x6c]
sub eax, 0
je 0x46fded
sub eax, 1
je 0x46fd90
sub eax, 1
jne 0x46fdfa
mov eax, dword [ebp - 0x78]
cmp eax, 0xa
jne 0x46fac8
mov al, byte [ebp + 0x1e]
cmp al, 3
je 0x46fabd
cmp al, 2
mov eax, str.Windows_10
jne 0x46fac2
mov eax, str.Microsoft_Windows_2016_Server
push eax
jmp 0x46fb79
cmp eax, 6
jne 0x46fb3c
mov al, byte [ebp + 0x1e]
cmp al, 3
je 0x46fb07
cmp al, 2
je 0x46fb07
mov edx, dword [ebp - 0x74]
mov eax, 0x4df860
test edx, edx
mov ecx, str.Windows_Vista
cmovne ecx, eax
cmp edx, 1
mov eax, str.Windows_7
cmovne eax, ecx
cmp edx, 2
mov ecx, str.Windows_8
cmovne ecx, eax
mov eax, str.Windows_8.1
jmp 0x46fb34
mov edx, dword [ebp - 0x74]
mov eax, str.Unknown_Windows_6_Server_OS
test edx, edx
mov ecx, str.Microsoft_Windows_2008_Server
cmovne ecx, eax
cmp edx, 1
mov eax, str.Microsoft_Windows_2008_R2_Server
cmovne eax, ecx
cmp edx, 2
mov ecx, str.Microsoft_Windows_2012_Server
cmovne ecx, eax
mov eax, str.Microsoft_Windows_2012_R2_Server
cmp edx, 3
cmovne eax, ecx
jmp 0x46fac2
cmp eax, 5
jne 0x46fb68
mov edx, dword [ebp - 0x74]
mov ecx, str.Unknown_Windows_Version_5_OS
test edx, edx
mov eax, str.Microsoft_Windows_2000
cmovne eax, ecx
cmp edx, 1
mov ecx, str.Microsoft_Windows_XP
cmovne ecx, eax
mov eax, str.Microsoft_Windows_2003_Server
cmp edx, 2
jmp 0x46fb37
cmp eax, 4
ja 0x46fb74
push str.Microsoft_Windows_NT
jmp 0x46fb79
push str.Unknown_Windows_Version_6_OS
push esi
call fcn.00446f90
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
pop ecx
test ebx, ebx
je 0x46fc7d
mov al, byte [ebp + 0x1e]
cmp al, 1
jne 0x46fbbc
cmp dword [ebp - 0x78], 4
jne 0x46fba6
push str._Workstation_4
jmp 0x46fc70
test dword [ebp + 0x1c], 0x200
mov eax, str._Home_Edition
mov ecx, str._Professional
jmp 0x46fc44
cmp al, 3
je 0x46fbc8
cmp al, 2
jne 0x46fd16
cmp dword [ebp - 0x78], 5
jb 0x46fc4a
cmp dword [ebp - 0x74], 2
jne 0x46fc12
mov eax, dword [ebp + 0x1c]
mov ecx, str._Standard_Edition
test eax, 0x400
mov dl, al
mov bh, al
mov bl, al
mov eax, str._Web_Edition
cmove eax, ecx
and dl, 2
mov ecx, str._Enterprise_Edition
mov edx, str._Datacenter_Edition
cmove ecx, eax
and bl, 0x80
mov eax, str._Small_Business_Edition
cmove edx, ecx
and bh, 1
cmove eax, edx
jmp 0x46fc47
cmp dword [ebp - 0x74], 0
jne 0x46fd16
mov bl, byte [ebp + 0x1c]
mov ecx, str._Server
test bl, 2
mov dl, bl
mov eax, str._Advanced_Server
cmove eax, ecx
and dl, 0x80
mov ecx, str._Datacenter_Server
cmove ecx, eax
mov eax, str._Small_Business_Server
and bl, 1
cmove eax, ecx
push eax
jmp 0x46fc70
cmp dword [ebp - 0x78], 4
jne 0x46fd60
push str._Server
push esi
call fcn.00446fa0
test byte [ebp + 0x1c], 2
pop ecx
pop ecx
je 0x46fd16
push str._Enterprise_Edition
push esi
call fcn.00446fa0
pop ecx
pop ecx
jmp 0x46fd16
lea eax, [ebp - 0x80]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46fd16
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp + 0x20]
push eax
push 0
push 0
push str.ProductType
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46fd11
lea eax, [ebp + 0x20]
push eax
push str.WINNT
call fcn.00447146
pop ecx
pop ecx
test eax, eax
jne 0x46fcd5
push str._Professional
jmp 0x46fd09
lea eax, [ebp + 0x20]
push eax
push str.LANMANNT
call fcn.00447146
pop ecx
pop ecx
test eax, eax
jne 0x46fcf0
push str._Server
jmp 0x46fd09
lea eax, [ebp + 0x20]
push eax
push str.SERVERNT
call fcn.00447146
pop ecx
pop ecx
test eax, eax
jne 0x46fd11
push str._Advanced_Server
push esi
call fcn.00446fa0
pop ecx
pop ecx
push dword [ebp - 0x80]
call edi
cmp dword [ebp - 0x78], 4
jne 0x46fd60
lea eax, [ebp - 0x68]
push str.Service_Pack_6
push eax
call fcn.00447146
pop ecx
pop ecx
test eax, eax
jne 0x46fd60
lea eax, [ebp - 0x80]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46fd60
push str._Service_Pack_6a
push esi
call fcn.00446fa0
pop ecx
pop ecx
push dword [ebp - 0x80]
call edi
jmp 0x46fd7b
cmp byte [ebp - 0x68], 0
je 0x46fd7b
push 0x20
push esi
call fcn.0040970e
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.00446fa0
add esp, 0x10
movzx eax, word [ebp - 0x70]
push eax
push esi
push str.__Build__dword__5_
call fcn.0045bb5f
add esp, 0xc
jmp 0x46fdfa
cmp dword [ebp - 0x78], 4
jne 0x46fdfa
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x46fdc2
push str.Microsoft_Windows_95
push esi
call fcn.00446f90
mov al, byte [ebp - 0x67]
pop ecx
pop ecx
cmp al, 0x43
je 0x46fdb5
cmp al, 0x42
jne 0x46fdfa
push str._OSR2
push esi
call fcn.00446fa0
jmp 0x46fdf8
cmp eax, 0xa
jne 0x46fde1
push str.Microsoft_Windows_98
push esi
call fcn.00446f90
cmp byte [ebp - 0x67], 0x41
pop ecx
pop ecx
jne 0x46fdfa
push 0x4dfb0c
jmp 0x46fdba
cmp eax, 0x5a
jne 0x46fdfa
push str.Microsoft_Windows_Millennium_Edition
jmp 0x46fdf2
push str.Microsoft_Win32s
push esi
call fcn.00446f90
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441a5e
lea esp, [ebp + 0x74]
pop ebp
ret