Function at 0x404d09
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
je 0x404d54
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [edx]
push eax
call dword [ecx + 0x1c]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [edx]
push eax
call dword [ecx + 8]
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x404e97
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x350]
and edx, 0x80000000
test edx, edx
je 0x404e3b
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x350]
and ecx, 1
test ecx, ecx
je 0x404db2
mov dword [ebp - 0x54], 2
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x354]
push eax
push 0x41436c
push str._s_04d
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x404dc8
mov dword [ebp - 0x54], 1
push str.StateFlags
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 4
mov dword [ebp - 0x48], 4
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x48]
push edx
push 0
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x148], 0
je 0x404e13
mov ecx, dword [ebp - 0x50]
or ecx, dword [ebp - 0x54]
mov dword [ebp - 0x50], ecx
jmp 0x404e20
mov edx, dword [ebp - 0x54]
not edx
mov eax, dword [ebp - 0x50]
and eax, edx
mov dword [ebp - 0x50], eax
push 4
lea ecx, [ebp - 0x50]
push ecx
push 4
push 0
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x44]
and ecx, 4
test ecx, ecx
je 0x404e97
mov edx, dword [ebp + 8]
cmp dword [edx + 0x148], 0
je 0x404e97
lea eax, [ebp - 0x58]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerVolumeCaches
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404e97
mov ecx, dword [ebp + 8]
add ecx, 0x24
push ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.00404b9b
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x12c], 0
je 0x404eb3
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x12c]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x128], 0
je 0x404ecf
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x128]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x404eee
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
je 0x404f04
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esp, ebp
pop ebp
ret 4