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

Disassembly:
sub esp, 0x364
mov eax, dword [0x4bc410]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x36c]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov dword [esp + 0x370], eax
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x9c
call esi
mov ebp, eax
test ebp, ebp
jne 0x48e92e
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x94
call esi
test eax, eax
je 0x48efd8
mov eax, dword [esp + 0x28]
sub eax, 0
je 0x48f0cd
dec eax
je 0x48efdf
dec eax
jne 0x48f0f9
mov eax, dword [esp + 0x1c]
cmp eax, 5
mov edx, dword [esp + 0x20]
jne 0x48e9ee
cmp edx, 2
jne 0x48e975
mov ecx, 9
mov esi, str.Microsoft_Windows_Server_2003_family_
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x48ea2c
cmp edx, 1
jne 0x48e9b1
mov ecx, dword [str.Microsoft_Windows_XP]
mov eax, ebx
mov dword [eax], ecx
mov ecx, dword [0x4ac3ac]
mov dword [eax + 4], ecx
mov ecx, dword [0x4ac3b0]
mov dword [eax + 8], ecx
mov ecx, dword [0x4ac3b4]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x4ac3b8]
mov dword [eax + 0x10], ecx
mov cx, word [0x4ac3bc]
jmp 0x48ea28
test edx, edx
jne 0x48ea2c
mov ecx, dword [str.Microsoft_Windows_2000]
mov eax, ebx
mov dword [eax], ecx
mov ecx, dword [0x4ac394]
mov dword [eax + 4], ecx
mov ecx, dword [0x4ac398]
mov dword [eax + 8], ecx
mov ecx, dword [0x4ac39c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x4ac3a0]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x4ac3a4]
mov dword [eax + 0x14], ecx
jmp 0x48ea2c
cmp eax, 4
ja 0x48ea2c
mov ecx, dword [str.Microsoft_Windows_NT]
mov eax, ebx
mov dword [eax], ecx
mov ecx, dword [0x4ac37c]
mov dword [eax + 4], ecx
mov ecx, dword [0x4ac380]
mov dword [eax + 8], ecx
mov ecx, dword [0x4ac384]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x4ac388]
mov dword [eax + 0x10], ecx
mov cx, word [0x4ac38c]
mov word [eax + 0x14], cx
test ebp, ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
je 0x48ed76
mov al, byte [esp + 0xb2]
cmp al, 1
jne 0x48eb01
mov eax, dword [esp + 0x1c]
mov edi, ebx
dec edi
cmp eax, 4
jne 0x48ea8c
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48ea55
mov edx, dword [str.Workstation_4.0]
mov dword [edi], edx
mov eax, dword [0x4ac368]
mov dword [edi + 4], eax
mov ecx, dword [0x4ac36c]
mov dword [edi + 8], ecx
mov edx, dword [0x4ac370]
mov dword [edi + 0xc], edx
mov al, byte [0x4ac374]
mov byte [edi + 0x10], al
jmp 0x48ef03
mov eax, dword [esp + 0xb0]
test ah, 2
je 0x48ead0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48ea98
mov ecx, dword [str.Home_Edition]
mov dword [edi], ecx
mov edx, dword [0x4ac358]
mov dword [edi + 4], edx
mov eax, dword [0x4ac35c]
mov dword [edi + 8], eax
mov cx, word [0x4ac360]
mov word [edi + 0xc], cx
jmp 0x48eef8
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48ead0
mov edx, dword [str.Professional]
mov dword [edi], edx
mov eax, dword [0x4ac348]
mov dword [edi + 4], eax
mov ecx, dword [0x4ac34c]
mov dword [edi + 8], ecx
mov dx, word [0x4ac350]
mov word [edi + 0xc], dx
jmp 0x48eef8
cmp al, 3
jne 0x48eef8
cmp dword [esp + 0x1c], 5
jne 0x48ed1d
cmp edx, 2
jne 0x48ec69
mov eax, dword [esp + 0xb0]
mov edi, ebx
dec edi
test al, al
jns 0x48ebbd
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48eb30
mov eax, dword [str.Datacenter_Edition]
mov dword [edi], eax
mov ecx, dword [0x4ac334]
mov dword [edi + 4], ecx
mov edx, dword [0x4ac338]
mov dword [edi + 8], edx
mov eax, dword [0x4ac33c]
mov dword [edi + 0xc], eax
mov ecx, dword [0x4ac340]
mov dword [edi + 0x10], ecx
mov edx, dword [esp + 0x24]
and edx, 0xffff
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x184]
push str._s__Build__d__n
push ecx
call dword [sym.imp.MSVCR71.dll_sprintf]
lea eax, [esp + 0x18c]
add esp, 0x10
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48eb91
sub eax, edx
dec ebx
mov edi, ebx
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x48eba0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x48f0f9
test al, 2
je 0x48ebf8
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48ebc1
mov edx, dword [str.Enterprise_Edition]
mov dword [edi], edx
mov eax, dword [0x4ac310]
mov dword [edi + 4], eax
mov ecx, dword [0x4ac314]
mov dword [edi + 8], ecx
mov edx, dword [0x4ac318]
mov dword [edi + 0xc], edx
mov eax, dword [0x4ac31c]
mov dword [edi + 0x10], eax
jmp 0x48eb62
cmp ax, 0x400
jne 0x48ec30
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48ec00
mov ecx, dword [str.Web_Edition]
mov dword [edi], ecx
mov edx, dword [0x4ac300]
mov dword [edi + 4], edx
mov eax, dword [0x4ac304]
mov dword [edi + 8], eax
mov cl, byte [0x4ac308]
mov byte [edi + 0xc], cl
jmp 0x48eb62
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48ec30
mov edx, dword [str.Standard_Edition]
mov dword [edi], edx
mov eax, dword [0x4ac2ec]
mov dword [edi + 4], eax
mov ecx, dword [0x4ac2f0]
mov dword [edi + 8], ecx
mov edx, dword [0x4ac2f4]
mov dword [edi + 0xc], edx
mov ax, word [0x4ac2f8]
mov word [edi + 0x10], ax
jmp 0x48eb62
test edx, edx
jne 0x48ed1d
mov al, byte [esp + 0xb0]
mov edi, ebx
dec edi
test al, al
jns 0x48ecc2
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48ec80
mov ecx, dword [str.Datacenter_Server]
mov dword [edi], ecx
mov edx, dword [0x4ac2d8]
mov dword [edi + 4], edx
mov eax, dword [0x4ac2dc]
mov dword [edi + 8], eax
mov ecx, dword [0x4ac2e0]
mov dword [edi + 0xc], ecx
mov dx, word [0x4ac2e4]
mov word [edi + 0x10], dx
mov al, byte [0x4ac2e6]
mov byte [edi + 0x12], al
jmp 0x48eb62
test al, 2
je 0x48ed00
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48ecc6
mov ecx, dword [str.Advanced_Server]
mov dword [edi], ecx
mov edx, dword [0x4ac2c4]
mov dword [edi + 4], edx
mov eax, dword [0x4ac2c8]
mov dword [edi + 8], eax
mov ecx, dword [0x4ac2cc]
mov dword [edi + 0xc], ecx
mov dl, byte [0x4ac2d0]
mov byte [edi + 0x10], dl
jmp 0x48eb62
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48ed00
mov eax, dword [str.Server]
mov dword [edi], eax
mov ecx, dword [0x4ac2bc]
mov dword [edi + 4], ecx
jmp 0x48eb62
mov al, byte [esp + 0xb0]
mov edi, ebx
dec edi
test al, 2
je 0x48ed50
jmp 0x48ed30
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48ed30
mov ecx, 8
mov esi, str.Server_4.0__Enterprise_Edition
rep movsd dword es:[edi], dword [esi]
jmp 0x48eef8
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48ed50
mov edx, dword [str.Server_4.0]
mov dword [edi], edx
mov eax, dword [0x4ac290]
mov dword [edi + 4], eax
mov ecx, dword [0x4ac294]
mov dword [edi + 8], ecx
jmp 0x48eef8
lea edx, [esp + 0x10]
push edx
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
mov esi, 0xc8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x48efd8
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xb8]
push ecx
push 0
push 0
push str.ProductType
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48efd8
cmp dword [esp + 0x14], esi
ja 0x48efd8
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xb4]
push ecx
push str.WINNT
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x48ee1e
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48edf4
mov edx, dword [str.Workstation]
mov dword [edi], edx
mov eax, dword [0x4ac23c]
mov dword [edi + 4], eax
mov ecx, dword [0x4ac240]
mov dword [edi + 8], ecx
mov dl, byte [0x4ac244]
mov byte [edi + 0xc], dl
lea eax, [esp + 0xb4]
push eax
push str.LANMANNT
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x48ee51
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48ee38
mov ecx, dword [str.Server]
mov dword [edi], ecx
mov edx, dword [0x4ac2bc]
mov dword [edi + 4], edx
lea eax, [esp + 0xb4]
push eax
push str.SERVERNT
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x48eea3
mov edi, ebx
dec edi
jmp 0x48ee70
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48ee70
mov ecx, dword [str.Advanced_Server]
mov dword [edi], ecx
mov edx, dword [0x4ac2c4]
mov dword [edi + 4], edx
mov eax, dword [0x4ac2c8]
mov dword [edi + 8], eax
mov ecx, dword [0x4ac2cc]
mov dword [edi + 0xc], ecx
mov dl, byte [0x4ac2d0]
mov byte [edi + 0x10], dl
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0xbc]
push str._d._d
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
lea eax, [esp + 0xc4]
add esp, 0x10
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48eed0
mov edi, ebx
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x48eee0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x1c], 4
jne 0x48eb62
push str.Service_Pack_6
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x48eb62
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
lea eax, [esp + 0x17c]
jne 0x48ef7a
mov edx, dword [esp + 0x24]
and edx, 0xffff
push edx
push str.Service_Pack_6a__Build__d__n
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
lea eax, [esp + 0x188]
add esp, 0xc
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48ef60
sub eax, edx
dec ebx
mov edi, ebx
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x48ef70
jmp 0x48efb8
mov ecx, dword [esp + 0x24]
and ecx, 0xffff
push ecx
lea edx, [esp + 0x30]
push edx
push str._s__Build__d__n
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
lea eax, [esp + 0x18c]
add esp, 0x10
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48efa2
sub eax, edx
dec ebx
mov edi, ebx
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x48efb0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x48f0f9
xor eax, eax
jmp 0x48f0fe
cmp dword [esp + 0x1c], 4
jne 0x48f0f9
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x48f05f
mov eax, dword [str.Microsoft_Windows_95]
mov edx, ebx
mov dword [edx], eax
mov ecx, dword [0x4ac19c]
mov dword [edx + 4], ecx
mov eax, dword [0x4ac1a0]
mov dword [edx + 8], eax
mov ecx, dword [0x4ac1a4]
mov dword [edx + 0xc], ecx
mov eax, dword [0x4ac1a8]
mov dword [edx + 0x10], eax
mov al, byte [esp + 0x2d]
cmp al, 0x43
mov cx, word [0x4ac1ac]
mov word [edx + 0x14], cx
je 0x48f038
cmp al, 0x42
jne 0x48f0f9
dec ebx
mov edi, ebx
jmp 0x48f040
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48f040
mov edx, dword [str.OSR2]
mov dword [edi], edx
mov ax, word [0x4ac194]
mov word [edi + 4], ax
jmp 0x48f0f9
cmp eax, 0xa
jne 0x48f0b6
mov edx, dword [str.Microsoft_Windows_98]
mov ecx, ebx
mov dword [ecx], edx
mov eax, dword [0x4ac17c]
mov dword [ecx + 4], eax
mov edx, dword [0x4ac180]
mov dword [ecx + 8], edx
mov eax, dword [0x4ac184]
mov dword [ecx + 0xc], eax
mov edx, dword [0x4ac188]
mov dword [ecx + 0x10], edx
mov ax, word [0x4ac18c]
mov word [ecx + 0x14], ax
cmp byte [esp + 0x2d], 0x41
jne 0x48f0f9
dec ebx
mov edi, ebx
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48f0a4
mov ecx, dword [0x4ac174]
mov dword [edi], ecx
jmp 0x48f0f9
cmp eax, 0x5a
jne 0x48f0f9
mov ecx, 9
mov esi, str.Microsoft_Windows_Millennium_Edition_n
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x48f0f9
mov edx, dword [str.Microsoft_Win32s_n]
mov dword [ebx], edx
mov eax, dword [0x4ac13c]
mov dword [ebx + 4], eax
mov ecx, dword [0x4ac140]
mov dword [ebx + 8], ecx
mov edx, dword [0x4ac144]
mov dword [ebx + 0xc], edx
mov ax, word [0x4ac148]
mov word [ebx + 0x10], ax
mov eax, 1
mov ecx, dword [esp + 0x370]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00496ace
add esp, 0x364
ret