Function at 0x423247
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.004274e0
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 0x42328f
inc dword [0x4813e0]
jmp 0x423626
push 0x481b8c
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], edi
call fcn.0041e703
push 9
lea ecx, [ebp - 0xc]
call fcn.0041e862
cmp dword [ebp - 0xa4], edi
mov esi, str._SP_d
jne 0x4232c9
push edi
push str.Windows_32s
lea ecx, [ebp - 0xc]
call fcn.0041e8b1
jmp 0x42342b
cmp dword [ebp - 0xa4], 1
jne 0x423337
cmp dword [ebp - 0xac], 0x5a
je 0x4232fb
cmp dword [ebp - 0xb0], 4
jne 0x4232fb
cmp dword [ebp - 0xac], edi
push edi
jne 0x4232f4
push str.Windows_95
jmp 0x423301
push str.Windows_98
jmp 0x423301
push edi
push str.Windows_ME
lea ecx, [ebp - 0xc]
call fcn.0041e8b1
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.0041ecd1
add esp, 0x14
jmp 0x42342b
cmp dword [ebp - 0xa4], 2
jne 0x42342b
cmp dword [ebp - 0xb0], 5
jne 0x42337d
cmp dword [ebp - 0xac], edi
jne 0x42335d
push edi
push str.Windows_2000
jmp 0x42336c
cmp dword [ebp - 0xac], 1
push edi
jne 0x423376
push str.Windows_XP
lea ecx, [ebp - 0xc]
call fcn.0041e8b1
jmp 0x4233ab
push str.Windows_2003
jmp 0x42336c
cmp dword [ebp - 0xb0], 6
jne 0x42338e
push edi
push str.Windows_Vista
jmp 0x42336c
push dword [ebp - 0xac]
lea eax, [ebp - 0xc]
push dword [ebp - 0xb0]
push str.Windows_NT__d._d
push eax
call fcn.0041ecd1
add esp, 0x10
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edi
push eax
mov eax, dword [0x4823f8]
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 0x42342b
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 0x42340a
mov eax, dword [ebp - 0x14]
cmp ax, 0xff
mov dword [ebp - 0x10], eax
jbe 0x42340a
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 0x42342b
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041ecd1
add esp, 0xc
cmp dword [0x481230], edi
push edi
jne 0x42343b
push 0x430aa8
jmp 0x423440
push str._tWin
lea ecx, [ebp - 0xc]
call fcn.0041e8b1
mov al, byte [0x481230]
test al, 1
je 0x42346c
cmp dword [0x481234], 0x3e8
push edi
jbe 0x423465
push str.95__OSR2__
jmp 0x423495
push 0x430a90
jmp 0x423495
test al, 2
je 0x42348b
cmp dword [0x481234], 0x8ad
push edi
jbe 0x423484
push str.98_SE_
jmp 0x423495
push 0x430a84
jmp 0x423495
test al, 8
je 0x42349d
push edi
push 0x430a80
lea ecx, [ebp - 0xc]
call fcn.0041e8b1
test byte [0x481230], 4
je 0x42353a
mov eax, dword [0x481238]
cmp eax, 5
jne 0x4234da
mov eax, dword [0x48123c]
cmp eax, edi
jne 0x4234cd
push edi
push str.2000
lea ecx, [ebp - 0xc]
call fcn.0041e8b1
jmp 0x423515
cmp eax, 1
jne 0x423515
push edi
push 0x430a74
jmp 0x4234c3
cmp eax, 6
push edi
jne 0x4234e7
push str.Vista
jmp 0x4234c3
push 0x430a68
lea ecx, [ebp - 0xc]
call fcn.0041e8b1
mov eax, dword [0x481238]
cmp eax, edi
je 0x423515
push dword [0x48123c]
push eax
lea eax, [ebp - 0xc]
push str.__d._d
push eax
call fcn.0041ecd1
add esp, 0x10
mov eax, dword [0x481240]
cmp eax, edi
jbe 0x42352c
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041ecd1
add esp, 0xc
push edi
push 0x430a5c
lea ecx, [ebp - 0xc]
call fcn.0041e8b1
mov eax, dword [ebp - 0xc]
push ebx
dec eax
push 1
push eax
lea ecx, [ebp - 0xc]
call fcn.0041ec13
push 9
lea ecx, [ebp - 0xc]
call fcn.0041e862
mov eax, dword [0x481230]
xor bl, bl
cmp dword [ebp - 0xa4], 1
jne 0x4235a5
mov edx, dword [ebp - 0xa8]
mov ecx, dword [0x481234]
test al, 1
je 0x423584
mov esi, edx
and esi, 0xffff
cmp esi, ecx
jb 0x423584
inc bl
xor edi, edi
test al, 2
je 0x4235ed
and edx, 0xffff
cmp edx, 0x7ce
jb 0x4235ed
cmp edx, ecx
jb 0x4235ed
cmp dword [ebp - 0xac], 1
jb 0x4235ed
mov bl, 1
cmp dword [ebp - 0xa4], 2
jne 0x4235ed
mov ecx, dword [0x481238]
mov edx, eax
and edx, 4
je 0x4235c3
cmp dword [ebp - 0xb0], ecx
ja 0x4235eb
cmp edx, edi
je 0x4235ed
cmp dword [ebp - 0xb0], ecx
jne 0x4235ed
mov ecx, dword [0x48123c]
cmp dword [ebp - 0xac], ecx
ja 0x4235eb
jne 0x4235ed
movzx ecx, word [ebp - 0x10]
cmp ecx, dword [0x481240]
jb 0x4235ed
mov bl, 1
cmp eax, edi
jne 0x4235f3
mov bl, 1
test bl, bl
pop ebx
je 0x4235ff
push 0x481a6c
jmp 0x42360a
inc dword [0x4813d8]
push 0x481a54
lea ecx, [ebp - 0xc]
call fcn.0041e92f
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
push eax
call fcn.00421d12
lea ecx, [ebp - 0xc]
call fcn.0041e765
pop edi
pop esi
leave
ret