Function at 0x41ca70
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
mov eax, dword [0x4b93f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4bbfbc]
push ebx
push esi
push edi
test eax, eax
jne 0x41cd36
push 0x11c
xor ebx, ebx
lea edi, [eax + 1]
lea eax, [ebp - 0x1c0]
push ebx
push eax
call fcn.0044c180
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x1c0]
add esp, 0xc
mov dword [ebp - 0x1c0], 0x11c
push eax
call esi
test eax, eax
jne 0x41cb6f
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], 0x114
push eax
call esi
test eax, eax
je 0x41cd34
lea eax, [ebp - 0x1c4]
push eax
push edi
push ebx
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0xa4]
push eax
push ebx
push ebx
push str.ProductType
push dword [ebp - 0x1c4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x1c4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp - 0xa4]
push eax
push str.WINNT
call esi
lea eax, [ebp - 0xa4]
push eax
push str.LANMANNT
call esi
test eax, eax
mov ecx, edi
lea eax, [ebp - 0xa4]
push eax
push str.SERVERNT
cmove ebx, ecx
call esi
test eax, eax
mov eax, edi
cmove ebx, eax
jmp 0x41cb83
mov al, byte [ebp - 0xa6]
cmp al, 1
jne 0x41cb7d
xor ebx, ebx
jmp 0x41cb83
cmp al, 3
jne 0x41cb83
mov ebx, edi
mov eax, dword [ebp - 0x1b0]
sub eax, 0
je 0x41cd29
sub eax, 1
je 0x41ccfd
sub eax, 1
jne 0x41cd2e
mov eax, dword [ebp - 0x1bc]
cmp eax, 4
ja 0x41cbb9
mov edi, 6
jmp 0x41cd2e
cmp eax, 5
jne 0x41cbee
mov eax, dword [ebp - 0x1b8]
test eax, eax
jne 0x41cbd0
lea edi, [eax + 0xb]
jmp 0x41cd2e
cmp eax, 1
jne 0x41cbdd
lea edi, [eax + 0xc]
jmp 0x41cd2e
cmp eax, 2
jne 0x41cce1
lea edi, [eax + 0xd]
jmp 0x41cd2e
cmp eax, 6
jne 0x41cce8
mov eax, dword [ebp - 0x1b8]
test eax, eax
jne 0x41cc0d
lea edi, [ebx*2 + 0x13]
jmp 0x41cd2e
cmp eax, 1
jne 0x41cc1e
lea edi, [ebx*2 + 0x17]
jmp 0x41cd2e
cmp eax, 2
jne 0x41ccd2
push ecx
mov ecx, esp
push str.CurrentVersion
call fcn.00403710
push ecx
mov ecx, esp
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
call fcn.00403710
push ecx
mov ecx, esp
push str.HKEY_LOCAL_MACHINE
call fcn.00403710
lea eax, [ebp - 0x1c4]
push eax
call fcn.0042c710
lea eax, [ebp - 0x1c4]
push 0x4a4a1c
push eax
call fcn.00409f10
add esp, 0x18
mov esi, 0x1f
test al, al
je 0x41cc7c
lea edi, [esi - 1]
jmp 0x41cc98
lea eax, [ebp - 0x1c4]
push 0x4a4a24
push eax
lea edi, [ebx + 0x1b]
call fcn.00409f10
add esp, 8
test al, al
cmovne edi, esi
push ecx
mov ecx, esp
push str.CurrentMajorVersionNumber
call fcn.00403710
push ecx
mov ecx, esp
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
call fcn.00403710
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0042c910
add esp, 0xc
lea ecx, [ebp - 0x1c4]
cmp eax, 0xa
cmove edi, esi
call fcn.00409060
jmp 0x41cd2e
cmp eax, 3
jne 0x41ccdc
lea edi, [eax + 0x1b]
jmp 0x41cd2e
cmp eax, 4
je 0x41ccf6
mov edi, 0x20
jmp 0x41cd2e
cmp eax, 0xa
jne 0x41cce1
cmp dword [ebp - 0x1b8], 0
jne 0x41cce1
mov edi, 0x1f
jmp 0x41cd2e
cmp dword [ebp - 0x1bc], 4
jne 0x41cd2e
mov eax, dword [ebp - 0x1b8]
test eax, eax
jne 0x41cd15
lea edi, [eax + 3]
jmp 0x41cd2e
cmp eax, 0xa
jne 0x41cd1f
lea edi, [eax - 2]
jmp 0x41cd2e
cmp eax, 0x5a
jne 0x41cd2e
lea edi, [eax - 0x50]
jmp 0x41cd2e
mov edi, 2
mov dword [0x4bbfbc], edi
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004495f3
mov esp, ebp
pop ebp
ret