Function at 0x423f74
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.004282e0
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 0x423fbc
inc dword [0x482748]
jmp 0x424372
push 0x482ef4
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], edi
call fcn.0041f001
push 9
lea ecx, [ebp - 0xc]
call fcn.0041f1b6
cmp dword [ebp - 0xa4], edi
mov esi, str._SP_d
jne 0x423ff6
push edi
push str.Windows_32s
lea ecx, [ebp - 0xc]
call fcn.0041f205
jmp 0x424167
cmp dword [ebp - 0xa4], 1
jne 0x424064
cmp dword [ebp - 0xac], 0x5a
je 0x424028
cmp dword [ebp - 0xb0], 4
jne 0x424028
cmp dword [ebp - 0xac], edi
push edi
jne 0x424021
push str.Windows_95
jmp 0x42402e
push str.Windows_98
jmp 0x42402e
push edi
push str.Windows_ME
lea ecx, [ebp - 0xc]
call fcn.0041f205
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.0041f625
add esp, 0x14
jmp 0x424167
cmp dword [ebp - 0xa4], 2
jne 0x424167
cmp dword [ebp - 0xb0], 5
jne 0x4240aa
cmp dword [ebp - 0xac], edi
jne 0x42408a
push edi
push str.Windows_2000
jmp 0x424099
cmp dword [ebp - 0xac], 1
push edi
jne 0x4240a3
push str.Windows_XP
lea ecx, [ebp - 0xc]
call fcn.0041f205
jmp 0x4240e7
push str.Windows_2003
jmp 0x424099
cmp dword [ebp - 0xb0], 6
jne 0x4240ca
cmp dword [ebp - 0xac], edi
push edi
jne 0x4240c3
push str.Windows_Vista
jmp 0x424099
push str.Windows_7
jmp 0x424099
push dword [ebp - 0xac]
lea eax, [ebp - 0xc]
push dword [ebp - 0xb0]
push str.Windows_NT__d._d
push eax
call fcn.0041f625
add esp, 0x10
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edi
push eax
mov eax, dword [0x483760]
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 0x424167
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 0x424146
mov eax, dword [ebp - 0x14]
cmp ax, 0xff
mov dword [ebp - 0x10], eax
jbe 0x424146
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 0x424167
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041f625
add esp, 0xc
cmp dword [0x482598], edi
push edi
jne 0x424177
push 0x431df4
jmp 0x42417c
push str._tWin
lea ecx, [ebp - 0xc]
call fcn.0041f205
mov al, byte [0x482598]
test al, 1
je 0x4241a8
cmp dword [0x48259c], 0x3e8
push edi
jbe 0x4241a1
push str.95__OSR2__
jmp 0x4241d1
push 0x431ddc
jmp 0x4241d1
test al, 2
je 0x4241c7
cmp dword [0x48259c], 0x8ad
push edi
jbe 0x4241c0
push str.98_SE_
jmp 0x4241d1
push 0x431dd0
jmp 0x4241d1
test al, 8
je 0x4241d9
push edi
push 0x431dcc
lea ecx, [ebp - 0xc]
call fcn.0041f205
test byte [0x482598], 4
je 0x424286
mov eax, dword [0x4825a0]
cmp eax, 5
jne 0x424216
mov eax, dword [0x4825a4]
cmp eax, edi
jne 0x424209
push edi
push str.2000
lea ecx, [ebp - 0xc]
call fcn.0041f205
jmp 0x424261
cmp eax, 1
jne 0x424261
push edi
push 0x431dc0
jmp 0x4241ff
cmp eax, 6
jne 0x424232
cmp dword [0x4825a4], edi
push edi
jne 0x42422b
push str.Vista
jmp 0x4241ff
push 0x431db4
jmp 0x4241ff
push edi
push 0x431db0
lea ecx, [ebp - 0xc]
call fcn.0041f205
mov eax, dword [0x4825a0]
cmp eax, edi
je 0x424261
push dword [0x4825a4]
push eax
lea eax, [ebp - 0xc]
push str.__d._d
push eax
call fcn.0041f625
add esp, 0x10
mov eax, dword [0x4825a8]
cmp eax, edi
jbe 0x424278
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041f625
add esp, 0xc
push edi
push 0x431da4
lea ecx, [ebp - 0xc]
call fcn.0041f205
mov eax, dword [ebp - 0xc]
push ebx
dec eax
push 1
push eax
lea ecx, [ebp - 0xc]
call fcn.0041f567
push 9
lea ecx, [ebp - 0xc]
call fcn.0041f1b6
mov eax, dword [0x482598]
xor bl, bl
cmp dword [ebp - 0xa4], 1
jne 0x4242f1
mov edx, dword [ebp - 0xa8]
mov ecx, dword [0x48259c]
test al, 1
je 0x4242d0
mov esi, edx
and esi, 0xffff
cmp esi, ecx
jb 0x4242d0
inc bl
xor edi, edi
test al, 2
je 0x424339
and edx, 0xffff
cmp edx, 0x7ce
jb 0x424339
cmp edx, ecx
jb 0x424339
cmp dword [ebp - 0xac], 1
jb 0x424339
mov bl, 1
cmp dword [ebp - 0xa4], 2
jne 0x424339
mov ecx, dword [0x4825a0]
mov edx, eax
and edx, 4
je 0x42430f
cmp dword [ebp - 0xb0], ecx
ja 0x424337
cmp edx, edi
je 0x424339
cmp dword [ebp - 0xb0], ecx
jne 0x424339
mov ecx, dword [0x4825a4]
cmp dword [ebp - 0xac], ecx
ja 0x424337
jne 0x424339
movzx ecx, word [ebp - 0x10]
cmp ecx, dword [0x4825a8]
jb 0x424339
mov bl, 1
cmp eax, edi
jne 0x42433f
mov bl, 1
test bl, bl
pop ebx
je 0x42434b
push 0x482dd4
jmp 0x424356
inc dword [0x482740]
push 0x482dbc
lea ecx, [ebp - 0xc]
call fcn.0041f283
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
push eax
call fcn.00422668
lea ecx, [ebp - 0xc]
call fcn.0041f063
pop edi
pop esi
leave
ret