Function at 0x40baf0
Capabilities:
Query or enumerate registry key
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4131ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0xec], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0xec], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xec], 3
call sub.MFC42.DLL_CString::CString
push 0xa
lea ecx, [esp + 0x50]
mov byte [esp + 0xf0], 4
xor esi, esi
call sub.MFC42.DLL_CStringList::CStringList
lea ecx, [esp + 0x10]
mov byte [esp + 0xec], 5
call sub.MFC42.DLL_CString::CString
mov ebx, 0x7c
push 0x41b504
lea ecx, [esp + 0xfc]
mov byte [esp + 0xf0], 6
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x40bbb9
push 0x7e
push eax
lea ecx, [esp + 0x100]
call sub.MFC42.DLL_CString::SetAt
push 0x41b504
lea ecx, [esp + 0xfc]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x40bb94
mov eax, dword [esp + 0xf8]
lea ecx, [esp + 0x1c]
push eax
push 0x41b4f4
push 0x41b038
push 0x41b1c8
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x30]
add esp, 0x14
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bd69
lea ecx, [esp + 0x3c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ecx
mov ecx, dword [esp + 0x18]
push eax
push eax
push eax
lea edx, [esp + 0x30]
lea eax, [esp + 0x78]
push edx
push eax
push 0
push ecx
call ebp
test eax, eax
jne 0x40bc7d
lea edx, [esp + 0x68]
lea ecx, [esp + 0x28]
push edx
inc esi
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::CString_2
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0xf0], 7
call sub.MFC42.DLL_CStringList::AddTail
lea ecx, [esp + 0x28]
mov byte [esp + 0xec], 6
call fcn.00411236
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
lea edx, [esp + 0x78]
push ecx
push edx
push esi
push eax
call ebp
test eax, eax
je 0x40bc26
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x50]
test esi, esi
je 0x40bd69
mov bl, 8
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0x10]
push eax
call fcn.00411230
push 0x7e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40bcd3
push 0x5c
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::SetAt
push 0x7e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x40bcb7
lea edx, [esp + 0x2c]
push 0
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x10c]
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
mov byte [esp + 0x108], bl
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
mov byte [esp + 0x104], 6
call fcn.0040be10
mov edx, dword [esp + 0x2c]
push 1
push 0x11
mov eax, dword [esp + 0x38]
sub esp, 0x10
mov ecx, esp
push 0x3e7
mov dword [ecx], edx
mov edx, dword [esp + 0x50]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x54]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x110]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00409560
test esi, esi
jne 0x40bc96
lea ecx, [esp + 0x10]
mov byte [esp + 0xec], 5
call fcn.00411236
lea ecx, [esp + 0x4c]
mov byte [esp + 0xec], 4
call fcn.0041142e
lea ecx, [esp + 0x18]
mov byte [esp + 0xec], 3
call fcn.00411236
lea ecx, [esp + 0x24]
mov byte [esp + 0xec], 2
call fcn.00411236
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 1
call fcn.00411236
lea ecx, [esp + 0xf4]
mov byte [esp + 0xec], 0
call fcn.00411236
lea ecx, [esp + 0xf8]
mov dword [esp + 0xec], 0xffffffff
call fcn.00411236
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xe0
ret 8