Function at 0x40f490
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x415884
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x254]
mov dword [esp + 0x24c], edi
call sub.MFC42u.DLL_CString::MakeUpper
lea ecx, [esp + 0x14]
call fcn.00413970
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], 1
call fcn.00413970
lea ecx, [esp + 0x24]
mov byte [esp + 0x24c], 2
call fcn.00413970
lea ecx, [esp + 0x20]
mov byte [esp + 0x24c], 3
call fcn.00413970
lea ecx, [esp + 0x1c]
mov byte [esp + 0x24c], 4
call fcn.00413970
push 0x5c
lea ecx, [esp + 0x258]
mov byte [esp + 0x250], 5
call sub.MFC42u.DLL_CString::Find
or ebp, 0xffffffff
cmp eax, ebp
je 0x40f5b5
push 0x5c
lea ecx, [esp + 0x258]
call sub.MFC42u.DLL_CString::Find
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x25c]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x250], 6
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 5
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x254]
push eax
push edx
call sub.MFC42u.DLL_CString::Mid
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x250], 7
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 5
call sub.MFC42u.DLL_CString::CString
jmp 0x40f5d4
lea eax, [esp + 0x254]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42u.DLL_CString::operator
push 0x41f9bc
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::operator_1
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.MSVCRT.dll_wcscmp]
push str.HKEY_USERS
push ecx
call ebx
add esp, 8
cmp eax, edi
je 0x40fae3
mov edx, dword [esp + 0x14]
push 0x41baf4
push edx
call ebx
add esp, 8
cmp eax, edi
je 0x40fae3
mov eax, dword [esp + 0x14]
push str.HKEY_CURRENT_CONFIG
push eax
call ebx
add esp, 8
cmp eax, edi
je 0x40faac
mov ecx, dword [esp + 0x14]
push str.HKCC
push ecx
call ebx
add esp, 8
cmp eax, edi
je 0x40faac
mov edx, dword [esp + 0x14]
push str.HKEY_CLASSES_ROOT
push edx
call ebx
add esp, 8
cmp eax, edi
je 0x40f78a
mov eax, dword [esp + 0x14]
push str.HKCR
push eax
call ebx
add esp, 8
cmp eax, edi
je 0x40f78a
mov ecx, dword [esp + 0x14]
push str.HKEY_CURRENT_USER
push ecx
call ebx
add esp, 8
cmp eax, edi
je 0x40f74e
mov edx, dword [esp + 0x14]
push str.HKCU
push edx
call ebx
add esp, 8
cmp eax, edi
je 0x40f74e
mov eax, dword [esp + 0x14]
push str.HKEY_LOCAL_MACHINE
push eax
call ebx
add esp, 8
cmp eax, edi
je 0x40f712
mov ecx, dword [esp + 0x14]
push str.HKLM
push ecx
call ebx
add esp, 8
cmp eax, edi
je 0x40f712
lea edx, [esp + 0x254]
lea eax, [esp + 0x10]
push edx
push 0x41f8a8
push eax
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], 0xf
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 5
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
push edi
push edi
push edi
push edi
add esi, 0x7c
push ecx
push edi
push 1
mov ecx, esi
call sub.MFC42u.DLL_CListCtrl::InsertItem
push 0x41be48
jmp 0x40fb38
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push str.MACHINE
push eax
mov ebp, 0x80000002
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x250], 0xe
call sub.MFC42u.DLL_CString::operator
mov byte [esp + 0x24c], 5
lea ecx, [esp + 0x10]
jmp 0x40f832
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push str.CURRENT_USER
push edx
mov ebp, 0x80000001
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x250], 0xd
call sub.MFC42u.DLL_CString::operator
mov byte [esp + 0x24c], 5
lea ecx, [esp + 0x10]
jmp 0x40f832
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push str.SOFTWAREClasses
push ecx
mov ebp, 0x80000002
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x250], 0xa
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 5
call sub.MFC42u.DLL_CString::CString
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push str.HKEY_LOCAL_MACHINE
push eax
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x258]
mov byte [esp + 0x250], 0xb
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push str.MACHINE
push edx
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x250], 0xc
call sub.MFC42u.DLL_CString::operator
mov byte [esp + 0x24c], 5
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x18]
push 0x41f9bc
push eax
mov dword [esp + 0x3c], 0x104
call ebx
add esp, 8
test eax, eax
je 0x40f887
lea ecx, [esp + 0x10]
push 1
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::Mid
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x250], 0x10
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 5
call sub.MFC42u.DLL_CString::CString
jmp 0x40f895
push 0x41f9bc
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::operator_1
mov eax, dword [esp + 0x24]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x2c]
push edx
push 0x20019
push 0
push eax
push ebp
call ebx
test eax, eax
jne 0x40f9b9
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0
lea ecx, [esp + 0x40]
push 0
lea edx, [esp + 0x4c]
push ecx
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x40f9b9
lea ecx, [esp + 0x10]
inc edi
mov dword [esp + 0x34], 0x104
call fcn.00413970
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x10]
push ecx
push 0x41b170
push edx
mov byte [esp + 0x258], 0x11
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x254]
lea ecx, [esp + 0x30]
push 0x41b02c
push eax
push ecx
call sub.MFC42u.DLL_operator
lea edx, [esp + 0x10]
mov byte [esp + 0x24c], 0x12
push edx
push eax
lea eax, [esp + 0x30]
push eax
call sub.MFC42u.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x250], 0x13
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x28]
mov byte [esp + 0x24c], 0x12
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x24c], 0x11
call sub.MFC42u.DLL_CString::CString
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00413b2c
mov ecx, esi
call fcn.0040f490
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 5
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
push 0x20019
push 0
push ecx
push ebp
call ebx
test eax, eax
je 0x40f8b7
lea edx, [esp + 0x254]
lea eax, [esp + 0x30]
push edx
push 0x41f8a8
push eax
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], 0x14
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x24c], 5
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
lea edi, [esi + 0x7c]
push ecx
push 0
push 1
mov ecx, edi
call sub.MFC42u.DLL_CListCtrl::InsertItem
mov edx, dword [esp + 0x20]
push 0
push edx
mov ecx, esi
call fcn.0040d430
test eax, eax
je 0x40fa27
push 0x41b91c
jmp 0x40fa2c
push 0x41b924
push 1
push 0
mov ecx, edi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call esi
mov eax, dword [esp + 0x2c]
push eax
call esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x24c], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x24c], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x24c], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], 0
call sub.MFC42u.DLL_CString::CString
mov dword [esp + 0x24c], 0xffffffff
jmp 0x40fb9e
lea ecx, [esp + 0x254]
lea edx, [esp + 0x28]
push ecx
push 0x41f8a8
push edx
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], 9
call sub.MFC42u.DLL_CString::operator
mov byte [esp + 0x24c], 5
lea ecx, [esp + 0x28]
jmp 0x40fb18
lea ecx, [esp + 0x254]
lea edx, [esp + 0x28]
push ecx
push 0x41f8a8
push edx
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], 8
call sub.MFC42u.DLL_CString::operator
mov byte [esp + 0x24c], 5
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x1c]
push edi
push edi
push edi
push edi
add esi, 0x7c
push eax
push edi
push 1
mov ecx, esi
call sub.MFC42u.DLL_CListCtrl::InsertItem
push str._rN_e
push 1
push edi
mov ecx, esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
lea ecx, [esp + 0x1c]
mov byte [esp + 0x24c], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x24c], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x24c], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], 0
call sub.MFC42u.DLL_CString::CString
mov dword [esp + 0x24c], ebp
lea ecx, [esp + 0x254]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x240
ret 4