Function at 0x401360
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d73a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x14c
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
push str.SOFTWAREORACLEALL_HOMES
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0xe0]
mov dword [ebp - 0x44], ecx
call sub.MFC42.DLL_CObList::RemoveAll
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4013de
push 0xffffffffffffffff
push 0
push 0x6a
call sub.MFC42.DLL_AfxMessageBox
mov edx, dword [ebp - 0x18]
push edx
jmp 0x40145d
push 0
push 0
mov edx, dword [ebp - 0x18]
push 0
push 0
push 0
lea eax, [ebp - 0x48]
push 0
lea ecx, [ebp - 0x30]
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x401417
push 0xffffffffffffffff
push 0
push 0x6a
call sub.MFC42.DLL_AfxMessageBox
mov eax, dword [ebp - 0x18]
push eax
jmp 0x40145d
cmp dword [ebp - 0x30], 1
ja 0x401425
push 0xffffffffffffffff
push 0
push 0x66
jmp 0x401454
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x30]
jae 0x4016a1
lea edx, [ebp - 0x15c]
push 0x104
push edx
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x401485
push 0xffffffffffffffff
push 0
push 0x6a
call sub.MFC42.DLL_AfxMessageBox
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x15c]
lea ecx, [ebp - 0x34]
push edx
call sub.MFC42.DLL_CString::CString_1
mov esi, eax
lea eax, [ebp - 0x14]
push 0x430074
lea ecx, [ebp - 0x40]
push eax
push ecx
mov byte [ebp - 4], 1
call sub.MFC42.DLL_operator_1
push esi
lea edx, [ebp - 0x20]
push eax
push edx
mov byte [ebp - 4], 2
call sub.MFC42.DLL_operator
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40159c
push eax
lea ecx, [ebp - 0x24]
push eax
lea edx, [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x58]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40159c
mov ecx, dword [ebp - 0x24]
inc ecx
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [ebp - 0x24]
add esp, 4
inc edx
mov edi, eax
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [ebp - 0x1c]
add esp, 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x28]
push ecx
mov ebx, eax
mov eax, dword [ebp - 0x24]
push edi
push 0
push 0
inc eax
push str.NAME
push edx
mov dword [ebp - 0x28], eax
call esi
test eax, eax
je 0x40157d
push 0xffffffffffffffff
push 0
push 0x6a
call sub.MFC42.DLL_AfxMessageBox
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0x1c]
push ecx
jmp 0x4015b7
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
inc edx
push eax
push ebx
push 0
push 0
push str.PATH
push ecx
mov dword [ebp - 0x28], edx
call esi
test eax, eax
je 0x4015e7
push 0xffffffffffffffff
push 0
push 0x6a
call sub.MFC42.DLL_AfxMessageBox
mov edx, dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x4c], eax
test eax, eax
mov byte [ebp - 4], 6
je 0x401607
mov ecx, eax
call fcn.00401200
mov esi, eax
jmp 0x401609
xor esi, esi
push edi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_1
push eax
lea ecx, [esi + 4]
mov byte [ebp - 4], 7
call fcn.00427684
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
push ebx
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::CString_1
push eax
lea ecx, [esi + 8]
mov byte [ebp - 4], 8
call fcn.00427684
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x44]
push esi
call sub.MFC42.DLL_CObList::AddTail
test edi, edi
mov byte [ebp - 4], 9
je 0x40166b
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
test ebx, ebx
je 0x401678
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
jmp 0x40142a
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret