Function at 0x457650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 8]
push edi
call fcn.00457390
lea ecx, [ebp - 0x1c]
call fcn.0044e010
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x457815
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHGetSpecialFolderLocation
push edi
call esi
push str.SHGetPathFromIDListA
push edi
mov ebx, eax
call esi
mov edi, eax
test edi, edi
jne 0x4576ac
mov eax, dword [ebp - 0xc]
push str.SHGetPathFromIDList
push eax
call esi
mov edi, eax
mov ecx, dword [ebp - 0xc]
push str.SHGetMalloc
push ecx
call esi
xor esi, esi
mov dword [ebp - 0x10], eax
cmp ebx, esi
je 0x457809
cmp edi, esi
je 0x457809
cmp eax, esi
je 0x457809
lea edx, [ebp - 4]
push edx
push 0x1c
push esi
mov dword [ebp - 4], esi
call ebx
test eax, eax
jne 0x457717
push 0x105
lea ecx, [ebp - 0x1c]
call fcn.0044ec10
push eax
mov eax, dword [ebp - 4]
push eax
call edi
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], esi
call dword [ebp - 0x10]
test eax, eax
js 0x457766
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
jmp 0x457755
lea eax, [ebp - 4]
push eax
push 0x1a
push esi
call ebx
test eax, eax
jne 0x457772
push 0x105
lea ecx, [ebp - 0x1c]
call fcn.0044ec10
mov ecx, dword [ebp - 4]
push eax
push ecx
call edi
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], esi
call dword [ebp - 0x10]
test eax, eax
js 0x457766
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.0044eca0
jmp 0x4577d1
lea eax, [ebp - 8]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4577d1
lea ecx, [ebp - 0x10]
push ecx
push 0x105
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x104
call fcn.0044ec10
push eax
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x14]
push edx
push esi
push str.ProgramFilesDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.0044eca0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x15]
cmp cl, 0xff
je 0x457825
xor eax, eax
cmp cl, 7
sete al
test al, al
jne 0x457809
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x1c]
push edx
mov ecx, esi
call fcn.00457420
push esi
call fcn.00457560
add esp, 4
test eax, eax
jne 0x457809
push esi
call fcn.004575b0
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
lea ecx, [ebp - 0x1c]
call fcn.0044e260
mov eax, dword [ebp + 8]
pop edi
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x18], 0
jne 0x4577e5
cmp byte [ebp - 0x17], 0
jne 0x4577e5
cmp byte [ebp - 0x16], 0
je 0x457809
jmp 0x4577e5