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

Disassembly:
push ebp
sub esp, 0x2e4
lea ebp, [esp - 4]
mov eax, dword [0x4216f0]
xor eax, ebp
mov dword [ebp + 0x2e4], eax
push 0x54
mov eax, 0x41916d
call fcn.0040bc5f
mov eax, dword [ebp + 0x2f0]
mov esi, ecx
lea edi, [esi + 4]
mov ecx, edi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x1c], eax
call fcn.00401cb2
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x8800], ebx
mov dword [esi + 0x8804], ebx
mov dword [esi + 0x8808], ebx
mov dword [esi + 0x880c], ebx
push 0x170
lea eax, [esi + 0x2114]
push ebx
push eax
mov byte [ebp - 4], 4
mov dword [esi + 0x210c], ebx
mov byte [esi + 0x1894], bl
mov byte [esi + 0x1895], bl
mov byte [esi + 0x1896], bl
mov byte [esi + 0x1897], bl
mov byte [esi + 0x1898], bl
mov byte [esi + 0x18a0], bl
mov dword [esi + 0x20e4], ebx
mov dword [esi + 0x20e8], ebx
mov dword [esi + 0x2110], ebx
mov dword [esi + 0x1888], ebx
mov dword [esi + 0x24], ebx
call fcn.0040b470
push 0x84
lea eax, [esi + 0x7520]
push ebx
push eax
call fcn.0040b470
add esp, 0x18
cmp dword [ebp - 0x1c], ebx
je 0x408ceb
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x422d48]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x210c]
push eax
push 0x41a998
push 0x15
push ebx
push 0x41a9d8
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x4093ef
cmp dword [esi + 0x210c], ebx
je 0x4093ef
mov ebx, 0x208
push ebx
lea eax, [esi + 0x75a8]
push 0
push eax
call fcn.0040b470
add esp, 0xc
cmp dword [edi + 0x18], 0x10
jb 0x408d43
mov ecx, dword [edi + 4]
jmp 0x408d46
lea ecx, [edi + 4]
push dword [esi + 0x20]
lea eax, [esi + 0x75a8]
push 0x104
push eax
push 0xbf0
push ecx
call sub.hccutils.DLL_LoadSTRINGW
push ebx
lea eax, [esi + 0x77b0]
push 0
push eax
call fcn.0040b470
add esp, 0x20
cmp dword [edi + 0x18], 0x10
jb 0x408d7d
mov ecx, dword [edi + 4]
jmp 0x408d80
lea ecx, [edi + 4]
push dword [esi + 0x20]
lea eax, [esi + 0x77b0]
push 0x104
push eax
push 0xc00
push ecx
call sub.hccutils.DLL_LoadSTRINGW
push ebx
lea eax, [esi + 0x79b8]
push 0
push eax
call fcn.0040b470
add esp, 0x20
cmp dword [edi + 0x18], 0x10
jb 0x408db7
mov ecx, dword [edi + 4]
jmp 0x408dba
lea ecx, [edi + 4]
push dword [esi + 0x20]
lea eax, [esi + 0x79b8]
push 0x104
push eax
push 0xbff
push ecx
call sub.hccutils.DLL_LoadSTRINGW
push ebx
lea eax, [esi + 0x7bc0]
push 0
push eax
call fcn.0040b470
add esp, 0x20
cmp dword [edi + 0x18], 0x10
jb 0x408df1
mov ecx, dword [edi + 4]
jmp 0x408df4
lea ecx, [edi + 4]
push dword [esi + 0x20]
lea eax, [esi + 0x7bc0]
push 0x104
push eax
push 0xc04
push ecx
call sub.hccutils.DLL_LoadSTRINGW
push 0x800
lea eax, [esi + 0x18a4]
push 0
push eax
call fcn.0040b470
push ebx
lea eax, [esi + 0x7dc8]
push 0
push eax
call fcn.0040b470
add esp, 0x2c
cmp dword [edi + 0x18], 0x10
jb 0x408e3e
mov ecx, dword [edi + 4]
jmp 0x408e41
lea ecx, [edi + 4]
push dword [esi + 0x20]
lea eax, [esi + 0x7dc8]
push 0x104
push eax
push 0x1c16
push ecx
call sub.hccutils.DLL_LoadSTRINGW
push ebx
lea eax, [esi + 0x7fd0]
push 0
push eax
call fcn.0040b470
add esp, 0x20
cmp dword [edi + 0x18], 0x10
jb 0x408e78
mov ecx, dword [edi + 4]
jmp 0x408e7b
lea ecx, [edi + 4]
push dword [esi + 0x20]
lea eax, [esi + 0x7fd0]
push 0x104
push eax
push 0x1c17
push ecx
call sub.hccutils.DLL_LoadSTRINGW
push ebx
lea eax, [esi + 0x81d8]
push 0
push eax
call fcn.0040b470
add esp, 0x20
cmp dword [edi + 0x18], 0x10
jb 0x408eb2
mov ecx, dword [edi + 4]
jmp 0x408eb5
lea ecx, [edi + 4]
push dword [esi + 0x20]
lea eax, [esi + 0x81d8]
push 0x104
push eax
push 0x11ec
push ecx
call sub.hccutils.DLL_LoadSTRINGW
push ebx
lea eax, [esi + 0x83e0]
push 0
push eax
call fcn.0040b470
add esp, 0x20
cmp dword [edi + 0x18], 0x10
jb 0x408eec
mov ecx, dword [edi + 4]
jmp 0x408eef
lea ecx, [edi + 4]
push dword [esi + 0x20]
lea eax, [esi + 0x83e0]
push 0x104
push eax
push 0x11ed
push ecx
call sub.hccutils.DLL_LoadSTRINGW
push ebx
lea eax, [esi + 0x85e8]
push 0
push eax
call fcn.0040b470
add esp, 0x20
cmp dword [edi + 0x18], 0x10
jb 0x408f26
mov edi, dword [edi + 4]
jmp 0x408f29
add edi, 4
push dword [esi + 0x20]
lea eax, [esi + 0x85e8]
push 0x104
push eax
push 0x2532
push edi
call sub.hccutils.DLL_LoadSTRINGW
add esp, 0x14
lea edx, [esi + 0x75a4]
lea edi, [esi + 0x210c]
mov eax, dword [edi]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [edi]
mov ecx, dword [eax]
lea ebx, [esi + 0x2114]
push ebx
push 0x170
push eax
call dword [ecx + 0x10]
push ebx
mov ecx, esi
mov dword [ebp - 0x1c], eax
call fcn.004077d7
mov ecx, esi
call fcn.004087d3
cmp dword [ebp - 0x1c], 0
jl 0x4093ef
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [esi + 0x2284]
push edx
push 0x529c
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x4093ef
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.0040b470
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov ebx, 0x100
add esp, 0xc
test dword [esi + 0x2298], ebx
je 0x409036
push 0x40
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.0040b470
mov eax, dword [edi]
add esp, 0xc
lea edx, [ebp - 0x5c]
push edx
push 0x40
mov dword [ebp - 0x4c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
cmp dword [ebp - 0x40], 1
jne 0x409001
mov dword [esi + 0x8820], 1
mov dword [ebp - 0x14], ebx
jmp 0x40901b
xor eax, eax
inc eax
cmp dword [ebp - 0x48], eax
jne 0x409014
mov dword [esi + 0x8810], eax
mov dword [ebp - 0x10], ebx
jmp 0x40901b
and dword [esi + 0x8810], 0
push dword [esi + 0x8810]
push ebx
call fcn.004011bd
push dword [esi + 0x8820]
push ebx
call fcn.004011d0
add esp, 0x10
mov ebx, 0x200
test dword [esi + 0x2298], ebx
je 0x4090a9
push 0x40
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.0040b470
mov eax, dword [edi]
add esp, 0xc
lea edx, [ebp - 0x5c]
push edx
push 0x40
mov dword [ebp - 0x4c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
xor eax, eax
inc eax
cmp dword [ebp - 0x40], eax
jne 0x409077
or dword [ebp - 0x14], ebx
mov dword [esi + 0x8824], eax
jmp 0x40908e
cmp dword [ebp - 0x48], eax
jne 0x409087
or dword [ebp - 0x10], ebx
mov dword [esi + 0x8814], eax
jmp 0x40908e
and dword [esi + 0x8814], 0
push dword [esi + 0x8814]
push ebx
call fcn.004011bd
push dword [esi + 0x8824]
push ebx
call fcn.004011d0
add esp, 0x10
mov ebx, 0x400
test dword [esi + 0x2298], ebx
je 0x409121
push 0x40
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.0040b470
mov eax, dword [edi]
add esp, 0xc
lea edx, [ebp - 0x5c]
push edx
push 0x40
mov dword [ebp - 0x4c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
cmp dword [ebp - 0x40], 1
jne 0x4090ec
or dword [ebp - 0x14], ebx
mov dword [esi + 0x8828], 1
jmp 0x409106
xor eax, eax
inc eax
cmp dword [ebp - 0x48], eax
jne 0x4090ff
or dword [ebp - 0x10], ebx
mov dword [esi + 0x8818], eax
jmp 0x409106
and dword [esi + 0x8818], 0
push dword [esi + 0x8818]
push ebx
call fcn.004011bd
push dword [esi + 0x8828]
push ebx
call fcn.004011d0
add esp, 0x10
mov ebx, 0x800
test dword [esi + 0x2298], ebx
je 0x409199
push 0x40
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.0040b470
mov edi, dword [edi]
add esp, 0xc
lea ecx, [ebp - 0x5c]
push ecx
push 0x40
mov dword [ebp - 0x4c], ebx
mov eax, dword [edi]
push edi
call dword [eax + 0x38]
cmp dword [ebp - 0x40], 1
jne 0x409164
or dword [ebp - 0x14], ebx
mov dword [esi + 0x882c], 1
jmp 0x40917e
xor eax, eax
inc eax
cmp dword [ebp - 0x48], eax
jne 0x409177
or dword [ebp - 0x10], ebx
mov dword [esi + 0x881c], eax
jmp 0x40917e
and dword [esi + 0x881c], 0
push dword [esi + 0x881c]
push ebx
call fcn.004011bd
push dword [esi + 0x882c]
push ebx
call fcn.004011d0
add esp, 0x10
xor eax, eax
cmp dword [esi + 0x8810], eax
jne 0x4091bb
cmp dword [esi + 0x8814], eax
jne 0x4091bb
cmp dword [esi + 0x8818], eax
jne 0x4091bb
cmp dword [esi + 0x881c], eax
je 0x4091be
xor eax, eax
inc eax
push eax
push dword [ebp - 0x10]
call fcn.004011bd
xor ebx, ebx
pop ecx
pop ecx
cmp dword [esi + 0x8820], ebx
jne 0x4091ef
cmp dword [esi + 0x8824], ebx
jne 0x4091ef
cmp dword [esi + 0x8828], ebx
jne 0x4091ef
cmp dword [esi + 0x882c], ebx
jne 0x4091ef
xor eax, eax
jmp 0x4091f2
xor eax, eax
inc eax
push eax
push dword [ebp - 0x14]
call fcn.004011d0
mov eax, dword [esi + 0x2298]
and eax, 0xf00
push eax
call fcn.004011e3
add esp, 0xc
xor edx, edx
cmp dword [esi + 0x229c], ebx
jbe 0x40927d
lea ecx, [esi + 0x22a0]
mov eax, dword [ecx]
dec eax
dec eax
je 0x40926a
dec eax
dec eax
je 0x409261
sub eax, 4
je 0x409258
sub eax, 8
je 0x40924f
sub eax, 0x10
je 0x409246
sub eax, 0x20
jne 0x409271
mov byte [esi + 0x1898], 1
jmp 0x409271
mov byte [esi + 0x18a0], 1
jmp 0x409271
mov byte [esi + 0x1897], 1
jmp 0x409271
mov byte [esi + 0x1894], 1
jmp 0x409271
mov byte [esi + 0x1896], 1
jmp 0x409271
mov byte [esi + 0x1895], 1
inc edx
add ecx, 0x14
cmp edx, dword [esi + 0x229c]
jb 0x40921f
mov edi, 0x9c
push edi
lea eax, [ebp + 0x128]
push ebx
push eax
call fcn.0040b470
add esp, 0xc
lea eax, [ebp + 0x128]
push eax
mov dword [ebp + 0x128], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4093ef
mov dword [esi + 0x189c], 1
cmp dword [ebp + 0x130], ebx
je 0x4093ef
add edi, 0x68
push edi
lea eax, [ebp + 0x1e0]
push ebx
push eax
call fcn.0040b470
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push str.SOFTWAREMICROSOFTWINDOWS_NTCURRENTVERSION
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x15], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4093ef
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x1e0]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.EditionID
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409346
push str.Starter
lea eax, [ebp + 0x1e0]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x409346
mov byte [ebp - 0x15], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x15], bl
je 0x4093ef
push ebx
lea ecx, [ebp + 0x1c4]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
mov dword [ebp + 0x1dc], 0xf
call fcn.00401acf
push str.Intel
lea ecx, [ebp + 0x1c4]
mov byte [ebp - 4], 5
call fcn.00401e71
lea eax, [ebp]
push eax
push edi
push ebx
mov dword [ebp], 0x128
call fcn.004011ed
add esp, 0xc
cmp eax, ebx
je 0x4093d5
cmp dword [ebp + 0x1dc], 0x10
mov eax, dword [ebp + 0x1c8]
jae 0x4093b8
lea eax, [ebp + 0x1c8]
push eax
lea eax, [ebp + 0x24]
push eax
call fcn.0040bf7c
pop ecx
pop ecx
test eax, eax
je 0x4093ce
inc dword [ebp - 0x1c]
inc dword [ebp - 0x10]
inc edi
cmp dword [ebp - 0x10], 0xa
jb 0x40938a
cmp dword [ebp - 0x1c], 1
jne 0x4093e1
mov dword [esi + 0x189c], ebx
push ebx
push 1
lea ecx, [ebp + 0x1c4]
call fcn.00401b5a
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2e4]
xor ecx, ebp
call fcn.0040b4ea
add ebp, 0x2e8
leave
ret 4