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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push esi
push edi
mov esi, 0x94
xor edi, edi
push esi
lea eax, [ebp - 0xb4]
push edi
mov dword [ebp - 0x20], ecx
push eax
call fcn.00428300
add esp, 0xc
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x423fda
inc dword [0x482748]
jmp 0x424390
push 0x482ef4
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], edi
call fcn.0041f009
push 9
lea ecx, [ebp - 0xc]
call fcn.0041f1be
cmp dword [ebp - 0xa4], edi
mov esi, str._SP_d
jne 0x424014
push edi
push str.Windows_32s
lea ecx, [ebp - 0xc]
call fcn.0041f20d
jmp 0x424185
cmp dword [ebp - 0xa4], 1
jne 0x424082
cmp dword [ebp - 0xac], 0x5a
je 0x424046
cmp dword [ebp - 0xb0], 4
jne 0x424046
cmp dword [ebp - 0xac], edi
push edi
jne 0x42403f
push str.Windows_95
jmp 0x42404c
push str.Windows_98
jmp 0x42404c
push edi
push str.Windows_ME
lea ecx, [ebp - 0xc]
call fcn.0041f20d
mov eax, dword [ebp - 0xa8]
and eax, 0xffff
push eax
lea eax, [ebp - 0xc]
push dword [ebp - 0xac]
push dword [ebp - 0xb0]
push str.___d._d._d_
push eax
call fcn.0041f62d
add esp, 0x14
jmp 0x424185
cmp dword [ebp - 0xa4], 2
jne 0x424185
cmp dword [ebp - 0xb0], 5
jne 0x4240c8
cmp dword [ebp - 0xac], edi
jne 0x4240a8
push edi
push str.Windows_2000
jmp 0x4240b7
cmp dword [ebp - 0xac], 1
push edi
jne 0x4240c1
push str.Windows_XP
lea ecx, [ebp - 0xc]
call fcn.0041f20d
jmp 0x424105
push str.Windows_2003
jmp 0x4240b7
cmp dword [ebp - 0xb0], 6
jne 0x4240e8
cmp dword [ebp - 0xac], edi
push edi
jne 0x4240e1
push str.Windows_Vista
jmp 0x4240b7
push str.Windows_7
jmp 0x4240b7
push dword [ebp - 0xac]
lea eax, [ebp - 0xc]
push dword [ebp - 0xb0]
push str.Windows_NT__d._d
push eax
call fcn.0041f62d
add esp, 0x10
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edi
push eax
mov eax, dword [0x483760]
or al, 1
mov dword [ebp - 0x1c], 4
push eax
push edi
push str.SystemCurrentControlSetControlWindows
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x424185
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push str.CSDVersion
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x424164
mov eax, dword [ebp - 0x14]
cmp ax, 0xff
mov dword [ebp - 0x10], eax
jbe 0x424164
xor ecx, ecx
mov cl, ah
movzx ax, cl
mov word [ebp - 0x10], ax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x10], di
jbe 0x424185
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041f62d
add esp, 0xc
cmp dword [0x482598], edi
push edi
jne 0x424195
push 0x431df4
jmp 0x42419a
push str._tWin
lea ecx, [ebp - 0xc]
call fcn.0041f20d
mov al, byte [0x482598]
test al, 1
je 0x4241c6
cmp dword [0x48259c], 0x3e8
push edi
jbe 0x4241bf
push str.95__OSR2__
jmp 0x4241ef
push 0x431ddc
jmp 0x4241ef
test al, 2
je 0x4241e5
cmp dword [0x48259c], 0x8ad
push edi
jbe 0x4241de
push str.98_SE_
jmp 0x4241ef
push 0x431dd0
jmp 0x4241ef
test al, 8
je 0x4241f7
push edi
push 0x431dcc
lea ecx, [ebp - 0xc]
call fcn.0041f20d
test byte [0x482598], 4
je 0x4242a4
mov eax, dword [0x4825a0]
cmp eax, 5
jne 0x424234
mov eax, dword [0x4825a4]
cmp eax, edi
jne 0x424227
push edi
push str.2000
lea ecx, [ebp - 0xc]
call fcn.0041f20d
jmp 0x42427f
cmp eax, 1
jne 0x42427f
push edi
push 0x431dc0
jmp 0x42421d
cmp eax, 6
jne 0x424250
cmp dword [0x4825a4], edi
push edi
jne 0x424249
push str.Vista
jmp 0x42421d
push 0x431db4
jmp 0x42421d
push edi
push 0x431db0
lea ecx, [ebp - 0xc]
call fcn.0041f20d
mov eax, dword [0x4825a0]
cmp eax, edi
je 0x42427f
push dword [0x4825a4]
push eax
lea eax, [ebp - 0xc]
push str.__d._d
push eax
call fcn.0041f62d
add esp, 0x10
mov eax, dword [0x4825a8]
cmp eax, edi
jbe 0x424296
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041f62d
add esp, 0xc
push edi
push 0x431da4
lea ecx, [ebp - 0xc]
call fcn.0041f20d
mov eax, dword [ebp - 0xc]
push ebx
dec eax
push 1
push eax
lea ecx, [ebp - 0xc]
call fcn.0041f56f
push 9
lea ecx, [ebp - 0xc]
call fcn.0041f1be
mov eax, dword [0x482598]
xor bl, bl
cmp dword [ebp - 0xa4], 1
jne 0x42430f
mov edx, dword [ebp - 0xa8]
mov ecx, dword [0x48259c]
test al, 1
je 0x4242ee
mov esi, edx
and esi, 0xffff
cmp esi, ecx
jb 0x4242ee
inc bl
xor edi, edi
test al, 2
je 0x424357
and edx, 0xffff
cmp edx, 0x7ce
jb 0x424357
cmp edx, ecx
jb 0x424357
cmp dword [ebp - 0xac], 1
jb 0x424357
mov bl, 1
cmp dword [ebp - 0xa4], 2
jne 0x424357
mov ecx, dword [0x4825a0]
mov edx, eax
and edx, 4
je 0x42432d
cmp dword [ebp - 0xb0], ecx
ja 0x424355
cmp edx, edi
je 0x424357
cmp dword [ebp - 0xb0], ecx
jne 0x424357
mov ecx, dword [0x4825a4]
cmp dword [ebp - 0xac], ecx
ja 0x424355
jne 0x424357
movzx ecx, word [ebp - 0x10]
cmp ecx, dword [0x4825a8]
jb 0x424357
mov bl, 1
cmp eax, edi
jne 0x42435d
mov bl, 1
test bl, bl
pop ebx
je 0x424369
push 0x482dd4
jmp 0x424374
inc dword [0x482740]
push 0x482dbc
lea ecx, [ebp - 0xc]
call fcn.0041f28b
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
push eax
call fcn.00422686
lea ecx, [ebp - 0xc]
call fcn.0041f06b
pop edi
pop esi
leave
ret