Function at 0x5bb1c0
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 0x665736
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 0x5bb218
mov byte [esi + 0xae9], 1
jmp 0x5bb6af
lea ecx, [esp + 0x14]
mov byte [esi + 0xae9], 0
call fcn.00402510
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.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 0x5bb2a3
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.00402f80
mov edx, dword [esp + 0x24]
add esp, 0x10
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x5bb69b
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
push edi
push edi
push 0x687b48
push edx
mov dword [esp + 0x3c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x5bb319
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.00402f80
mov edx, dword [esp + 0x24]
add esp, 0x10
push edx
push 0x80000001
call edi
jmp 0x5bb69b
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 0x5bb347
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5bb69b
lea ecx, [esp + 0x20]
call fcn.00402510
mov byte [esp + 0x168], 1
mov eax, dword [esi + 0x4f8]
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 0x67997c
push edi
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x5bb3ac
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5bb68a
cmp dword [esp + 0x2c], edi
jbe 0x5bb473
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 0x5bb438
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 0x5bb44a
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 0x5bb458
inc edi
cmp edi, dword [esp + 0x2c]
jb 0x5bb3c0
jmp 0x5bb473
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x20]
push edx
jmp 0x5bb468
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x5bb468
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.00402f80
mov eax, dword [esp + 0x2c]
add esp, 0x10
push eax
call edi
cmp byte [ebp + 8], 0
je 0x5bb67a
mov ecx, dword [esi + 0x4f8]
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 0x67997c
push 0
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5bb67a
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 0x5bb673
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 0x5bb59e
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bb564
sub eax, edx
je 0x5bb59e
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bb576
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 0x5bb5a4
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 0x6831f0
push eax
mov dword [esp + 0x3c], edi
call ebx
test eax, eax
jne 0x5bb602
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bb5d0
sub eax, edx
je 0x5bb602
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bb5e2
sub eax, edx
mov edx, dword [esp + 0x1c]
inc eax
push eax
lea ecx, [esp + 0x50]
push ecx
push 1
push 0
push 0x6831f0
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 0x68d534
push edx
mov dword [esp + 0x3c], edi
call ebx
test eax, eax
jne 0x5bb662
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
jmp 0x5bb630
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bb630
sub eax, edx
je 0x5bb662
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bb642
mov ecx, dword [esp + 0x1c]
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x50]
push eax
push 1
push 0
push 0x68d534
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.00402580
mov dword [esp + 0x168], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402580
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.0062023e
mov esp, ebp
pop ebp
ret 4