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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43612c
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 [0x4966a8], 0
je 0x402542
push str.pe_softwareMicrosoftWindowsCurrentVersionExplorerMountPoints2CPCVolume
lea eax, [ebp - 0x338]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x402556
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerMountPoints2CPCVolume
lea ecx, [ebp - 0x338]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 0x1c], 0x20019
call fcn.004013e3
test eax, eax
je 0x40256f
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 0x402880
mov eax, 1
test eax, eax
je 0x40284f
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 0x402611
jmp 0x40284f
lea ecx, [ebp - 0x338]
push ecx
lea edx, [ebp - 0x234]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x4806d4
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 0x402681
jmp 0x4025a1
mov dword [ebp - 0x124], 0
lea eax, [ebp - 0x124]
push eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x4806d8
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 0x4026d0
jmp 0x4025a1
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 0x40282c
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 0x40282c
mov ecx, dword [ebp - 0x340]
mov byte [ecx], 0
mov dword [ebp - 0x344], 0
jmp 0x40274e
mov edx, dword [ebp - 0x344]
add edx, 1
mov dword [ebp - 0x344], edx
mov eax, dword [ebp - 0x344]
cmp eax, dword [ebp - 0x124]
jae 0x402792
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 0x40273f
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 0x402812
lea ecx, [ebp - 0x354]
call fcn.00406150
mov byte [ebp - 4], 1
push 0x4966e8
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.004063e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x354]
call fcn.004061a0
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 0x4025a1
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 0x4028a2
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