Function at 0x40fbd0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x415974
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
lea ecx, [esp + 0x254]
mov dword [esp + 0x24c], 0
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 + 0x28]
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 edi, 0xffffffff
cmp eax, edi
je 0x40fcf7
push 0x5c
lea ecx, [esp + 0x258]
call sub.MFC42u.DLL_CString::Find
push eax
lea eax, [esp + 0x24]
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 + 0x20]
mov byte [esp + 0x24c], 5
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
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 + 0x20]
mov byte [esp + 0x24c], 5
call sub.MFC42u.DLL_CString::CString
jmp 0x40fd16
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
test eax, eax
je 0x41022c
mov edx, dword [esp + 0x14]
push 0x41baf4
push edx
call ebx
add esp, 8
test eax, eax
je 0x41022c
mov eax, dword [esp + 0x14]
push str.HKEY_CURRENT_CONFIG
push eax
call ebx
add esp, 8
test eax, eax
je 0x4101f5
mov ecx, dword [esp + 0x14]
push str.HKCC
push ecx
call ebx
add esp, 8
test eax, eax
je 0x4101f5
mov edx, dword [esp + 0x14]
push str.HKEY_CLASSES_ROOT
push edx
call ebx
add esp, 8
test eax, eax
je 0x40fed1
mov eax, dword [esp + 0x14]
push str.HKCR
push eax
call ebx
add esp, 8
test eax, eax
je 0x40fed1
mov ecx, dword [esp + 0x14]
push str.HKEY_CURRENT_USER
push ecx
call ebx
add esp, 8
test eax, eax
je 0x40fe95
mov edx, dword [esp + 0x14]
push str.HKCU
push edx
call ebx
add esp, 8
test eax, eax
je 0x40fe95
mov eax, dword [esp + 0x14]
push str.HKEY_LOCAL_MACHINE
push eax
call ebx
add esp, 8
test eax, eax
je 0x40fe59
mov ecx, dword [esp + 0x14]
push str.HKLM
push ecx
call ebx
add esp, 8
test eax, eax
je 0x40fe59
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 0
push 0
push 0
push 0
add esi, 0x7c
push ecx
push 0
push 1
mov ecx, esi
call sub.MFC42u.DLL_CListCtrl::InsertItem
push 0x41be48
jmp 0x410286
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 + 0x2c]
mov byte [esp + 0x250], 0xe
call sub.MFC42u.DLL_CString::operator
mov byte [esp + 0x24c], 5
lea ecx, [esp + 0x10]
jmp 0x40ff79
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 + 0x2c]
mov byte [esp + 0x250], 0xd
call sub.MFC42u.DLL_CString::operator
mov byte [esp + 0x24c], 5
lea ecx, [esp + 0x10]
jmp 0x40ff79
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 + 0x2c]
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
lea eax, [esp + 0x254]
lea ecx, [esp + 0x10]
push eax
push 0x41f8a8
push ecx
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x20]
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
mov edx, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
lea edi, [esi + 0x7c]
push edx
push 0
push 1
mov ecx, edi
call sub.MFC42u.DLL_CListCtrl::InsertItem
mov eax, dword [esp + 0x28]
push 1
push eax
mov ecx, esi
call fcn.0040d430
test eax, eax
je 0x40ffec
push 0x41b91c
jmp 0x40fff1
push 0x41b924
push 1
push 0
mov ecx, edi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [esp + 0x18]
push 0x41f9bc
push ecx
mov dword [esp + 0x38], 0x104
xor edi, edi
call ebx
add esp, 8
test eax, eax
je 0x41004e
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::Mid
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x250], 0x11
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 5
call sub.MFC42u.DLL_CString::CString
jmp 0x41005c
push 0x41f9bc
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::operator_1
mov ecx, dword [esp + 0x24]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x2c]
push eax
push 0x20019
push 0
push ecx
push ebp
call ebx
test eax, eax
jne 0x410180
mov ecx, dword [esp + 0x2c]
push 0
push 0
push 0
lea edx, [esp + 0x3c]
push 0
lea eax, [esp + 0x4c]
push edx
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x410180
lea ecx, [esp + 0x20]
inc edi
mov dword [esp + 0x30], 0x104
call fcn.00413970
lea edx, [esp + 0x3c]
lea eax, [esp + 0x20]
push edx
push 0x41b170
push eax
mov byte [esp + 0x258], 0x12
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x254]
lea edx, [esp + 0x38]
push 0x41b02c
push ecx
push edx
call sub.MFC42u.DLL_operator
lea ecx, [esp + 0x20]
lea edx, [esp + 0x34]
push ecx
push eax
push edx
mov byte [esp + 0x258], 0x13
call sub.MFC42u.DLL_operator_2
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x250], 0x14
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x34]
mov byte [esp + 0x24c], 0x13
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x24c], 0x12
call sub.MFC42u.DLL_CString::CString
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.00413b2c
mov ecx, esi
call fcn.0040fbd0
lea ecx, [esp + 0x20]
mov byte [esp + 0x24c], 5
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push ecx
push 0x20019
push 0
push edx
push ebp
call ebx
test eax, eax
je 0x41007e
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 + 0x28]
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 0x4102ed
lea ecx, [esp + 0x254]
lea edx, [esp + 0x10]
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 + 0x10]
jmp 0x410261
lea ecx, [esp + 0x254]
lea edx, [esp + 0x10]
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 + 0x10]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
add esi, 0x7c
push eax
push 0
push 1
mov ecx, esi
call sub.MFC42u.DLL_CListCtrl::InsertItem
push str._rN_e
push 1
push 0
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 + 0x28]
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], edi
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