Function at 0x401c70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
mov ebx, eax
mov eax, 0x466e04
call fcn.00448690
mov dword [ebp - 0x4c], 0x32
mov word [ebp - 0x30], 8
xor edx, edx
lea ecx, [ebp - 0xe0]
mov dword [ebp - 4], edx
inc dword [ebp - 0x24]
mov word [ebp - 0x30], 0x14
mov dword [ebp - 0xe0], 0x94
push ecx
call sub.KERNEL32.DLL_GetVersionExA
dec eax
jne 0x401f6b
mov eax, dword [ebp - 0xd0]
dec eax
je 0x401cd3
dec eax
je 0x401e6f
jmp 0x401f63
cmp dword [ebp - 0xd8], 0
jne 0x401da8
lea edx, [ebp - 0x44]
push edx
push 0xf003f
push 0
push 0x466576
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
lea ecx, [ebp - 0x4c]
push ecx
lea eax, [ebp - 0x114]
push eax
lea edx, [ebp - 0x48]
push edx
push 0
push 0x4665a0
mov ecx, dword [ebp - 0x44]
push ecx
call sub.ADVAPI32.DLL_RegQueryValueExA
mov eax, dword [ebp - 0x44]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
mov word [ebp - 0x30], 0x20
lea edx, [ebp - 0x114]
lea eax, [ebp - 8]
call fcn.00451810
mov edx, eax
inc dword [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.00451928
dec dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004518f8
mov word [ebp - 0x30], 0x2c
mov edx, 0x4665ae
lea eax, [ebp - 0xc]
call fcn.00451810
inc dword [ebp - 0x24]
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.004519c8
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004518f8
pop ecx
test cl, cl
je 0x401d99
mov dword [ebx + 0x2f8], 1
jmp 0x401f6b
mov dword [ebx + 0x2f8], 2
jmp 0x401f6b
mov dword [ebx + 0x2f8], 3
lea eax, [ebp - 0x44]
push eax
push 0xf003f
push 0
push 0x4665b7
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x114]
push ecx
lea eax, [ebp - 0x48]
push eax
push 0
push 0x4665e1
mov edx, dword [ebp - 0x44]
push edx
call sub.ADVAPI32.DLL_RegQueryValueExA
mov ecx, dword [ebp - 0x44]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
mov word [ebp - 0x30], 0x38
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x10]
call fcn.00451810
mov edx, eax
inc dword [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.00451928
dec dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004518f8
mov word [ebp - 0x30], 0x44
mov edx, 0x4665e9
lea eax, [ebp - 0x14]
call fcn.00451810
inc dword [ebp - 0x24]
lea edx, [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.004519e0
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004518f8
pop ecx
test cl, cl
je 0x401f6b
mov dword [ebx + 0x2f8], 4
jmp 0x401f6b
mov eax, dword [ebp - 0xdc]
sub eax, 3
je 0x401e85
dec eax
je 0x401e94
dec eax
je 0x401ea3
jmp 0x401f6b
mov dword [ebx + 0x2f8], 5
jmp 0x401f6b
mov dword [ebx + 0x2f8], 6
jmp 0x401f6b
mov dword [ebx + 0x2f8], 7
lea edx, [ebp - 0x44]
push edx
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_ntCurrentVersion
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
lea ecx, [ebp - 0x4c]
push ecx
lea eax, [ebp - 0x114]
push eax
lea edx, [ebp - 0x48]
push edx
push 0
push str.productname
mov ecx, dword [ebp - 0x44]
push ecx
call sub.ADVAPI32.DLL_RegQueryValueExA
mov eax, dword [ebp - 0x44]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
mov word [ebp - 0x30], 0x50
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x18]
call fcn.00451810
mov edx, eax
inc dword [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.00451928
dec dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004518f8
mov word [ebp - 0x30], 0x5c
mov edx, str.Microsoft_Windows_2000
lea eax, [ebp - 0x1c]
call fcn.00451810
inc dword [ebp - 0x24]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 4]
call fcn.004519e0
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004518f8
pop ecx
test cl, cl
je 0x401f6b
mov dword [ebx + 0x2f8], 8
jmp 0x401f6b
xor eax, eax
mov dword [ebx + 0x2f8], eax
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004518f8
mov ecx, dword [ebp - 0x40]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret