Function at 0x401f20
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4121f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x58], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 3
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 4
call sub.MFC42.DLL_CException::CException
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 5
call sub.MFC42.DLL_CString::CString
push 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 6
mov dword [esp + 0x2c], 0x414a20
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 8]
add esi, 8
push eax
push esi
mov byte [esp + 0x60], 7
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
mov eax, dword [esp + 8]
test eax, eax
je 0x401ff7
push eax
lea ecx, [esp + 0x14]
push 0x41b09c
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 8]
push edx
call dword [sym.imp.RPCRT4.dll_RpcStringFreeA]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push 1
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402065
lea edx, [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edx
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x20]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 0x18]
mov dword [esp + 8], eax
push edx
push eax
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push eax
call esi
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x2e
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea edx, [esp + 0x20]
push eax
push edx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Left
push 0x41b098
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x60], 8
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 9
call fcn.00411230
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 8
call fcn.00411236
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 7
call fcn.00411236
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
push 0
push edx
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x4020f2
lea eax, [esp + 4]
lea ecx, [esp + 0x3c]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CStdioFile::Close
jmp 0x402100
push 0x41b094
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x60]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x414a20
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 0xa
call fcn.00411236
lea ecx, [esp + 0x3c]
mov dword [esp + 0x28], 0x4149e4
mov byte [esp + 0x58], 3
call fcn.0041129c
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 2
call fcn.00411236
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 1
call fcn.00411236
lea ecx, [esp + 4]
mov byte [esp + 0x58], 0
call fcn.00411236
mov ecx, dword [esp + 0x50]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x58
ret 4