Function at 0x407860
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40959b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x7814
call fcn.00408560
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
or ecx, 1
push ecx
push ebx
push edi
push edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 0x7800
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x7824], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x407a1e
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x7824]
push ecx
lea edx, [ebp - 0x1c]
push edx
push ebx
mov ebx, dword [ebp + 0x10]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x4079d2
mov eax, dword [ebp - 0x1c]
cmp eax, 7
ja case.0x4078fd.3
jmp dword [eax*4 + 0x407a70]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x7824]
mov dword [eax], 1
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x407924
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x7824]
push edx
lea ecx, [eax + 8]
mov dword [eax], 2
call dword [0x40a134]
jmp 0x407916
mov ebx, dword [ebp - 0x18]
dec ebx
lea edi, [ebp - 0x7824]
nop
test edi, edi
je 0x407916
test ebx, ebx
jbe 0x407916
mov esi, dword [ebp + 0x14]
add esi, 8
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Empty]
push edi
mov ecx, esi
call dword [0x40a134]
mov ecx, dword [ebp + 0x14]
push esi
add ecx, 0xc
call sub.MFC71.DLL_CStringList::AddTail
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
mov ecx, esi
lea edi, [edi + eax + 1]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
or ecx, 0xffffffff
sub ecx, eax
add ebx, ecx
jmp 0x407960
lea ecx, [ebp + 0x14]
mov dword [ebp + 0xc], 0x70c
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov edx, dword [ebp - 0x14]
push edx
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push str.SC_Error_3036:_The_following_key_is_an_unrecognized_data_type:__s
lea eax, [ebp + 0x14]
push eax
jmp 0x4079f3
lea ecx, [ebp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov ecx, dword [ebp - 0x14]
push ecx
mov byte [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push str.SC_Error_3037:_Unable_to_find_the_value_for_the_following_registry_key:__s
lea edx, [ebp + 0x14]
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [ebp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0
lea ecx, [esi + 4]
call fcn.004076f0
lea ecx, [ebp + 0x14]
call dword [0x40a118]
jmp 0x407916
lea ecx, [ebp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov eax, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea ecx, [ebp + 0x14]
push str.SC_Error_3038:_Unable_to_find_the_following_registry_key:__s
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [ebp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push ebx
jmp 0x407a08