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

Disassembly:
push 0x1d0
mov eax, 0x4c7319
call fcn.0044d7c5
mov eax, dword [0x504da0]
xor ebx, ebx
cmp eax, ebx
jne 0x41a37f
mov esi, 0x11c
push esi
lea eax, [ebp - 0x1cc]
push ebx
xor edi, edi
push eax
mov dword [ebp - 0x1d0], ebx
inc edi
call fcn.0044d1b0
add esp, 0xc
lea eax, [ebp - 0x1cc]
mov dword [ebp - 0x1cc], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, ebx
jne 0x41a0d3
lea eax, [ebp - 0x1cc]
push eax
mov dword [ebp - 0x1cc], 0x114
call esi
test eax, eax
jne 0x41a0f3
inc eax
jmp 0x41a37f
cmp byte [ebp - 0xb2], 1
jne 0x41a0e7
mov dword [ebp - 0x1d0], ebx
jmp 0x41a190
cmp byte [ebp - 0xb2], 3
jmp 0x41a184
lea eax, [ebp - 0x1d4]
push eax
push 1
push ebx
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0xb0]
push eax
push ebx
push ebx
push str.ProductType
push dword [ebp - 0x1d4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x1d4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp - 0xb0]
push eax
push str.WINNT
call esi
test eax, eax
jne 0x41a158
mov dword [ebp - 0x1d0], ebx
lea eax, [ebp - 0xb0]
push eax
push str.LANMANNT
call esi
test eax, eax
jne 0x41a174
mov dword [ebp - 0x1d0], 1
lea eax, [ebp - 0xb0]
push eax
push str.SERVERNT
call esi
test eax, eax
jne 0x41a190
mov dword [ebp - 0x1d0], 1
mov eax, dword [ebp - 0x1bc]
sub eax, ebx
je 0x41a374
dec eax
je 0x41a345
dec eax
jne 0x41a377
mov ecx, dword [ebp - 0x1c8]
cmp ecx, 4
ja 0x41a1be
push 6
jmp 0x41a376
cmp ecx, 5
jne 0x41a1f6
cmp dword [ebp - 0x1c4], ebx
jne 0x41a1d2
push 0xb
jmp 0x41a376
cmp dword [ebp - 0x1c4], 1
jne 0x41a1e2
push 0xd
jmp 0x41a376
cmp dword [ebp - 0x1c4], 2
jne 0x41a341
push 0xf
jmp 0x41a376
mov eax, dword [ebp - 0x1c4]
cmp ecx, 6
jne 0x41a334
cmp eax, ebx
jne 0x41a21d
xor eax, eax
cmp dword [ebp - 0x1d0], ebx
setne al
lea edi, [eax + eax + 0x13]
jmp 0x41a377
cmp eax, 1
jne 0x41a236
xor eax, eax
cmp dword [ebp - 0x1d0], ebx
setne al
lea edi, [eax + eax + 0x17]
jmp 0x41a377
push 2
pop ebx
cmp eax, ebx
jne 0x41a324
xor eax, eax
cmp dword [ebp - 0x1d0], eax
push ecx
setne al
mov ecx, esp
mov dword [ebp - 0x1d8], esp
push str.CurrentVersion
lea edi, [eax + 0x1b]
call fcn.0041217e
and dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1d4], esp
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push esi
call fcn.0041217e
push ecx
mov ecx, esp
mov dword [ebp - 0x1dc], esp
push str.HKEY_LOCAL_MACHINE
mov byte [ebp - 4], 1
call fcn.0041217e
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1d0]
push eax
call fcn.00418222
add esp, 0x10
push 0x4d0b74
lea ecx, [ebp - 0x1d0]
mov dword [ebp - 4], ebx
call fcn.0040fd18
test eax, eax
jne 0x41a2bf
push 0x1e
jmp 0x41a2d5
push 0x4d0b6c
lea ecx, [ebp - 0x1d0]
call fcn.0040fd18
test eax, eax
jne 0x41a2d6
push 0x1f
pop edi
push ecx
mov ecx, esp
mov dword [ebp - 0x1dc], esp
push str.CurrentMajorVersionNumber
call fcn.0041217e
push ecx
mov ecx, esp
mov dword [ebp - 0x1d8], esp
push esi
mov byte [ebp - 4], 3
call fcn.0041217e
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], bl
call fcn.00417188
add esp, 0xc
cmp eax, 0xa
jne 0x41a314
push 0x1f
pop edi
mov ecx, dword [ebp - 0x1d0]
add ecx, 0xfffffff0
call fcn.0040f083
jmp 0x41a377
cmp eax, 3
jne 0x41a32d
push 0x1e
jmp 0x41a376
cmp eax, 4
je 0x41a33d
xor ebx, ebx
cmp ecx, 0xa
jne 0x41a341
cmp eax, ebx
jne 0x41a341
push 0x1f
jmp 0x41a376
push 0x20
jmp 0x41a376
cmp dword [ebp - 0x1c8], 4
jne 0x41a377
cmp dword [ebp - 0x1c4], ebx
jne 0x41a35a
push 3
jmp 0x41a376
cmp dword [ebp - 0x1c4], 0xa
jne 0x41a367
push 8
jmp 0x41a376
cmp dword [ebp - 0x1c4], 0x5a
jne 0x41a377
push 0xa
jmp 0x41a376
push 2
pop edi
mov dword [0x504da0], edi
mov eax, edi
call fcn.0044d848
ret