Function at 0x4216cf
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.00425890
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 0x421717
inc dword [0x47f3b8]
jmp 0x421a8a
push 0x47fb14
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], edi
call fcn.0041d047
push 9
lea ecx, [ebp - 0xc]
call fcn.0041d191
cmp dword [ebp - 0xa4], edi
mov esi, str._SP_d
jne 0x421751
push edi
push str.Windows_32s
lea ecx, [ebp - 0xc]
call fcn.0041d1e0
jmp 0x42189c
cmp dword [ebp - 0xa4], 1
jne 0x4217bf
cmp dword [ebp - 0xac], 0x5a
je 0x421783
cmp dword [ebp - 0xb0], 4
jne 0x421783
cmp dword [ebp - 0xac], edi
push edi
jne 0x42177c
push str.Windows_95
jmp 0x421789
push str.Windows_98
jmp 0x421789
push edi
push str.Windows_ME
lea ecx, [ebp - 0xc]
call fcn.0041d1e0
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.0041d600
add esp, 0x14
jmp 0x42189c
cmp dword [ebp - 0xa4], 2
jne 0x42189c
cmp dword [ebp - 0xb0], 5
jne 0x421805
cmp dword [ebp - 0xac], edi
jne 0x4217e5
push edi
push str.Windows_2000
jmp 0x4217f4
cmp dword [ebp - 0xac], 1
push edi
jne 0x4217fe
push str.Windows_XP
lea ecx, [ebp - 0xc]
call fcn.0041d1e0
jmp 0x421822
push str.Windows_2003
jmp 0x4217f4
push dword [ebp - 0xac]
lea eax, [ebp - 0xc]
push dword [ebp - 0xb0]
push str.Windows_NT__d._d
push eax
call fcn.0041d600
add esp, 0x10
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edi
push eax
push 1
push edi
push str.SystemCurrentControlSetControlWindows
push 0x80000002
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42189c
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 0x42187b
mov eax, dword [ebp - 0x14]
cmp ax, 0xff
mov dword [ebp - 0x10], eax
jbe 0x42187b
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 0x42189c
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041d600
add esp, 0xc
cmp dword [0x47f208], edi
push edi
jne 0x4218ac
push 0x42ea90
jmp 0x4218b1
push str._tWin
lea ecx, [ebp - 0xc]
call fcn.0041d1e0
mov al, byte [0x47f208]
test al, 1
je 0x4218dd
cmp dword [0x47f20c], 0x3e8
push edi
jbe 0x4218d6
push str.95__OSR2__
jmp 0x421906
push 0x42ea78
jmp 0x421906
test al, 2
je 0x4218fc
cmp dword [0x47f20c], 0x8ad
push edi
jbe 0x4218f5
push str.98_SE_
jmp 0x421906
push 0x42ea6c
jmp 0x421906
test al, 8
je 0x42190e
push edi
push 0x42ea68
lea ecx, [ebp - 0xc]
call fcn.0041d1e0
test byte [0x47f208], 4
je 0x42199e
cmp dword [0x47f210], 5
jne 0x42194a
mov eax, dword [0x47f214]
cmp eax, edi
jne 0x42193d
push edi
push str.2000
lea ecx, [ebp - 0xc]
call fcn.0041d1e0
jmp 0x421979
cmp eax, 1
jne 0x421979
push edi
push 0x42ea5c
jmp 0x421933
push edi
push 0x42ea58
lea ecx, [ebp - 0xc]
call fcn.0041d1e0
mov eax, dword [0x47f210]
cmp eax, edi
je 0x421979
push dword [0x47f214]
push eax
lea eax, [ebp - 0xc]
push str.__d._d
push eax
call fcn.0041d600
add esp, 0x10
mov eax, dword [0x47f218]
cmp eax, edi
jbe 0x421990
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041d600
add esp, 0xc
push edi
push 0x42ea4c
lea ecx, [ebp - 0xc]
call fcn.0041d1e0
mov eax, dword [ebp - 0xc]
push ebx
dec eax
push 1
push eax
lea ecx, [ebp - 0xc]
call fcn.0041d542
push 9
lea ecx, [ebp - 0xc]
call fcn.0041d191
mov eax, dword [0x47f208]
xor bl, bl
cmp dword [ebp - 0xa4], 1
jne 0x421a09
mov edx, dword [ebp - 0xa8]
mov ecx, dword [0x47f20c]
test al, 1
je 0x4219e8
mov esi, edx
and esi, 0xffff
cmp esi, ecx
jb 0x4219e8
inc bl
xor edi, edi
test al, 2
je 0x421a51
and edx, 0xffff
cmp edx, 0x7ce
jb 0x421a51
cmp edx, ecx
jb 0x421a51
cmp dword [ebp - 0xac], 1
jb 0x421a51
mov bl, 1
cmp dword [ebp - 0xa4], 2
jne 0x421a51
mov ecx, dword [0x47f210]
mov edx, eax
and edx, 4
je 0x421a27
cmp dword [ebp - 0xb0], ecx
ja 0x421a4f
cmp edx, edi
je 0x421a51
cmp dword [ebp - 0xb0], ecx
jne 0x421a51
mov ecx, dword [0x47f214]
cmp dword [ebp - 0xac], ecx
ja 0x421a4f
jne 0x421a51
movzx ecx, word [ebp - 0x10]
cmp ecx, dword [0x47f218]
jb 0x421a51
mov bl, 1
cmp eax, edi
jne 0x421a57
mov bl, 1
test bl, bl
pop ebx
je 0x421a63
push 0x47f9f4
jmp 0x421a6e
inc dword [0x47f3b0]
push 0x47f9dc
lea ecx, [ebp - 0xc]
call fcn.0041d25e
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
push eax
call fcn.004201e7
lea ecx, [ebp - 0xc]
call fcn.0041d0a9
pop edi
pop esi
leave
ret