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

Disassembly:
push 0xffffffffffffffff
push 0x64f4fb
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
cmp dword [esp + 0x160], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 0
mov eax, str.SoftwareDownloadManagerGrabberStsIncludeFilters
jne 0x52e83b
mov eax, str.SoftwareDownloadManagerGrabberStsExcludeFilters
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0xf003f
push 0
push 0x66b96c
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x52ea2e
push eax
mov ecx, dword [esp + 0x1c]
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x52e89b
mov dword [esp + 0x14], 0x800
mov edx, dword [esp + 0x14]
inc edx
push edx
call fcn.005e76b2
mov edi, eax
add esp, 4
test edi, edi
je 0x52ea2e
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0x1c]
push ecx
push edi
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x24]
push 0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x5c]
push ecx
push 0
push edx
mov dword [esp + 0x40], 0x104
call ebx
mov ebp, 1
cmp eax, 0x103
je 0x52ea25
lea esp, [esp]
test eax, eax
jne 0x52e9ea
cmp dword [esp + 0x30], 1
jne 0x52e9ea
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
push 0x66b5ec
push ecx
call fcn.00614c2e
add esp, 0xc
cmp eax, 1
jne 0x52e9ea
cmp dword [esp + 0x2c], 0
je 0x52e9ea
lea edx, [esp + 0x48]
push 0x20
push edx
call fcn.00614820
mov esi, eax
add esp, 8
test esi, esi
je 0x52e9ea
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52e960
sub eax, edx
cmp eax, 2
jb 0x52e9ea
lea ecx, [esp + 0x34]
inc esi
call fcn.0055c320
mov dword [esp + 0x158], 0
push esi
lea ecx, [esp + 0x3c]
call fcn.00545860
push edi
lea ecx, [esp + 0x38]
call fcn.00545860
cmp dword [esp + 0x160], 0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x34]
mov byte [esp + 0x40], 1
mov dword [esp + 0x3c], eax
push edx
je 0x52e9bf
add ecx, 0x124
jmp 0x52e9c5
add ecx, 0x138
mov eax, dword [ecx + 8]
push eax
call fcn.004b9b70
mov dword [esp + 0x28], 1
mov dword [esp + 0x158], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.0055c380
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push edi
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x24]
push 0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x5c]
push ecx
push ebp
push edx
mov dword [esp + 0x40], 0x104
call ebx
inc ebp
cmp eax, 0x103
jne 0x52e900
push edi
call fcn.005e76a7
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.00613241
add esp, 0x148
ret 4