Function at 0x402100
Capabilities:
Contain obfuscated stackstrings
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407af7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x830
lea ecx, [ebp - 0x160]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x15c]
call sub.MFC42.DLL_CStringArray::CStringArray
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x164]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], 0
mov ecx, 0x40c138
call fcn.00406740
push 0x409440
lea ecx, [ebp - 0x160]
call sub.MFC42.DLL_CString::operator_1
lea eax, [ebp - 0x30]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x160]
call fcn.00406850
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402ad6
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x402ad6
mov dword [ebp - 0x28], 0xc8
mov dword [ebp - 0x2c], 0
jmp 0x4021f6
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x18]
jae 0x402ad6
mov dword [ebp - 0x28], 0xc8
lea edx, [ebp - 0x144]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x402ad1
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x16c]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 4
push str.ALL_ATI_Software
lea ecx, [ebp - 0x16c]
call fcn.00406860
test eax, eax
je 0x402ac2
push 0x409485
lea ecx, [ebp - 0x174]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 5
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x164]
call sub.MFC42.DLL_CString::operator_1
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x170]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 6
push 0x7b
lea ecx, [ebp - 0x13c]
push ecx
call dword [sym.imp.msvcrt.dll_strchr]
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4022d6
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x13c]
push eax
call sub.msvcrt.dll_strcpy
add esp, 8
lea ecx, [ebp - 0x15c]
push ecx
call fcn.004030a0
add esp, 4
mov dword [ebp - 0x178], 0
jmp 0x402300
mov edx, dword [ebp - 0x178]
add edx, 1
mov dword [ebp - 0x178], edx
lea ecx, [ebp - 0x15c]
call fcn.00406720
cmp dword [ebp - 0x178], eax
jge 0x40262d
mov eax, dword [ebp - 0x178]
push eax
lea ecx, [ebp - 0x15c]
call fcn.00406760
mov ecx, eax
call fcn.00406810
push eax
mov ecx, dword [ebp - 0x178]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.00406760
mov ecx, eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [ebp - 0x17c]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 7
lea edx, [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x17c]
call fcn.00406860
test eax, eax
jne 0x402619
push 0xffffffffffffffff
mov eax, dword [ebp - 0x178]
push eax
lea ecx, [ebp - 0x15c]
call fcn.00406760
mov ecx, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x409488
lea ecx, [ebp - 0x7d0]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x7f8], eax
mov ecx, dword [ebp - 0x7f8]
mov dword [ebp - 0x7fc], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x7fc]
push edx
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x7d4]
push ecx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x800], eax
mov edx, dword [ebp - 0x800]
mov dword [ebp - 0x804], edx
mov byte [ebp - 4], 9
lea eax, [ebp - 0x164]
push eax
mov ecx, dword [ebp - 0x804]
push ecx
lea edx, [ebp - 0x7d8]
push edx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x808], eax
mov eax, dword [ebp - 0x808]
mov dword [ebp - 0x80c], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x80c]
push ecx
lea ecx, [ebp - 0x174]
call fcn.00407554
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x7d8]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x7d4]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x7d0]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0x390], 0x104
mov dword [ebp - 0x394], 0x104
lea edx, [ebp - 0x148]
push edx
push 0xf003f
push 0
lea ecx, [ebp - 0x174]
call fcn.00406850
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402619
lea eax, [ebp - 0x390]
push eax
lea ecx, [ebp - 0x284]
push ecx
push 0
push 0
push 0x40948c
mov edx, dword [ebp - 0x148]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402619
lea eax, [ebp - 0x394]
push eax
lea ecx, [ebp - 0x38c]
push ecx
push 0
push 0
push 0x40949c
mov edx, dword [ebp - 0x148]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x394]
push eax
lea ecx, [ebp - 0x38c]
push ecx
push 0
push 0
push 0x4094a8
mov edx, dword [ebp - 0x148]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x1c], 0
je 0x402525
cmp dword [ebp - 0x168], 0
jne 0x402619
push 1
lea eax, [ebp - 0x38c]
push eax
mov ecx, dword [0x40c134]
push ecx
mov ecx, 0x40c14c
call sub.MFC42.DLL_CStringArray::InsertAt
push 1
lea edx, [ebp - 0x284]
push edx
mov eax, dword [0x40c134]
push eax
mov ecx, 0x40c138
call sub.MFC42.DLL_CStringArray::InsertAt
mov ecx, dword [0x40c134]
add ecx, 1
mov dword [0x40c134], ecx
mov dword [ebp - 0x20], 1
push 0x4094b8
lea ecx, [ebp - 0x17c]
call fcn.00406860
test eax, eax
jne 0x402608
lea edx, [ebp - 0x284]
push edx
mov ecx, 0x40c160
call sub.MFC42.DLL_CString::operator_1
push 0x22
mov ecx, 0x40c160
call fcn.00406850
push eax
call dword [sym.imp.msvcrt.dll_strchr]
add esp, 8
mov dword [ebp - 0x398], eax
cmp dword [ebp - 0x398], 0
je 0x402608
mov eax, dword [ebp - 0x398]
add eax, 1
push eax
mov ecx, 0x40c160
call sub.MFC42.DLL_CString::operator_1
push 0x5c
mov ecx, 0x40c160
call fcn.00406850
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
add esp, 8
mov dword [ebp - 0x39c], eax
cmp dword [ebp - 0x39c], 0
je 0x402608
mov ecx, dword [ebp - 0x39c]
mov byte [ecx], 0
mov dword [0x40c124], 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x17c]
call sub.MFC42.DLL_CString::CString
jmp 0x40262d
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x17c]
call sub.MFC42.DLL_CString::CString
jmp 0x4022f1
lea ecx, [ebp - 0x15c]
call sub.MFC42.DLL_CStringArray::FreeExtra
lea ecx, [ebp - 0x15c]
call fcn.00406740
cmp dword [ebp - 0x20], 0
jne 0x402aa4
mov dword [ebp - 0x5b0], 0x104
mov dword [ebp - 0x5b4], 0x104
push 0x4094e0
lea ecx, [ebp - 0x164]
call fcn.00406860
test eax, eax
jne 0x402850
push 0x4094f4
lea ecx, [ebp - 0x7dc]
invalid
xchg ebp, eax
dec esi
invalid