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

Disassembly:
push 0xffffffffffffffff
push 0x629056
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 0x52628f
mov eax, str.SoftwareDownloadManagerGrabberStsExcludeFilters
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x10]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push 0x6d1c98
push ebx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5264ac
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 0x5262e4
mov dword [esp + 0xc], 0x800
mov edx, dword [esp + 0xc]
inc edx
push edx
call fcn.005ffe3f
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x5264ac
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 0x5264a2
test eax, eax
jne 0x5262fd
cmp dword [esp + 0x3c], 1
jne 0x5262fd
lea ecx, [esp + 0x28]
lea edx, [esp + 0x44]
push ecx
push 0x6a1150
push edx
call fcn.005e7710
add esp, 0xc
cmp eax, 1
jne 0x5262fd
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5262fd
lea eax, [esp + 0x44]
push 0x20
push eax
call fcn.005e71f0
mov edx, eax
add esp, 8
test edx, edx
je 0x5262fd
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jb 0x5262fd
mov eax, dword [0x6cd768]
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.00603bc5
push ebp
lea ecx, [esp + 0x1c]
call fcn.00603bc5
mov eax, dword [esp + 0x158]
mov ecx, dword [esp + 0x28]
test eax, eax
mov byte [esp + 0x24], 1
mov dword [esp + 0x20], ecx
je 0x526427
lea edi, [esi + 0x124]
push 0xffffffffffffffff
mov ecx, edi
mov esi, dword [edi + 8]
lea edx, [esi + 1]
push edx
call fcn.004add30
mov edx, dword [edi + 4]
lea eax, [esp + 0x18]
shl esi, 4
add esi, edx
push eax
mov ecx, esi
call fcn.00603b75
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 4]
call fcn.00603b75
mov edx, dword [esp + 0x20]
mov dword [esi + 8], edx
mov al, byte [esp + 0x24]
mov byte [esi + 0xc], al
jmp 0x52646c
lea edi, [esi + 0x138]
push 0xffffffffffffffff
mov esi, dword [edi + 8]
lea ecx, [esi + 1]
push ecx
mov ecx, edi
call fcn.004add30
mov eax, dword [edi + 4]
lea edx, [esp + 0x18]
shl esi, 4
add esi, eax
push edx
mov ecx, esi
call fcn.00603b75
lea eax, [esp + 0x1c]
lea ecx, [esi + 4]
push eax
call fcn.00603b75
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.00603a3c
lea ecx, [esp + 0x18]
mov dword [esp + 0x150], 0xffffffff
call fcn.00603a3c
mov esi, dword [esp + 0x34]
jmp 0x5262fd
push ebp
call fcn.005ffe68
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