Function at 0x42166f
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.00425820
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 0x4216b7
inc dword [0x47f3c8]
jmp 0x421a2a
push 0x47fb24
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], edi
call fcn.0041cffc
push 9
lea ecx, [ebp - 0xc]
call fcn.0041d146
cmp dword [ebp - 0xa4], edi
mov esi, str._SP_d
jne 0x4216f1
push edi
push str.Windows_32s
lea ecx, [ebp - 0xc]
call fcn.0041d195
jmp 0x42183c
cmp dword [ebp - 0xa4], 1
jne 0x42175f
cmp dword [ebp - 0xac], 0x5a
je 0x421723
cmp dword [ebp - 0xb0], 4
jne 0x421723
cmp dword [ebp - 0xac], edi
push edi
jne 0x42171c
push str.Windows_95
jmp 0x421729
push str.Windows_98
jmp 0x421729
push edi
push str.Windows_ME
lea ecx, [ebp - 0xc]
call fcn.0041d195
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.0041d5b5
add esp, 0x14
jmp 0x42183c
cmp dword [ebp - 0xa4], 2
jne 0x42183c
cmp dword [ebp - 0xb0], 5
jne 0x4217a5
cmp dword [ebp - 0xac], edi
jne 0x421785
push edi
push str.Windows_2000
jmp 0x421794
cmp dword [ebp - 0xac], 1
push edi
jne 0x42179e
push str.Windows_XP
lea ecx, [ebp - 0xc]
call fcn.0041d195
jmp 0x4217c2
push str.Windows_2003
jmp 0x421794
push dword [ebp - 0xac]
lea eax, [ebp - 0xc]
push dword [ebp - 0xb0]
push str.Windows_NT__d._d
push eax
call fcn.0041d5b5
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 0x42183c
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 0x42181b
mov eax, dword [ebp - 0x14]
cmp ax, 0xff
mov dword [ebp - 0x10], eax
jbe 0x42181b
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 0x42183c
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041d5b5
add esp, 0xc
cmp dword [0x47f218], edi
push edi
jne 0x42184c
push 0x42eaa4
jmp 0x421851
push str._tWin
lea ecx, [ebp - 0xc]
call fcn.0041d195
mov al, byte [0x47f218]
test al, 1
je 0x42187d
cmp dword [0x47f21c], 0x3e8
push edi
jbe 0x421876
push str.95__OSR2__
jmp 0x4218a6
push 0x42ea8c
jmp 0x4218a6
test al, 2
je 0x42189c
cmp dword [0x47f21c], 0x8ad
push edi
jbe 0x421895
push str.98_SE_
jmp 0x4218a6
push 0x42ea80
jmp 0x4218a6
test al, 8
je 0x4218ae
push edi
push 0x42ea7c
lea ecx, [ebp - 0xc]
call fcn.0041d195
test byte [0x47f218], 4
je 0x42193e
cmp dword [0x47f220], 5
jne 0x4218ea
mov eax, dword [0x47f224]
cmp eax, edi
jne 0x4218dd
push edi
push str.2000
lea ecx, [ebp - 0xc]
call fcn.0041d195
jmp 0x421919
cmp eax, 1
jne 0x421919
push edi
push 0x42ea70
jmp 0x4218d3
push edi
push 0x42ea6c
lea ecx, [ebp - 0xc]
call fcn.0041d195
mov eax, dword [0x47f220]
cmp eax, edi
je 0x421919
push dword [0x47f224]
push eax
lea eax, [ebp - 0xc]
push str.__d._d
push eax
call fcn.0041d5b5
add esp, 0x10
mov eax, dword [0x47f228]
cmp eax, edi
jbe 0x421930
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041d5b5
add esp, 0xc
push edi
push 0x42ea60
lea ecx, [ebp - 0xc]
call fcn.0041d195
mov eax, dword [ebp - 0xc]
push ebx
dec eax
push 1
push eax
lea ecx, [ebp - 0xc]
call fcn.0041d4f7
push 9
lea ecx, [ebp - 0xc]
call fcn.0041d146
mov eax, dword [0x47f218]
xor bl, bl
cmp dword [ebp - 0xa4], 1
jne 0x4219a9
mov edx, dword [ebp - 0xa8]
mov ecx, dword [0x47f21c]
test al, 1
je 0x421988
mov esi, edx
and esi, 0xffff
cmp esi, ecx
jb 0x421988
inc bl
xor edi, edi
test al, 2
je 0x4219f1
and edx, 0xffff
cmp edx, 0x7ce
jb 0x4219f1
cmp edx, ecx
jb 0x4219f1
cmp dword [ebp - 0xac], 1
jb 0x4219f1
mov bl, 1
cmp dword [ebp - 0xa4], 2
jne 0x4219f1
mov ecx, dword [0x47f220]
mov edx, eax
and edx, 4
je 0x4219c7
cmp dword [ebp - 0xb0], ecx
ja 0x4219ef
cmp edx, edi
je 0x4219f1
cmp dword [ebp - 0xb0], ecx
jne 0x4219f1
mov ecx, dword [0x47f224]
cmp dword [ebp - 0xac], ecx
ja 0x4219ef
jne 0x4219f1
movzx ecx, word [ebp - 0x10]
cmp ecx, dword [0x47f228]
jb 0x4219f1
mov bl, 1
cmp eax, edi
jne 0x4219f7
mov bl, 1
test bl, bl
pop ebx
je 0x421a03
push 0x47fa04
jmp 0x421a0e
inc dword [0x47f3c0]
push 0x47f9ec
lea ecx, [ebp - 0xc]
call fcn.0041d213
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
push eax
call fcn.0042015f
lea ecx, [ebp - 0xc]
call fcn.0041d05e
pop edi
pop esi
leave
ret