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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000db6c
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 fcn.1000d032
mov dword [ebp - 4], 0
cmp dword [0x10102cf0], 0
je 0x10004aea
push str.pe_softwareMicrosoftWindowsCurrentVersionExplorerMountPoints2CPCVolume
lea eax, [ebp - 0x338]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x10004afe
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerMountPoints2CPCVolume
lea ecx, [ebp - 0x338]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 0x1c], 0x20019
call fcn.1000398b
test eax, eax
je 0x10004b17
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 0x10004e28
mov eax, 1
test eax, eax
je 0x10004df7
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 0x10004bb9
jmp 0x10004df7
lea ecx, [ebp - 0x338]
push ecx
lea edx, [ebp - 0x234]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x100ff718
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 0x10004c29
jmp 0x10004b49
mov dword [ebp - 0x124], 0
lea eax, [ebp - 0x124]
push eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x100ff71c
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 0x10004c78
jmp 0x10004b49
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 0x10004dd4
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 0x10004dd4
mov ecx, dword [ebp - 0x340]
mov byte [ecx], 0
mov dword [ebp - 0x344], 0
jmp 0x10004cf6
mov edx, dword [ebp - 0x344]
add edx, 1
mov dword [ebp - 0x344], edx
mov eax, dword [ebp - 0x344]
cmp eax, dword [ebp - 0x124]
jae 0x10004d3a
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 0x10004ce7
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 0x10004dba
lea ecx, [ebp - 0x354]
call fcn.10009e50
mov byte [ebp - 4], 1
push 0x10102d48
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.1000a370
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x354]
call fcn.10009ea0
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 0x10004b49
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 0x10004e4a
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