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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
mov eax, dword [0x7286bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x73bac0]
push ebx
push esi
push edi
test eax, eax
jne 0x4842c4
mov esi, 0x11c
lea eax, [ebp - 0x1c0]
push esi
xor ebx, ebx
xor edi, edi
push ebx
push eax
inc edi
call fcn.0060b7a0
add esp, 0xc
mov dword [ebp - 0x1c0], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x1c0]
push eax
call esi
test eax, eax
jne 0x484120
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], 0x114
push eax
call esi
test eax, eax
je 0x4842c2
lea eax, [ebp - 0x1c4]
push eax
push edi
push ebx
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0xa4]
push eax
push ebx
push ebx
push str.ProductType
push dword [ebp - 0x1c4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x1c4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp - 0xa4]
push eax
push str.WINNT
call esi
lea eax, [ebp - 0xa4]
push eax
push str.LANMANNT
call esi
test eax, eax
lea eax, [ebp - 0xa4]
push eax
push str.SERVERNT
cmove ebx, edi
call esi
test eax, eax
cmove ebx, edi
jmp 0x484134
mov al, byte [ebp - 0xa6]
cmp al, 1
jne 0x48412e
xor ebx, ebx
jmp 0x484134
cmp al, 3
jne 0x484134
mov ebx, edi
mov eax, dword [ebp - 0x1b0]
sub eax, 0
je 0x4842b9
sub eax, 1
je 0x484290
sub eax, 1
jne 0x4842bc
mov ecx, dword [ebp - 0x1bc]
cmp ecx, 4
ja 0x484167
push 6
jmp 0x4842bb
mov eax, dword [ebp - 0x1b8]
cmp ecx, 5
jne 0x484198
test eax, eax
jne 0x48417d
push 0xb
jmp 0x4842bb
cmp eax, edi
jne 0x484188
push 0xd
jmp 0x4842bb
cmp eax, 2
jne 0x48428c
push 0xf
jmp 0x4842bb
cmp ecx, 6
jne 0x48427f
test eax, eax
jne 0x4841b1
lea edi, [ebx*2 + 0x13]
jmp 0x4842bc
cmp eax, edi
jne 0x4841c1
lea edi, [ebx*2 + 0x17]
jmp 0x4842bc
cmp eax, 2
jne 0x484271
push ecx
mov ecx, esp
push str.CurrentVersion
call fcn.004177e7
push ecx
mov ecx, esp
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
call fcn.004177e7
push ecx
mov ecx, esp
push str.HKEY_LOCAL_MACHINE
call fcn.004177e7
lea eax, [ebp - 0x1c4]
push eax
call fcn.004e6d33
add esp, 0x10
lea ecx, [ebp - 0x1c4]
push 0x68a7e4
call fcn.004229b4
push 0x1f
pop esi
test eax, eax
jne 0x48421c
push 0x1e
pop edi
jmp 0x484234
push 0x68a7ec
lea ecx, [ebp - 0x1c4]
lea edi, [ebx + 0x1b]
call fcn.004229b4
test eax, eax
cmove edi, esi
push ecx
mov ecx, esp
push str.CurrentMajorVersionNumber
call fcn.004177e7
push ecx
mov ecx, esp
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
call fcn.004177e7
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004e6e6c
mov ecx, dword [ebp - 0x1c4]
add esp, 0xc
cmp eax, 0xa
cmove edi, esi
lea ecx, [ecx - 0x10]
call fcn.00419521
jmp 0x4842bc
cmp eax, 3
jne 0x48427a
push 0x1e
jmp 0x4842bb
cmp eax, 4
je 0x484288
cmp ecx, 0xa
jne 0x48428c
test eax, eax
jne 0x48428c
push 0x1f
jmp 0x4842bb
push 0x20
jmp 0x4842bb
cmp dword [ebp - 0x1bc], 4
jne 0x4842bc
mov eax, dword [ebp - 0x1b8]
test eax, eax
jne 0x4842a7
push 3
jmp 0x4842bb
cmp eax, 0xa
jne 0x4842b0
push 8
jmp 0x4842bb
cmp eax, 0x5a
jne 0x4842bc
push 0xa
jmp 0x4842bb
push 2
pop edi
mov dword [0x73bac0], edi
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00609802
mov esp, ebp
pop ebp
ret