Function at 0x426750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43565f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ebx
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp + 0xc]
mov edi, 1
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 3
cmp dword [ecx - 8], ebx
jne 0x4267b3
lea edx, [ebp - 0x28]
push 0x440298
push edx
mov dword [ebp - 0x28], ebx
call sub.MSVCRT.dll__CxxThrowException
push 0x5c
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
cmp esi, 0xffffffff
jne 0x4267d5
lea eax, [ebp - 0x2c]
push 0x440298
push eax
mov dword [ebp - 0x2c], ebx
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x20]
push esi
push ecx
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::Left
mov edx, dword [ebp - 0x20]
push str.HKEY_LOCAL_MACHINE
push edx
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x42690f
inc esi
lea eax, [ebp - 0x30]
push esi
push eax
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push ecx
push edi
push ebx
push edx
push 0x80000002
mov byte [ebp - 4], 7
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4268d2
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp - 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x10]
push ebx
push ecx
push ebx
push esi
push edx
mov dword [ebp + 0xc], ebx
call edi
cmp eax, ebx
jne 0x4268c3
cmp dword [ebp + 0x10], 1
jne 0x4268c3
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push edx
push ebx
push esi
push eax
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
cmp esi, ebx
je 0x4268c3
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 1
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x34]
push 0x440298
push eax
mov dword [ebp - 0x34], ebx
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp + 8]
push 0x446fe0
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x24], 1
mov eax, 0x42693a
ret