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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
mov eax, dword [0x6d63d0]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov dword [esp + 0x10c], eax
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
mov byte [0x76ba90], 0
mov dword [esp + 0x1c], 0x9c
call esi
mov edi, eax
test edi, edi
jne 0x62acb5
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x94
call esi
test eax, eax
jne 0x62acb5
mov eax, str.Error_in_GetVersionEx__
mov ecx, dword [esp + 0x10c]
call fcn.00671b23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x28]
sub eax, 0
je 0x62b389
dec eax
je 0x62b285
dec eax
jne 0x62b3ae
mov eax, dword [esp + 0x1c]
mov esi, 5
cmp eax, esi
jne 0x62ad7d
cmp dword [esp + 0x20], 2
jne 0x62ad15
mov eax, 0x76ba90
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62acf0
sub eax, edx
lea edx, [eax + 0x76ba90]
push str.Microsoft_Windows_Server_2003_family_
push edx
call fcn.00671a9a
mov eax, dword [esp + 0x24]
add esp, 8
cmp eax, esi
jne 0x62ad7d
cmp dword [esp + 0x20], 1
jne 0x62ad49
mov eax, 0x76ba90
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62ad24
sub eax, edx
lea eax, [eax + 0x76ba90]
push str.Microsoft_Windows_XP
push eax
call fcn.00671a9a
mov eax, dword [esp + 0x24]
add esp, 8
cmp eax, esi
jne 0x62ad7d
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x62adad
mov eax, 0x76ba90
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62ad60
sub eax, edx
lea ecx, [eax + 0x76ba90]
push str.Microsoft_Windows_2000
push ecx
call fcn.00671a9a
add esp, 8
cmp dword [esp + 0x1c], 4
ja 0x62adad
mov eax, 0x76ba90
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62ad90
sub eax, edx
lea edx, [eax + 0x76ba90]
push str.Microsoft_Windows_NT
push edx
call fcn.00671a9a
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test edi, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
je 0x62b01a
mov al, byte [esp + 0xb2]
cmp al, 1
jne 0x62ae5a
cmp dword [esp + 0x1c], 4
jne 0x62ae02
mov eax, 0x76ba90
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62ade0
sub eax, edx
lea eax, [eax + 0x76ba90]
push str.Workstation_4.0
push eax
call fcn.00671a9a
add esp, 8
jmp 0x62b157
mov eax, dword [esp + 0xb0]
test ah, 2
mov eax, 0x76ba90
lea edx, [eax + 1]
je 0x62ae38
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62ae16
sub eax, edx
lea ecx, [eax + 0x76ba90]
push str.Home_Edition
push ecx
call fcn.00671a9a
add esp, 8
jmp 0x62b157
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62ae38
sub eax, edx
lea edx, [eax + 0x76ba90]
push str.Professional
push edx
call fcn.00671a9a
add esp, 8
jmp 0x62b157
cmp al, 3
jne 0x62b157
cmp dword [esp + 0x1c], esi
jne 0x62afc4
mov eax, dword [esp + 0x20]
cmp eax, 2
jne 0x62af34
mov eax, dword [esp + 0xb0]
test al, al
jns 0x62aeb2
mov eax, 0x76ba90
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62ae90
sub eax, edx
lea eax, [eax + 0x76ba90]
push str.Datacenter_Edition
push eax
call fcn.00671a9a
add esp, 8
jmp 0x62b157
test al, 2
je 0x62aee2
mov eax, 0x76ba90
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62aec0
sub eax, edx
lea ecx, [eax + 0x76ba90]
push str.Enterprise_Edition
push ecx
call fcn.00671a9a
add esp, 8
jmp 0x62b157
cmp ax, 0x400
mov eax, 0x76ba90
lea edx, [eax + 1]
jne 0x62af12
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62aef0
sub eax, edx
lea edx, [eax + 0x76ba90]
push str.Web_Edition
push edx
call fcn.00671a9a
add esp, 8
jmp 0x62b157
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62af12
sub eax, edx
lea eax, [eax + 0x76ba90]
push str.Standard_Edition
push eax
call fcn.00671a9a
add esp, 8
jmp 0x62b157
test eax, eax
jne 0x62afc4
mov al, byte [esp + 0xb0]
test al, al
jns 0x62af72
mov eax, 0x76ba90
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62af50
sub eax, edx
lea ecx, [eax + 0x76ba90]
push str.Datacenter_Server
push ecx
call fcn.00671a9a
add esp, 8
jmp 0x62b157
test al, 2
mov eax, 0x76ba90
lea edx, [eax + 1]
je 0x62afa2
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62af80
sub eax, edx
lea edx, [eax + 0x76ba90]
push str.Advanced_Server
push edx
call fcn.00671a9a
add esp, 8
jmp 0x62b157
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62afa2
sub eax, edx
lea eax, [eax + 0x76ba90]
push str.Server
push eax
call fcn.00671a9a
add esp, 8
jmp 0x62b157
test byte [esp + 0xb0], 2
mov eax, 0x76ba90
lea edx, [eax + 1]
je 0x62aff8
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62afd6
sub eax, edx
lea ecx, [eax + 0x76ba90]
push str.Server_4.0__Enterprise_Edition
push ecx
call fcn.00671a9a
add esp, 8
jmp 0x62b157
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62aff8
sub eax, edx
lea edx, [eax + 0x76ba90]
push str.Server_4.0
push edx
call fcn.00671a9a
add esp, 8
jmp 0x62b157
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
mov esi, 0x50
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x62b157
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xbc]
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.ProductType
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x62b157
cmp dword [esp + 0x14], esi
ja 0x62b157
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0xb8]
push edx
push str.WINNT
call ebx
test eax, eax
jne 0x62b0b4
mov eax, 0x76ba90
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62b097
sub eax, edx
lea eax, [eax + 0x76ba90]
push str.Workstation
push eax
call fcn.00671a9a
add esp, 8
lea ecx, [esp + 0xb8]
push ecx
push str.LANMANNT
call ebx
test eax, eax
jne 0x62b0ed
mov eax, 0x76ba90
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62b0d0
sub eax, edx
lea edx, [eax + 0x76ba90]
push str.Server
push edx
call fcn.00671a9a
add esp, 8
lea eax, [esp + 0xb8]
push eax
push str.SERVERNT
call ebx
test eax, eax
jne 0x62b125
mov eax, 0x76ba90
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62b108
sub eax, edx
lea ecx, [eax + 0x76ba90]
push str.Advanced_Server
push ecx
call fcn.00671a9a
add esp, 8
mov eax, 0x76ba90
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62b130
mov ecx, dword [esp + 0x1c]
sub eax, edx
mov edx, dword [esp + 0x20]
push edx
push ecx
lea edx, [eax + 0x76ba90]
push str._d._d
push edx
call fcn.00671a9a
add esp, 0x10
cmp dword [esp + 0x1c], 4
jne 0x62b231
push str.Service_Pack_6
lea eax, [esp + 0x30]
push eax
call ebx
test eax, eax
jne 0x62b231
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.WSOCK32.dll_bind
call edi
test eax, eax
mov eax, 0x76ba90
lea edx, [eax + 1]
jne 0x62b1e1
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62b196
sub eax, edx
mov edx, dword [esp + 0x24]
and edx, 0xffff
push edx
lea eax, [eax + 0x76ba90]
push str.Service_Pack_6a__Build__d_
push eax
call fcn.00671a9a
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x76ba90
mov ecx, dword [esp + 0x10c]
call fcn.00671b23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62b1e1
mov ecx, dword [esp + 0x24]
sub eax, edx
and ecx, 0xffff
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [eax + 0x76ba90]
push str._s__Build__d_
push eax
call fcn.00671a9a
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x76ba90
mov ecx, dword [esp + 0x10c]
call fcn.00671b23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x76ba90
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62b240
sub eax, edx
mov edx, dword [esp + 0x24]
and edx, 0xffff
push edx
lea ecx, [esp + 0x30]
push ecx
lea edx, [eax + 0x76ba90]
push str._s__Build__d_
push edx
call fcn.00671a9a
add esp, 0x10
mov eax, 0x76ba90
mov ecx, dword [esp + 0x10c]
call fcn.00671b23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov esi, 4
cmp eax, esi
jne 0x62b3ae
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x62b2fe
mov eax, 0x76ba90
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62b2a6
sub eax, edx
lea eax, [eax + 0x76ba90]
push str.Microsoft_Windows_95
push eax
call fcn.00671a9a
mov al, byte [esp + 0x35]
add esp, 8
cmp al, 0x43
je 0x62b2cf
cmp al, 0x42
jne 0x62b2f4
mov eax, 0x76ba90
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62b2d7
sub eax, edx
lea ecx, [eax + 0x76ba90]
push str.OSR2
push ecx
call fcn.00671a9a
add esp, 8
cmp dword [esp + 0x1c], esi
jne 0x62b3ae
cmp dword [esp + 0x20], 0xa
jne 0x62b363
mov eax, 0x76ba90
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62b310
sub eax, edx
lea edx, [eax + 0x76ba90]
push str.Microsoft_Windows_98
push edx
call fcn.00671a9a
mov al, byte [esp + 0x35]
add esp, 8
cmp al, 0x41
jne 0x62b35d
mov eax, 0x76ba90
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62b340
sub eax, edx
lea eax, [eax + 0x76ba90]
push 0x6a0bb8
push eax
call fcn.00671a9a
add esp, 8
cmp dword [esp + 0x1c], esi
jne 0x62b3ae
cmp dword [esp + 0x20], 0x5a
jne 0x62b3ae
mov eax, 0x76ba90
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62b372
sub eax, edx
push str.Microsoft_Windows_Millennium_Edition
lea ecx, [eax + 0x76ba90]
push ecx
jmp 0x62b3a6
mov eax, 0x76ba90
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62b391
sub eax, edx
push str.Microsoft_Win32s
lea edx, [eax + 0x76ba90]
push edx
call fcn.00671a9a
add esp, 8
mov ecx, dword [esp + 0x10c]
mov eax, 0x76ba90
call fcn.00671b23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret