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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41323c
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 [0x458800], 0
je 0x402377
push str.pe_softwareMicrosoftWindowsCurrentVersionExplorerMountPoints2CPCVolume
lea eax, [ebp - 0x338]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x40238b
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerMountPoints2CPCVolume
lea ecx, [ebp - 0x338]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 0x1c], 0x20019
call fcn.0040133d
test eax, eax
je 0x4023a4
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 0x4026b5
mov eax, 1
test eax, eax
je 0x402684
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 0x402446
jmp 0x402684
lea ecx, [ebp - 0x338]
push ecx
lea edx, [ebp - 0x234]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x4555a0
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 0x4024b6
jmp 0x4023d6
mov dword [ebp - 0x124], 0
lea eax, [ebp - 0x124]
push eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x4555a4
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 0x402505
jmp 0x4023d6
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 0x402661
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 0x402661
mov ecx, dword [ebp - 0x340]
mov byte [ecx], 0
mov dword [ebp - 0x344], 0
jmp 0x402583
mov edx, dword [ebp - 0x344]
add edx, 1
mov dword [ebp - 0x344], edx
mov eax, dword [ebp - 0x344]
cmp eax, dword [ebp - 0x124]
jae 0x4025c7
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 0x402574
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
test eax, eax
jl 0x402647
lea ecx, [ebp - 0x354]
call fcn.00405ac0
mov byte [ebp - 4], 1
push 0x458834
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.00405de0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x354]
call fcn.00405b10
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 0x4023d6
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 0x4026d7
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