Function at 0x420e5e
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.00425010
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 0x420ea6
inc dword [0x47f338]
jmp 0x421219
push 0x47fa84
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], edi
call fcn.0041c87f
push 9
lea ecx, [ebp - 0xc]
call fcn.0041c9de
cmp dword [ebp - 0xa4], edi
mov esi, str._SP_d
jne 0x420ee0
push edi
push str.Windows_32s
lea ecx, [ebp - 0xc]
call fcn.0041ca2d
jmp 0x42102b
cmp dword [ebp - 0xa4], 1
jne 0x420f4e
cmp dword [ebp - 0xac], 0x5a
je 0x420f12
cmp dword [ebp - 0xb0], 4
jne 0x420f12
cmp dword [ebp - 0xac], edi
push edi
jne 0x420f0b
push str.Windows_95
jmp 0x420f18
push str.Windows_98
jmp 0x420f18
push edi
push str.Windows_ME
lea ecx, [ebp - 0xc]
call fcn.0041ca2d
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.0041ce4d
add esp, 0x14
jmp 0x42102b
cmp dword [ebp - 0xa4], 2
jne 0x42102b
cmp dword [ebp - 0xb0], 5
jne 0x420f94
cmp dword [ebp - 0xac], edi
jne 0x420f74
push edi
push str.Windows_2000
jmp 0x420f83
cmp dword [ebp - 0xac], 1
push edi
jne 0x420f8d
push str.Windows_XP
lea ecx, [ebp - 0xc]
call fcn.0041ca2d
jmp 0x420fb1
push str.Windows_2003
jmp 0x420f83
push dword [ebp - 0xac]
lea eax, [ebp - 0xc]
push dword [ebp - 0xb0]
push str.Windows_NT__d._d
push eax
call fcn.0041ce4d
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 0x42102b
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 0x42100a
mov eax, dword [ebp - 0x14]
cmp ax, 0xff
mov dword [ebp - 0x10], eax
jbe 0x42100a
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 0x42102b
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041ce4d
add esp, 0xc
cmp dword [0x47f188], edi
push edi
jne 0x42103b
push 0x42ea14
jmp 0x421040
push str._tWin
lea ecx, [ebp - 0xc]
call fcn.0041ca2d
mov al, byte [0x47f188]
test al, 1
je 0x42106c
cmp dword [0x47f18c], 0x3e8
push edi
jbe 0x421065
push str.95__OSR2__
jmp 0x421095
push 0x42e9fc
jmp 0x421095
test al, 2
je 0x42108b
cmp dword [0x47f18c], 0x8ad
push edi
jbe 0x421084
push str.98_SE_
jmp 0x421095
push 0x42e9f0
jmp 0x421095
test al, 8
je 0x42109d
push edi
push 0x42e9ec
lea ecx, [ebp - 0xc]
call fcn.0041ca2d
test byte [0x47f188], 4
je 0x42112d
cmp dword [0x47f190], 5
jne 0x4210d9
mov eax, dword [0x47f194]
cmp eax, edi
jne 0x4210cc
push edi
push str.2000
lea ecx, [ebp - 0xc]
call fcn.0041ca2d
jmp 0x421108
cmp eax, 1
jne 0x421108
push edi
push 0x42e9e0
jmp 0x4210c2
push edi
push 0x42e9dc
lea ecx, [ebp - 0xc]
call fcn.0041ca2d
mov eax, dword [0x47f190]
cmp eax, edi
je 0x421108
push dword [0x47f194]
push eax
lea eax, [ebp - 0xc]
push str.__d._d
push eax
call fcn.0041ce4d
add esp, 0x10
mov eax, dword [0x47f198]
cmp eax, edi
jbe 0x42111f
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041ce4d
add esp, 0xc
push edi
push 0x42e9d0
lea ecx, [ebp - 0xc]
call fcn.0041ca2d
mov eax, dword [ebp - 0xc]
push ebx
dec eax
push 1
push eax
lea ecx, [ebp - 0xc]
call fcn.0041cd8f
push 9
lea ecx, [ebp - 0xc]
call fcn.0041c9de
mov eax, dword [0x47f188]
xor bl, bl
cmp dword [ebp - 0xa4], 1
jne 0x421198
mov edx, dword [ebp - 0xa8]
mov ecx, dword [0x47f18c]
test al, 1
je 0x421177
mov esi, edx
and esi, 0xffff
cmp esi, ecx
jb 0x421177
inc bl
xor edi, edi
test al, 2
je 0x4211e0
and edx, 0xffff
cmp edx, 0x7ce
jb 0x4211e0
cmp edx, ecx
jb 0x4211e0
cmp dword [ebp - 0xac], 1
jb 0x4211e0
mov bl, 1
cmp dword [ebp - 0xa4], 2
jne 0x4211e0
mov ecx, dword [0x47f190]
mov edx, eax
and edx, 4
je 0x4211b6
cmp dword [ebp - 0xb0], ecx
ja 0x4211de
cmp edx, edi
je 0x4211e0
cmp dword [ebp - 0xb0], ecx
jne 0x4211e0
mov ecx, dword [0x47f194]
cmp dword [ebp - 0xac], ecx
ja 0x4211de
jne 0x4211e0
movzx ecx, word [ebp - 0x10]
cmp ecx, dword [0x47f198]
jb 0x4211e0
mov bl, 1
cmp eax, edi
jne 0x4211e6
mov bl, 1
test bl, bl
pop ebx
je 0x4211f2
push 0x47f964
jmp 0x4211fd
inc dword [0x47f330]
push 0x47f94c
lea ecx, [ebp - 0xc]
call fcn.0041caab
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
push eax
call fcn.0041f94e
lea ecx, [ebp - 0xc]
call fcn.0041c8e1
pop edi
pop esi
leave
ret