Function at 0x4203d5
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.00424500
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 0x42041d
inc dword [0x47e2c8]
jmp 0x420790
push 0x47ea14
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], edi
call fcn.0041be99
push 9
lea ecx, [ebp - 0xc]
call fcn.0041bff8
cmp dword [ebp - 0xa4], edi
mov esi, str._SP_d
jne 0x420457
push edi
push str.Windows_32s
lea ecx, [ebp - 0xc]
call fcn.0041c047
jmp 0x4205a2
cmp dword [ebp - 0xa4], 1
jne 0x4204c5
cmp dword [ebp - 0xac], 0x5a
je 0x420489
cmp dword [ebp - 0xb0], 4
jne 0x420489
cmp dword [ebp - 0xac], edi
push edi
jne 0x420482
push str.Windows_95
jmp 0x42048f
push str.Windows_98
jmp 0x42048f
push edi
push str.Windows_ME
lea ecx, [ebp - 0xc]
call fcn.0041c047
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.0041c467
add esp, 0x14
jmp 0x4205a2
cmp dword [ebp - 0xa4], 2
jne 0x4205a2
cmp dword [ebp - 0xb0], 5
jne 0x42050b
cmp dword [ebp - 0xac], edi
jne 0x4204eb
push edi
push str.Windows_2000
jmp 0x4204fa
cmp dword [ebp - 0xac], 1
push edi
jne 0x420504
push str.Windows_XP
lea ecx, [ebp - 0xc]
call fcn.0041c047
jmp 0x420528
push str.Windows_2003
jmp 0x4204fa
push dword [ebp - 0xac]
lea eax, [ebp - 0xc]
push dword [ebp - 0xb0]
push str.Windows_NT__d._d
push eax
call fcn.0041c467
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 0x4205a2
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 0x420581
mov eax, dword [ebp - 0x14]
cmp ax, 0xff
mov dword [ebp - 0x10], eax
jbe 0x420581
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 0x4205a2
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041c467
add esp, 0xc
cmp dword [0x47e118], edi
push edi
jne 0x4205b2
push 0x42d99c
jmp 0x4205b7
push str._tWin
lea ecx, [ebp - 0xc]
call fcn.0041c047
mov al, byte [0x47e118]
test al, 1
je 0x4205e3
cmp dword [0x47e11c], 0x3e8
push edi
jbe 0x4205dc
push str.95__OSR2__
jmp 0x42060c
push 0x42d984
jmp 0x42060c
test al, 2
je 0x420602
cmp dword [0x47e11c], 0x8ad
push edi
jbe 0x4205fb
push str.98_SE_
jmp 0x42060c
push 0x42d978
jmp 0x42060c
test al, 8
je 0x420614
push edi
push 0x42d974
lea ecx, [ebp - 0xc]
call fcn.0041c047
test byte [0x47e118], 4
je 0x4206a4
cmp dword [0x47e120], 5
jne 0x420650
mov eax, dword [0x47e124]
cmp eax, edi
jne 0x420643
push edi
push str.2000
lea ecx, [ebp - 0xc]
call fcn.0041c047
jmp 0x42067f
cmp eax, 1
jne 0x42067f
push edi
push 0x42d968
jmp 0x420639
push edi
push 0x42d964
lea ecx, [ebp - 0xc]
call fcn.0041c047
mov eax, dword [0x47e120]
cmp eax, edi
je 0x42067f
push dword [0x47e124]
push eax
lea eax, [ebp - 0xc]
push str.__d._d
push eax
call fcn.0041c467
add esp, 0x10
mov eax, dword [0x47e128]
cmp eax, edi
jbe 0x420696
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041c467
add esp, 0xc
push edi
push 0x42d958
lea ecx, [ebp - 0xc]
call fcn.0041c047
mov eax, dword [ebp - 0xc]
push ebx
dec eax
push 1
push eax
lea ecx, [ebp - 0xc]
call fcn.0041c3a9
push 9
lea ecx, [ebp - 0xc]
call fcn.0041bff8
mov eax, dword [0x47e118]
xor bl, bl
cmp dword [ebp - 0xa4], 1
jne 0x42070f
mov edx, dword [ebp - 0xa8]
mov ecx, dword [0x47e11c]
test al, 1
je 0x4206ee
mov esi, edx
and esi, 0xffff
cmp esi, ecx
jb 0x4206ee
inc bl
xor edi, edi
test al, 2
je 0x420757
and edx, 0xffff
cmp edx, 0x7ce
jb 0x420757
cmp edx, ecx
jb 0x420757
cmp dword [ebp - 0xac], 1
jb 0x420757
mov bl, 1
cmp dword [ebp - 0xa4], 2
jne 0x420757
mov ecx, dword [0x47e120]
mov edx, eax
and edx, 4
je 0x42072d
cmp dword [ebp - 0xb0], ecx
ja 0x420755
cmp edx, edi
je 0x420757
cmp dword [ebp - 0xb0], ecx
jne 0x420757
mov ecx, dword [0x47e124]
cmp dword [ebp - 0xac], ecx
ja 0x420755
jne 0x420757
movzx ecx, word [ebp - 0x10]
cmp ecx, dword [0x47e128]
jb 0x420757
mov bl, 1
cmp eax, edi
jne 0x42075d
mov bl, 1
test bl, bl
pop ebx
je 0x420769
push 0x47e8f4
jmp 0x420774
inc dword [0x47e2c0]
push 0x47e8dc
lea ecx, [ebp - 0xc]
call fcn.0041c0c5
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
push eax
call fcn.0041eec5
lea ecx, [ebp - 0xc]
call fcn.0041befb
pop edi
pop esi
leave
ret