Function at 0x5b8420
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 0x662786
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x948], edi
je 0x5b8478
mov byte [esi + 0xad9], 1
jmp 0x5b890f
lea ecx, [esp + 0x14]
mov byte [esi + 0xad9], 0
call fcn.00402500
mov dword [esp + 0x168], edi
mov eax, dword [esi + 0xad4]
mov ecx, dword [esi + 0xad0]
push eax
push ecx
lea edx, [esp + 0x1c]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push edx
call fcn.00402f70
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 0x5b8503
mov edx, dword [esi + 0xad4]
mov eax, dword [esi + 0xad0]
push edx
push eax
lea ecx, [esp + 0x1c]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld
push ecx
call fcn.00402f70
mov edx, dword [esp + 0x24]
add esp, 0x10
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x5b88fb
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
push edi
push edi
push 0x684848
push edx
mov dword [esp + 0x3c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x5b8579
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 + 0xad4]
mov eax, dword [esi + 0xad0]
push edx
push eax
lea ecx, [esp + 0x1c]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld
push ecx
call fcn.00402f70
mov edx, dword [esp + 0x24]
add esp, 0x10
push edx
push 0x80000001
call edi
jmp 0x5b88fb
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 0x5b85a7
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5b88fb
lea ecx, [esp + 0x20]
call fcn.00402500
mov byte [esp + 0x168], 1
mov eax, dword [esi + 0x4e8]
push eax
lea ecx, [esp + 0x24]
push str.SoftwareDownloadManager_ldChList
push ecx
call fcn.00402f70
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 0x676974
push edi
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x5b860c
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5b88ea
cmp dword [esp + 0x2c], edi
jbe 0x5b86d3
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 0x5b8698
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 0x5b86aa
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 0x5b86b8
inc edi
cmp edi, dword [esp + 0x2c]
jb 0x5b8620
jmp 0x5b86d3
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x20]
push edx
jmp 0x5b86c8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x5b86c8
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 + 0xad4]
mov ecx, dword [esi + 0xad0]
push eax
push ecx
lea edx, [esp + 0x1c]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld
push edx
call fcn.00402f70
mov eax, dword [esp + 0x2c]
add esp, 0x10
push eax
call edi
cmp byte [ebp + 8], 0
je 0x5b88da
mov ecx, dword [esi + 0x4e8]
push ecx
lea edx, [esp + 0x24]
push str.SoftwareDownloadManager_ld
push edx
call fcn.00402f70
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 0x676974
push 0
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5b88da
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 0x5b88d3
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 0x5b87fe
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b87c4
sub eax, edx
je 0x5b87fe
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b87d6
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 0x5b8804
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 0x67ff90
push eax
mov dword [esp + 0x3c], edi
call ebx
test eax, eax
jne 0x5b8862
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b8830
sub eax, edx
je 0x5b8862
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b8842
sub eax, edx
mov edx, dword [esp + 0x1c]
inc eax
push eax
lea ecx, [esp + 0x50]
push ecx
push 1
push 0
push 0x67ff90
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 0x68a104
push edx
mov dword [esp + 0x3c], edi
call ebx
test eax, eax
jne 0x5b88c2
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
jmp 0x5b8890
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b8890
sub eax, edx
je 0x5b88c2
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b88a2
mov ecx, dword [esp + 0x1c]
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x50]
push eax
push 1
push 0
push 0x68a104
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.0061d2ff
mov esp, ebp
pop ebp
ret 4