Function at 0x5af280
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x658036
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x940], edi
je 0x5af2d8
mov byte [esi + 0xad1], 1
jmp 0x5af76f
lea ecx, [esp + 0x14]
mov byte [esi + 0xad1], 0
call fcn.00402500
mov dword [esp + 0x168], edi
mov eax, dword [esi + 0xacc]
mov ecx, dword [esi + 0xac8]
push eax
push ecx
lea edx, [esp + 0x1c]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push edx
call fcn.00402f80
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push 0xf003f
push edi
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x5af363
mov edx, dword [esi + 0xacc]
mov eax, dword [esi + 0xac8]
push edx
push eax
lea ecx, [esp + 0x1c]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld
push ecx
call fcn.00402f80
mov edx, dword [esp + 0x24]
add esp, 0x10
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x5af75b
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
push edi
push edi
push 0x679708
push edx
mov dword [esp + 0x3c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x5af3d9
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push ecx
push 0x80000001
call edi
mov edx, dword [esi + 0xacc]
mov eax, dword [esi + 0xac8]
push edx
push eax
lea ecx, [esp + 0x1c]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld
push ecx
call fcn.00402f80
mov edx, dword [esp + 0x24]
add esp, 0x10
push edx
push 0x80000001
call edi
jmp 0x5af75b
mov ecx, dword [esp + 0x18]
push edi
push edi
push edi
push edi
lea eax, [esp + 0x3c]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x5af407
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5af75b
lea ecx, [esp + 0x20]
call fcn.00402500
mov byte [esp + 0x168], 1
mov eax, dword [esi + 0x4e0]
push eax
lea ecx, [esp + 0x24]
push str.SoftwareDownloadManager_ldChList
push ecx
call fcn.00402f80
mov ecx, dword [esp + 0x2c]
add esp, 0xc
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x20]
push eax
push edi
push 0xf003f
push edi
push 0x66b96c
push edi
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x5af46c
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5af74a
cmp dword [esp + 0x2c], edi
jbe 0x5af533
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea esp, [esp]
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x58]
push ecx
push edi
push edx
mov dword [esp + 0x48], 8
call ebx
test eax, eax
jne 0x5af4f8
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
lea edx, [esp + 0x54]
push edx
push eax
mov dword [esp + 0x3c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [esp + 0x1c]
jne 0x5af50a
push 0x10
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x5af518
inc edi
cmp edi, dword [esp + 0x2c]
jb 0x5af480
jmp 0x5af533
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x20]
push edx
jmp 0x5af528
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x5af528
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esi + 0xacc]
mov ecx, dword [esi + 0xac8]
push eax
push ecx
lea edx, [esp + 0x1c]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld
push edx
call fcn.00402f80
mov eax, dword [esp + 0x2c]
add esp, 0x10
push eax
call edi
cmp byte [ebp + 8], 0
je 0x5af73a
mov ecx, dword [esi + 0x4e0]
push ecx
lea edx, [esp + 0x24]
push str.SoftwareDownloadManager_ld
push edx
call fcn.00402f80
mov edx, dword [esp + 0x2c]
add esp, 0xc
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0xf003f
push 0
push 0x66b96c
push 0
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5af73a
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0xf003f
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5af733
mov ecx, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x50]
push eax
push 0
push 0
push str.LocalFileName
mov edi, 0x104
push ecx
mov dword [esp + 0x3c], edi
call ebx
test eax, eax
jne 0x5af65e
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5af624
sub eax, edx
je 0x5af65e
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5af636
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x50]
push edx
push 1
push 0
push str.LocalFileName
push eax
call esi
jmp 0x5af664
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x50]
push edx
push 0
push 0
push 0x674efc
push eax
mov dword [esp + 0x3c], edi
call ebx
test eax, eax
jne 0x5af6c2
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5af690
sub eax, edx
je 0x5af6c2
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5af6a2
sub eax, edx
mov edx, dword [esp + 0x1c]
inc eax
push eax
lea ecx, [esp + 0x50]
push ecx
push 1
push 0
push 0x674efc
push edx
call esi
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x50]
push ecx
push 0
push 0
push 0x67efc4
push edx
mov dword [esp + 0x3c], edi
call ebx
test eax, eax
jne 0x5af722
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
jmp 0x5af6f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5af6f0
sub eax, edx
je 0x5af722
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5af702
mov ecx, dword [esp + 0x1c]
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x50]
push eax
push 1
push 0
push 0x67efc4
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov byte [esp + 0x168], 0
lea ecx, [esp + 0x20]
call fcn.00402570
mov dword [esp + 0x168], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402570
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00613241
mov esp, ebp
pop ebp
ret 4