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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x62de86
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x8d8], ebx
je 0x5b9676
mov byte [esi + 0xa69], 1
jmp 0x5b9b01
mov byte [esi + 0xa69], bl
mov eax, dword [0x6cc708]
mov dword [esp + 0xc], eax
mov ecx, dword [esi + 0xa64]
mov edx, dword [esi + 0xa60]
push ecx
push edx
lea eax, [esp + 0x14]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push eax
mov dword [esp + 0x160], ebx
call fcn.005fb90b
mov edx, dword [esp + 0x1c]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push ebx
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x5b9700
mov eax, dword [esi + 0xa64]
mov ecx, dword [esi + 0xa60]
push eax
push ecx
lea edx, [esp + 0x14]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld
push edx
call fcn.005fb90b
mov eax, dword [esp + 0x1c]
add esp, 0x10
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x5b9812
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x34]
push ecx
push edx
push ebx
push ebx
push 0x6a7814
push eax
mov dword [esp + 0x30], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x5b9776
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edx
push reloc.WS2_32.dll_accept
call edi
mov eax, dword [esi + 0xa64]
mov ecx, dword [esi + 0xa60]
push eax
push ecx
lea edx, [esp + 0x14]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld
push edx
call fcn.005fb90b
mov eax, dword [esp + 0x1c]
add esp, 0x10
push eax
push reloc.WS2_32.dll_accept
call edi
jmp 0x5b9812
push ebx
push ebx
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x2c]
push ebx
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x5b97a1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5b9812
mov ecx, dword [0x6cc708]
mov dword [esp + 0x1c], ecx
mov edx, dword [esi + 0x480]
lea eax, [esp + 0x1c]
push edx
push str.SoftwareDownloadManager_ldChList
push eax
mov byte [esp + 0x15c], 1
call fcn.005fb90b
add esp, 0xc
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push 0x6d0c38
push ebx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x5b982b
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x150], bl
call fcn.00602ad6
lea ecx, [esp + 0xc]
mov dword [esp + 0x150], 0xffffffff
call fcn.00602ad6
jmp 0x5b9b01
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, ebx
push ebp
jbe 0x5b98f1
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x34]
push ebx
lea eax, [esp + 0x40]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x48], 8
call ebp
test eax, eax
jne 0x5b98b2
lea edx, [esp + 0x1c]
lea eax, [esp + 0x38]
push edx
mov edx, dword [esp + 0x18]
push eax
push ebx
lea ecx, [esp + 0x3c]
push ebx
push ecx
push edx
mov dword [esp + 0x34], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5b98c4
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x38]
push 0x10
push eax
push ebx
lea ecx, [esp + 0x3c]
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x5b98d6
mov eax, dword [esp + 0x24]
inc edi
cmp edi, eax
jb 0x5b9840
jmp 0x5b98f1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x5b98e6
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
push eax
jmp 0x5b98e6
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x20]
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esi + 0xa64]
mov eax, dword [esi + 0xa60]
push edx
push eax
lea ecx, [esp + 0x18]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld
push ecx
call fcn.005fb90b
mov edx, dword [esp + 0x28]
add esp, 0x10
push edx
call edi
cmp byte [esp + 0x15c], bl
je 0x5b9acc
mov eax, dword [esi + 0x480]
lea ecx, [esp + 0x20]
push eax
push str.SoftwareDownloadManager_ld
push ecx
call fcn.005fb90b
add esp, 0xc
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x18]
push edx
push eax
push ebx
push 0xf003f
push ebx
push 0x6d0c38
push ebx
push ecx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5b9acc
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0xf003f
push ebx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5b9ac1
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x48]
push ecx
push edx
push ebx
push ebx
mov esi, 0x104
push 0x6a785c
push eax
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5b9a0c
lea edi, [esp + 0x48]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5b9a0c
lea edi, [esp + 0x48]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
not ecx
push ecx
lea ecx, [esp + 0x4c]
push ecx
push 1
push ebx
push 0x6a785c
push edx
call ebp
jmp 0x5b9a12
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x48]
push eax
push ecx
push ebx
push ebx
push 0x6a4d88
push edx
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5b9a64
lea edi, [esp + 0x48]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5b9a64
lea edi, [esp + 0x48]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push 1
push ebx
push 0x6a4d88
push ecx
call ebp
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x48]
push edx
push eax
push ebx
push ebx
push 0x6a9cf0
push ecx
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5b9ab6
lea edi, [esp + 0x48]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5b9ab6
lea edi, [esp + 0x48]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x48]
not ecx
push ecx
push edx
push 1
push ebx
push 0x6a9cf0
push eax
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0x20]
mov byte [esp + 0x154], bl
call fcn.00602ad6
lea ecx, [esp + 0x10]
mov dword [esp + 0x154], 0xffffffff
call fcn.00602ad6
pop ebp
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x148
ret 4