Function at 0x5bb670
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 0x6660e6
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x958], edi
je 0x5bb6c8
mov byte [esi + 0xae9], 1
jmp 0x5bbb5f
lea ecx, [esp + 0x14]
mov byte [esi + 0xae9], 0
call fcn.004024f0
mov dword [esp + 0x168], edi
mov eax, dword [esi + 0xae4]
mov ecx, dword [esi + 0xae0]
push eax
push ecx
lea edx, [esp + 0x1c]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push edx
call fcn.00402f60
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 0x5bb753
mov edx, dword [esi + 0xae4]
mov eax, dword [esi + 0xae0]
push edx
push eax
lea ecx, [esp + 0x1c]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld
push ecx
call fcn.00402f60
mov edx, dword [esp + 0x24]
add esp, 0x10
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x5bbb4b
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
push edi
push edi
push 0x687ba0
push edx
mov dword [esp + 0x3c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x5bb7c9
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 + 0xae4]
mov eax, dword [esi + 0xae0]
push edx
push eax
lea ecx, [esp + 0x1c]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld
push ecx
call fcn.00402f60
mov edx, dword [esp + 0x24]
add esp, 0x10
push edx
push 0x80000001
call edi
jmp 0x5bbb4b
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 0x5bb7f7
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5bbb4b
lea ecx, [esp + 0x20]
call fcn.004024f0
mov byte [esp + 0x168], 1
mov eax, dword [esi + 0x4f8]
push eax
lea ecx, [esp + 0x24]
push str.SoftwareDownloadManager_ldChList
push ecx
call fcn.00402f60
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 0x67997c
push edi
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x5bb85c
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5bbb3a
cmp dword [esp + 0x2c], edi
jbe 0x5bb923
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 0x5bb8e8
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 0x5bb8fa
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 0x5bb908
inc edi
cmp edi, dword [esp + 0x2c]
jb 0x5bb870
jmp 0x5bb923
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x20]
push edx
jmp 0x5bb918
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x5bb918
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 + 0xae4]
mov ecx, dword [esi + 0xae0]
push eax
push ecx
lea edx, [esp + 0x1c]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld
push edx
call fcn.00402f60
mov eax, dword [esp + 0x2c]
add esp, 0x10
push eax
call edi
cmp byte [ebp + 8], 0
je 0x5bbb2a
mov ecx, dword [esi + 0x4f8]
push ecx
lea edx, [esp + 0x24]
push str.SoftwareDownloadManager_ld
push edx
call fcn.00402f60
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 0x67997c
push 0
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5bbb2a
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 0x5bbb23
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 0x5bba4e
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bba14
sub eax, edx
je 0x5bba4e
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bba26
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 0x5bba54
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 0x683208
push eax
mov dword [esp + 0x3c], edi
call ebx
test eax, eax
jne 0x5bbab2
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bba80
sub eax, edx
je 0x5bbab2
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bba92
sub eax, edx
mov edx, dword [esp + 0x1c]
inc eax
push eax
lea ecx, [esp + 0x50]
push ecx
push 1
push 0
push 0x683208
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 0x68d58c
push edx
mov dword [esp + 0x3c], edi
call ebx
test eax, eax
jne 0x5bbb12
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
jmp 0x5bbae0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bbae0
sub eax, edx
je 0x5bbb12
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bbaf2
mov ecx, dword [esp + 0x1c]
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x50]
push eax
push 1
push 0
push 0x68d58c
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.00402560
mov dword [esp + 0x168], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402560
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.00620b8d
mov esp, ebp
pop ebp
ret 4