Function at 0x414100
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427136
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x436024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x1f8], esi
mov dword [ebp - 0x1fc], eax
mov dword [ebp - 0x1f8], ebx
lea ecx, [ebp - 0x1f4]
push ecx
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1f4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x414207
mov ebx, dword [ebp - 0x1f4]
push 0xc8
lea edx, [ebp - 0xda]
push esi
push edx
mov dword [ebp - 0x1f8], ebx
mov word [ebp - 0xdc], si
call fcn.00425b9e
add esp, 0xc
push str.ProductName
lea eax, [ebp - 0x1f8]
push eax
lea edi, [ebp - 0x1f4]
lea esi, [ebp - 0xdc]
mov dword [ebp - 0x1f4], 0x64
call fcn.00415e00
test ebx, ebx
je 0x4141d7
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x1f8], ebx
cmp word [ebp - 0xdc], 0
je 0x414205
mov esi, dword [ebp - 0x1fc]
push esi
lea ecx, [ebp - 0xdc]
call fcn.00405e20
test ebx, ebx
je 0x4141fe
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4143c9
xor esi, esi
mov edx, dword [0x4362a0]
mov eax, dword [edx + 0xc]
mov ecx, 0x4362a0
call eax
add eax, 0x10
mov dword [ebp - 0x1f4], eax
push pe_nt_image_headers32
lea ecx, [ebp - 0x1ec]
push esi
mov byte [ebp - 4], 1
push ecx
mov dword [ebp - 0x1f0], 0x114
call fcn.00425b9e
add esp, 0xc
lea edx, [ebp - 0x1f0]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x1e0]
sub eax, esi
je 0x414374
sub eax, 1
je 0x4142ee
sub eax, 1
jne 0x414384
mov eax, dword [ebp - 0x1ec]
cmp eax, 4
ja 0x414285
mov edx, str.Microsoft_Windows_NT
jmp 0x414379
cmp eax, 5
jne 0x4142bc
mov eax, dword [ebp - 0x1e8]
cmp eax, esi
jne 0x41429e
mov edx, str.Microsoft_Windows_2000
jmp 0x414379
cmp eax, 1
jne 0x4142ad
mov edx, str.Microsoft_Windows_XP
jmp 0x414379
cmp eax, 2
jne 0x4142e4
mov edx, str.Microsoft_Windows_Server_2003
jmp 0x414379
cmp eax, 6
jne 0x4142e4
mov eax, dword [ebp - 0x1e8]
cmp eax, esi
jne 0x4142d5
mov edx, str.Microsoft_Windows_Vista
jmp 0x414379
cmp eax, 1
jne 0x4142e4
mov edx, str.Microsoft_Windows_Longhorn_Server
jmp 0x414379
mov edx, str.Microsoft_Windows_Vista_Later
jmp 0x414379
cmp dword [ebp - 0x1ec], 4
jne 0x41436d
mov eax, dword [ebp - 0x1e8]
cmp eax, esi
jne 0x414336
mov edx, str.Microsoft_Windows_95
lea edi, [ebp - 0x1f4]
call fcn.00401640
mov ax, word [ebp - 0x1da]
cmp ax, 0x43
je 0x414324
cmp ax, 0x42
jne 0x414384
mov edx, str._OSR2
lea edi, [ebp - 0x1f4]
call fcn.00405ec0
jmp 0x414384
cmp eax, 0xa
jne 0x414361
mov edx, str.Microsoft_Windows_98
lea edi, [ebp - 0x1f4]
call fcn.00401640
cmp word [ebp - 0x1da], 0x41
jne 0x414384
mov edx, 0x42fa9c
call fcn.00405ec0
jmp 0x414384
cmp eax, 0x5a
jne 0x41436d
mov edx, str.Microsoft_Windows_Me
jmp 0x414379
mov edx, str.Microsoft_Windows_Me_later
jmp 0x414379
mov edx, str.Microsoft_Win32s
lea edi, [ebp - 0x1f4]
call fcn.00401640
mov esi, dword [ebp - 0x1f4]
add esi, 0xfffffff0
mov eax, esi
call fcn.00406e20
mov edi, dword [ebp - 0x1fc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4143bc
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
test ebx, ebx
je 0x4143c7
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042575e
mov esp, ebp
pop ebp
ret