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

Disassembly:
push ebp
sub esp, 0x2e4
lea ebp, [esp - 4]
mov eax, dword [0x4206f0]
xor eax, ebp
mov dword [ebp + 0x2e4], eax
push 0x54
mov eax, 0x418c0d
call fcn.0040b76f
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.00401cac
xor ebx, ebx
push 0x170
lea eax, [esi + 0x1ad8]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [esi + 0x1ad0], ebx
mov byte [esi + 0x127c], bl
mov byte [esi + 0x127d], bl
mov byte [esi + 0x127e], bl
mov byte [esi + 0x127f], bl
mov byte [esi + 0x1280], bl
mov dword [esi + 0x1ac8], ebx
mov dword [esi + 0x1acc], ebx
mov dword [esi + 0x1ad4], ebx
mov dword [esi + 0x1270], ebx
mov dword [esi + 0x24], ebx
call fcn.0040af80
add esp, 0xc
cmp dword [ebp - 0x1c], ebx
je 0x40882c
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x421d48]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x1ad0]
push eax
push 0x419978
push 0x15
push ebx
push 0x4199a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x408ee8
cmp dword [esi + 0x1ad0], ebx
je 0x408ee8
mov ebx, 0x208
push ebx
lea eax, [esi + 0x6ee8]
push 0
push eax
call fcn.0040af80
add esp, 0xc
cmp dword [edi + 0x18], 0x10
jb 0x408884
mov ecx, dword [edi + 4]
jmp 0x408887
lea ecx, [edi + 4]
push dword [esi + 0x20]
lea eax, [esi + 0x6ee8]
push 0x104
push eax
push 0xbf0
push ecx
call sub.hccutils.DLL_LoadSTRINGW
push ebx
lea eax, [esi + 0x70f0]
push 0
push eax
call fcn.0040af80
add esp, 0x20
cmp dword [edi + 0x18], 0x10
jb 0x4088be
mov ecx, dword [edi + 4]
jmp 0x4088c1
lea ecx, [edi + 4]
push dword [esi + 0x20]
lea eax, [esi + 0x70f0]
push 0x104
push eax
push 0xc00
push ecx
call sub.hccutils.DLL_LoadSTRINGW
push ebx
lea eax, [esi + 0x72f8]
push 0
push eax
call fcn.0040af80
add esp, 0x20
cmp dword [edi + 0x18], 0x10
jb 0x4088f8
mov ecx, dword [edi + 4]
jmp 0x4088fb
lea ecx, [edi + 4]
push dword [esi + 0x20]
lea eax, [esi + 0x72f8]
push 0x104
push eax
push 0xbff
push ecx
call sub.hccutils.DLL_LoadSTRINGW
push ebx
lea eax, [esi + 0x7500]
push 0
push eax
call fcn.0040af80
add esp, 0x20
cmp dword [edi + 0x18], 0x10
jb 0x408932
mov ecx, dword [edi + 4]
jmp 0x408935
lea ecx, [edi + 4]
push dword [esi + 0x20]
lea eax, [esi + 0x7500]
push 0x104
push eax
push 0xc04
push ecx
call sub.hccutils.DLL_LoadSTRINGW
push 0x800
lea eax, [esi + 0x1288]
push 0
push eax
call fcn.0040af80
push ebx
lea eax, [esi + 0x7708]
push 0
push eax
call fcn.0040af80
add esp, 0x2c
cmp dword [edi + 0x18], 0x10
jb 0x40897f
mov ecx, dword [edi + 4]
jmp 0x408982
lea ecx, [edi + 4]
push dword [esi + 0x20]
lea eax, [esi + 0x7708]
push 0x104
push eax
push 0x1c16
push ecx
call sub.hccutils.DLL_LoadSTRINGW
push ebx
lea eax, [esi + 0x7910]
push 0
push eax
call fcn.0040af80
add esp, 0x20
cmp dword [edi + 0x18], 0x10
jb 0x4089b9
mov ecx, dword [edi + 4]
jmp 0x4089bc
lea ecx, [edi + 4]
push dword [esi + 0x20]
lea eax, [esi + 0x7910]
push 0x104
push eax
push 0x1c17
push ecx
call sub.hccutils.DLL_LoadSTRINGW
push ebx
lea eax, [esi + 0x7b18]
push 0
push eax
call fcn.0040af80
add esp, 0x20
cmp dword [edi + 0x18], 0x10
jb 0x4089f3
mov ecx, dword [edi + 4]
jmp 0x4089f6
lea ecx, [edi + 4]
push dword [esi + 0x20]
lea eax, [esi + 0x7b18]
push 0x104
push eax
push 0x11ec
push ecx
call sub.hccutils.DLL_LoadSTRINGW
push ebx
lea eax, [esi + 0x7d20]
push 0
push eax
call fcn.0040af80
add esp, 0x20
cmp dword [edi + 0x18], 0x10
jb 0x408a2d
mov edi, dword [edi + 4]
jmp 0x408a30
add edi, 4
push dword [esi + 0x20]
lea eax, [esi + 0x7d20]
push 0x104
push eax
push 0x11ed
push edi
call sub.hccutils.DLL_LoadSTRINGW
add esp, 0x14
lea edx, [esi + 0x6ee4]
lea edi, [esi + 0x1ad0]
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 + 0x1ad8]
push ebx
push 0x170
push eax
call dword [ecx + 0x10]
push ebx
mov ecx, esi
mov dword [ebp - 0x1c], eax
call fcn.004075cc
mov ecx, esi
call fcn.004083c8
cmp dword [ebp - 0x1c], 0
jl 0x408ee8
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [esi + 0x1c48]
push edx
push 0x529c
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x408ee8
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.0040af80
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov ebx, 0x100
add esp, 0xc
test dword [esi + 0x1c5c], ebx
je 0x408b3d
push 0x40
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.0040af80
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 0x408b08
mov dword [esi + 0x7f38], 1
mov dword [ebp - 0x14], ebx
jmp 0x408b22
xor eax, eax
inc eax
cmp dword [ebp - 0x48], eax
jne 0x408b1b
mov dword [esi + 0x7f28], eax
mov dword [ebp - 0x10], ebx
jmp 0x408b22
and dword [esi + 0x7f28], 0
push dword [esi + 0x7f28]
push ebx
call fcn.004011bd
push dword [esi + 0x7f38]
push ebx
call fcn.004011d0
add esp, 0x10
mov ebx, 0x200
test dword [esi + 0x1c5c], ebx
je 0x408bb0
push 0x40
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.0040af80
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 0x408b7e
or dword [ebp - 0x14], ebx
mov dword [esi + 0x7f3c], eax
jmp 0x408b95
cmp dword [ebp - 0x48], eax
jne 0x408b8e
or dword [ebp - 0x10], ebx
mov dword [esi + 0x7f2c], eax
jmp 0x408b95
and dword [esi + 0x7f2c], 0
push dword [esi + 0x7f2c]
push ebx
call fcn.004011bd
push dword [esi + 0x7f3c]
push ebx
call fcn.004011d0
add esp, 0x10
mov ebx, 0x400
test dword [esi + 0x1c5c], ebx
je 0x408c28
push 0x40
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.0040af80
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 0x408bf3
or dword [ebp - 0x14], ebx
mov dword [esi + 0x7f40], 1
jmp 0x408c0d
xor eax, eax
inc eax
cmp dword [ebp - 0x48], eax
jne 0x408c06
or dword [ebp - 0x10], ebx
mov dword [esi + 0x7f30], eax
jmp 0x408c0d
and dword [esi + 0x7f30], 0
push dword [esi + 0x7f30]
push ebx
call fcn.004011bd
push dword [esi + 0x7f40]
push ebx
call fcn.004011d0
add esp, 0x10
mov ebx, 0x800
test dword [esi + 0x1c5c], ebx
je 0x408ca0
push 0x40
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.0040af80
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 0x408c6b
or dword [ebp - 0x14], ebx
mov dword [esi + 0x7f44], 1
jmp 0x408c85
xor eax, eax
inc eax
cmp dword [ebp - 0x48], eax
jne 0x408c7e
or dword [ebp - 0x10], ebx
mov dword [esi + 0x7f34], eax
jmp 0x408c85
and dword [esi + 0x7f34], 0
push dword [esi + 0x7f34]
push ebx
call fcn.004011bd
push dword [esi + 0x7f44]
push ebx
call fcn.004011d0
add esp, 0x10
xor eax, eax
cmp dword [esi + 0x7f28], eax
jne 0x408cc2
cmp dword [esi + 0x7f2c], eax
jne 0x408cc2
cmp dword [esi + 0x7f30], eax
jne 0x408cc2
cmp dword [esi + 0x7f34], eax
je 0x408cc5
xor eax, eax
inc eax
push eax
push dword [ebp - 0x10]
call fcn.004011bd
xor ebx, ebx
pop ecx
pop ecx
cmp dword [esi + 0x7f38], ebx
jne 0x408cf6
cmp dword [esi + 0x7f3c], ebx
jne 0x408cf6
cmp dword [esi + 0x7f40], ebx
jne 0x408cf6
cmp dword [esi + 0x7f44], ebx
jne 0x408cf6
xor eax, eax
jmp 0x408cf9
xor eax, eax
inc eax
push eax
push dword [ebp - 0x14]
call fcn.004011d0
mov eax, dword [esi + 0x1c5c]
and eax, 0xf00
push eax
call fcn.004011e3
add esp, 0xc
xor edx, edx
cmp dword [esi + 0x1c60], ebx
jbe 0x408d76
lea ecx, [esi + 0x1c64]
mov eax, dword [ecx]
dec eax
dec eax
je 0x408d63
dec eax
dec eax
je 0x408d5a
sub eax, 4
je 0x408d51
sub eax, 8
je 0x408d48
sub eax, 0x30
jne 0x408d6a
mov byte [esi + 0x1280], 1
jmp 0x408d6a
mov byte [esi + 0x127f], 1
jmp 0x408d6a
mov byte [esi + 0x127c], 1
jmp 0x408d6a
mov byte [esi + 0x127e], 1
jmp 0x408d6a
mov byte [esi + 0x127d], 1
inc edx
add ecx, 0x14
cmp edx, dword [esi + 0x1c60]
jb 0x408d26
mov edi, 0x9c
push edi
lea eax, [ebp + 0x128]
push ebx
push eax
call fcn.0040af80
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 0x408ee8
mov dword [esi + 0x1284], 1
cmp dword [ebp + 0x130], ebx
je 0x408ee8
add edi, 0x68
push edi
lea eax, [ebp + 0x1e0]
push ebx
push eax
call fcn.0040af80
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 0x408ee8
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 0x408e3f
push str.Starter
lea eax, [ebp + 0x1e0]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x408e3f
mov byte [ebp - 0x15], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x15], bl
je 0x408ee8
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.00401ac9
push str.Intel
lea ecx, [ebp + 0x1c4]
mov byte [ebp - 4], 1
call fcn.00401e6b
lea eax, [ebp]
push eax
push edi
push ebx
mov dword [ebp], 0x128
call fcn.004011ed
add esp, 0xc
cmp eax, ebx
je 0x408ece
cmp dword [ebp + 0x1dc], 0x10
mov eax, dword [ebp + 0x1c8]
jae 0x408eb1
lea eax, [ebp + 0x1c8]
push eax
lea eax, [ebp + 0x24]
push eax
call fcn.0040ba8c
pop ecx
pop ecx
test eax, eax
je 0x408ec7
inc dword [ebp - 0x1c]
inc dword [ebp - 0x10]
inc edi
cmp dword [ebp - 0x10], 0xa
jb 0x408e83
cmp dword [ebp - 0x1c], 1
jne 0x408eda
mov dword [esi + 0x1284], ebx
push ebx
push 1
lea ecx, [ebp + 0x1c4]
call fcn.00401b54
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.0040affa
add ebp, 0x2e8
leave
ret 4