Function at 0x422d46
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.00426f90
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 0x422d8e
inc dword [0x481390]
jmp 0x423101
push 0x481b34
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], edi
call fcn.0041e29b
push 9
lea ecx, [ebp - 0xc]
call fcn.0041e3fa
cmp dword [ebp - 0xa4], edi
mov esi, str._SP_d
jne 0x422dc8
push edi
push str.Windows_32s
lea ecx, [ebp - 0xc]
call fcn.0041e449
jmp 0x422f13
cmp dword [ebp - 0xa4], 1
jne 0x422e36
cmp dword [ebp - 0xac], 0x5a
je 0x422dfa
cmp dword [ebp - 0xb0], 4
jne 0x422dfa
cmp dword [ebp - 0xac], edi
push edi
jne 0x422df3
push str.Windows_95
jmp 0x422e00
push str.Windows_98
jmp 0x422e00
push edi
push str.Windows_ME
lea ecx, [ebp - 0xc]
call fcn.0041e449
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.0041e869
add esp, 0x14
jmp 0x422f13
cmp dword [ebp - 0xa4], 2
jne 0x422f13
cmp dword [ebp - 0xb0], 5
jne 0x422e7c
cmp dword [ebp - 0xac], edi
jne 0x422e5c
push edi
push str.Windows_2000
jmp 0x422e6b
cmp dword [ebp - 0xac], 1
push edi
jne 0x422e75
push str.Windows_XP
lea ecx, [ebp - 0xc]
call fcn.0041e449
jmp 0x422e99
push str.Windows_2003
jmp 0x422e6b
push dword [ebp - 0xac]
lea eax, [ebp - 0xc]
push dword [ebp - 0xb0]
push str.Windows_NT__d._d
push eax
call fcn.0041e869
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 0x422f13
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 0x422ef2
mov eax, dword [ebp - 0x14]
cmp ax, 0xff
mov dword [ebp - 0x10], eax
jbe 0x422ef2
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 0x422f13
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041e869
add esp, 0xc
cmp dword [0x4811e0], edi
push edi
jne 0x422f23
push 0x430a5c
jmp 0x422f28
push str._tWin
lea ecx, [ebp - 0xc]
call fcn.0041e449
mov al, byte [0x4811e0]
test al, 1
je 0x422f54
cmp dword [0x4811e4], 0x3e8
push edi
jbe 0x422f4d
push str.95__OSR2__
jmp 0x422f7d
push 0x430a44
jmp 0x422f7d
test al, 2
je 0x422f73
cmp dword [0x4811e4], 0x8ad
push edi
jbe 0x422f6c
push str.98_SE_
jmp 0x422f7d
push 0x430a38
jmp 0x422f7d
test al, 8
je 0x422f85
push edi
push 0x430a34
lea ecx, [ebp - 0xc]
call fcn.0041e449
test byte [0x4811e0], 4
je 0x423015
cmp dword [0x4811e8], 5
jne 0x422fc1
mov eax, dword [0x4811ec]
cmp eax, edi
jne 0x422fb4
push edi
push str.2000
lea ecx, [ebp - 0xc]
call fcn.0041e449
jmp 0x422ff0
cmp eax, 1
jne 0x422ff0
push edi
push 0x430a28
jmp 0x422faa
push edi
push 0x430a24
lea ecx, [ebp - 0xc]
call fcn.0041e449
mov eax, dword [0x4811e8]
cmp eax, edi
je 0x422ff0
push dword [0x4811ec]
push eax
lea eax, [ebp - 0xc]
push str.__d._d
push eax
call fcn.0041e869
add esp, 0x10
mov eax, dword [0x4811f0]
cmp eax, edi
jbe 0x423007
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041e869
add esp, 0xc
push edi
push 0x430a18
lea ecx, [ebp - 0xc]
call fcn.0041e449
mov eax, dword [ebp - 0xc]
push ebx
dec eax
push 1
push eax
lea ecx, [ebp - 0xc]
call fcn.0041e7ab
push 9
lea ecx, [ebp - 0xc]
call fcn.0041e3fa
mov eax, dword [0x4811e0]
xor bl, bl
cmp dword [ebp - 0xa4], 1
jne 0x423080
mov edx, dword [ebp - 0xa8]
mov ecx, dword [0x4811e4]
test al, 1
je 0x42305f
mov esi, edx
and esi, 0xffff
cmp esi, ecx
jb 0x42305f
inc bl
xor edi, edi
test al, 2
je 0x4230c8
and edx, 0xffff
cmp edx, 0x7ce
jb 0x4230c8
cmp edx, ecx
jb 0x4230c8
cmp dword [ebp - 0xac], 1
jb 0x4230c8
mov bl, 1
cmp dword [ebp - 0xa4], 2
jne 0x4230c8
mov ecx, dword [0x4811e8]
mov edx, eax
and edx, 4
je 0x42309e
cmp dword [ebp - 0xb0], ecx
ja 0x4230c6
cmp edx, edi
je 0x4230c8
cmp dword [ebp - 0xb0], ecx
jne 0x4230c8
mov ecx, dword [0x4811ec]
cmp dword [ebp - 0xac], ecx
ja 0x4230c6
jne 0x4230c8
movzx ecx, word [ebp - 0x10]
cmp ecx, dword [0x4811f0]
jb 0x4230c8
mov bl, 1
cmp eax, edi
jne 0x4230ce
mov bl, 1
test bl, bl
pop ebx
je 0x4230da
push 0x481a14
jmp 0x4230e5
inc dword [0x481388]
push 0x4819fc
lea ecx, [ebp - 0xc]
call fcn.0041e4c7
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
push eax
call fcn.00421858
lea ecx, [ebp - 0xc]
call fcn.0041e2fd
pop edi
pop esi
leave
ret