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

Disassembly:
push 0xffffffffffffffff
push 0x628656
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
mov eax, dword [esp + 0x148]
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, ecx
cmp eax, ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], ebx
mov eax, str.SoftwareDownloadManagerGrabberStsIncludeFilters
jne 0x5244cf
mov eax, str.SoftwareDownloadManagerGrabberStsExcludeFilters
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x10]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push 0x6f5cb8
push ebx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5246ec
push ebx
lea eax, [esp + 0x10]
push ebx
mov ecx, dword [esp + 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x524524
mov dword [esp + 0xc], 0x800
mov edx, dword [esp + 0xc]
inc edx
push edx
call fcn.005fdccd
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x5246ec
push edi
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x40]
push ebp
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x44], eax
push 0
lea edx, [esp + 0x54]
mov eax, ebx
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x4c], 0x104
push eax
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x5246e2
test eax, eax
jne 0x52453d
cmp dword [esp + 0x3c], 1
jne 0x52453d
lea ecx, [esp + 0x28]
lea edx, [esp + 0x44]
push ecx
push 0x6c5148
push edx
call fcn.005e55f0
add esp, 0xc
cmp eax, 1
jne 0x52453d
mov eax, dword [esp + 0x28]
test eax, eax
je 0x52453d
lea eax, [esp + 0x44]
push 0x20
push eax
call fcn.005e51d0
mov edx, eax
add esp, 8
test edx, edx
je 0x52453d
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jb 0x52453d
mov eax, dword [0x6f175c]
inc edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x154], 0
call fcn.00601a55
push ebp
lea ecx, [esp + 0x1c]
call fcn.00601a55
mov eax, dword [esp + 0x158]
mov ecx, dword [esp + 0x28]
test eax, eax
mov byte [esp + 0x24], 1
mov dword [esp + 0x20], ecx
je 0x524667
lea edi, [esi + 0x124]
push 0xffffffffffffffff
mov ecx, edi
mov esi, dword [edi + 8]
lea edx, [esi + 1]
push edx
call fcn.004ad410
mov edx, dword [edi + 4]
lea eax, [esp + 0x18]
shl esi, 4
add esi, edx
push eax
mov ecx, esi
call fcn.00601a05
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 4]
call fcn.00601a05
mov edx, dword [esp + 0x20]
mov dword [esi + 8], edx
mov al, byte [esp + 0x24]
mov byte [esi + 0xc], al
jmp 0x5246ac
lea edi, [esi + 0x138]
push 0xffffffffffffffff
mov esi, dword [edi + 8]
lea ecx, [esi + 1]
push ecx
mov ecx, edi
call fcn.004ad410
mov eax, dword [edi + 4]
lea edx, [esp + 0x18]
shl esi, 4
add esi, eax
push edx
mov ecx, esi
call fcn.00601a05
lea eax, [esp + 0x1c]
lea ecx, [esi + 4]
push eax
call fcn.00601a05
mov ecx, dword [esp + 0x20]
mov dword [esi + 8], ecx
mov dl, byte [esp + 0x24]
mov byte [esi + 0xc], dl
mov eax, 1
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x150], eax
call fcn.006018cc
lea ecx, [esp + 0x18]
mov dword [esp + 0x150], 0xffffffff
call fcn.006018cc
mov esi, dword [esp + 0x34]
jmp 0x52453d
push ebp
call fcn.005fdcf6
add esp, 4
pop edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x144]
mov eax, dword [esp + 0x28]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x144
ret 4