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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ee0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x354
push edi
mov byte [ebp - 0x338], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x337]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x234], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x233]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x120], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x128], 0
lea ecx, [ebp - 0x33c]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
cmp dword [0x42cc68], 0
je 0x401c93
push str.pe_softwareMicrosoftWindowsCurrentVersionExplorerMountPoints2CPCVolume
lea eax, [ebp - 0x338]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x401ca7
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerMountPoints2CPCVolume
lea ecx, [ebp - 0x338]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 0x1c], 0x20019
call fcn.00401198
test eax, eax
je 0x401cc0
mov edx, dword [ebp - 0x1c]
or dh, 1
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
lea edx, [ebp - 0x338]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jne 0x401fd1
mov eax, 1
test eax, eax
je 0x401fa0
mov dword [ebp - 0x124], 0x104
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x360], eax
mov ecx, dword [ebp - 0x360]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x128]
add eax, 1
mov dword [ebp - 0x128], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x401d62
jmp 0x401fa0
lea ecx, [ebp - 0x338]
push ecx
lea edx, [ebp - 0x234]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x428b08
lea eax, [ebp - 0x234]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x234]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
lea edx, [ebp - 0x234]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x401dd2
jmp 0x401cf2
mov dword [ebp - 0x124], 0
lea eax, [ebp - 0x124]
push eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x428b0c
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x124]
add eax, 1
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x401e21
jmp 0x401cf2
lea ecx, [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.Data
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jne 0x401f7d
mov edx, dword [ebp - 0x124]
lea eax, [edx + edx + 1]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], 0
je 0x401f7d
mov ecx, dword [ebp - 0x340]
mov byte [ecx], 0
mov dword [ebp - 0x344], 0
jmp 0x401e9f
mov edx, dword [ebp - 0x344]
add edx, 1
mov dword [ebp - 0x344], edx
mov eax, dword [ebp - 0x344]
cmp eax, dword [ebp - 0x124]
jae 0x401ee3
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x344]
xor edx, edx
mov dl, byte [ecx]
push edx
push str._02X
mov eax, dword [ebp - 0x340]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x340]
add ecx, eax
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
jmp 0x401e90
mov edx, dword [ebp - 0x340]
push edx
lea ecx, [ebp - 0x33c]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x33c]
call sub.MFC42.DLL_CString::MakeLower
push str.530054004f005200410047004500
lea ecx, [ebp - 0x33c]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x401f63
lea ecx, [ebp - 0x354]
call fcn.00405f10
mov byte [ebp - 4], 1
push 0x42cc90
lea ecx, [ebp - 0x354]
call sub.MFC42.DLL_CString::operator_2
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x350]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x354]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004060f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x354]
call fcn.00405f60
mov edx, dword [ebp - 0x340]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 0x340], 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401cf2
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x358], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x33c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x358]
jmp 0x401ff3
mov dword [ebp - 0x35c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x33c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret