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

Disassembly:
push 0xffffffffffffffff
push 0x4031e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
push eax
push ecx
lea edx, [esp + 0x20]
push 3
push edx
mov dword [esp + 0x158], 0
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x28]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push ecx
push 0x80000001
call ebp
test eax, eax
jne 0x401cf9
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0x104
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x38]
push edx
push eax
mov bl, 1
push 0
push ecx
mov byte [esp + 0x158], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edi, [esi + 0x74]
lea edx, [esp + 0x38]
push edx
mov ecx, edi
call sub.MFC42.DLL_CString::operator
push 0x2e
mov ecx, edi
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, 0xffffffff
je 0x401b7d
push 0xc
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::LoadStringA
lea eax, [esp + 0x24]
push edi
lea ecx, [esp + 0x24]
push eax
push ecx
call sub.MFC42.DLL_operator_1
push eax
mov ecx, edi
mov byte [esp + 0x14c], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], bl
call fcn.00402da2
jmp 0x401b89
push 0x406250
mov ecx, edi
call sub.MFC42.DLL_CString::operator
push str.UserInfo
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_2
mov edi, eax
push 0x406080
lea ecx, [esp + 0x2c]
mov byte [esp + 0x14c], 3
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x38]
mov byte [esp + 0x148], 4
push edx
push eax
lea eax, [esp + 0x3c]
push eax
call sub.MFC42.DLL_operator
push edi
lea ecx, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x154], 5
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 6
call fcn.00402e74
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], 5
call fcn.00402da2
lea ecx, [esp + 0x34]
mov byte [esp + 0x148], 4
call fcn.00402da2
lea ecx, [esp + 0x28]
mov byte [esp + 0x148], 3
call fcn.00402da2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x148], bl
call fcn.00402da2
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push ecx
push 0x80000001
call ebp
test eax, eax
jne 0x401ce8
mov ecx, 0x41
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x1c]
stosb byte es:[edi], al
lea eax, [esp + 0x38]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push eax
push ecx
push 0
push str.Company
push edx
call ebp
test eax, eax
jne 0x401c9d
lea eax, [esp + 0x38]
lea ecx, [esi + 0x6c]
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x104
stosb byte es:[edi], al
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push edx
push eax
push 0
push str.Name
push ecx
call ebp
test eax, eax
jne 0x401ce1
lea edx, [esp + 0x38]
lea ecx, [esi + 0x70]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x148], 0
call fcn.00402da2
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 7
mov dword [esi + 0x80], 0
mov dword [esi + 0x78], 0xcb
mov dword [esi + 0x7c], 0x82
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
push ecx
call edi
add esp, 4
test eax, eax
je 0x401d47
mov dword [esi + 0x80], eax
push 5
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x10]
push edx
call edi
add esp, 4
test eax, eax
je 0x401d63
mov dword [esi + 0x78], eax
push 6
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x10]
push eax
call edi
add esp, 4
test eax, eax
je 0x401d7f
mov dword [esi + 0x7c], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 0
call fcn.00402da2
lea ecx, [esp + 0x18]
mov dword [esp + 0x148], 0xffffffff
call fcn.00402da2
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x13c
ret