Function at 0x5b32c0
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 0x65d3f6
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
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 0x5b3318
mov byte [esi + 0xad9], 1
jmp 0x5b37af
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 0x5b33a3
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 0x5b379b
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
push edi
push edi
push 0x67e798
push edx
mov dword [esp + 0x3c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x5b3419
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 0x5b379b
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 0x5b3447
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5b379b
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 0x670984
push edi
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x5b34ac
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5b378a
cmp dword [esp + 0x2c], edi
jbe 0x5b3573
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 0x5b3538
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 0x5b354a
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 0x5b3558
inc edi
cmp edi, dword [esp + 0x2c]
jb 0x5b34c0
jmp 0x5b3573
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x20]
push edx
jmp 0x5b3568
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x5b3568
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 0x5b377a
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 0x670984
push 0
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5b377a
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 0x5b3773
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 0x5b369e
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b3664
sub eax, edx
je 0x5b369e
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b3676
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 0x5b36a4
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 0x679f1c
push eax
mov dword [esp + 0x3c], edi
call ebx
test eax, eax
jne 0x5b3702
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b36d0
sub eax, edx
je 0x5b3702
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b36e2
sub eax, edx
mov edx, dword [esp + 0x1c]
inc eax
push eax
lea ecx, [esp + 0x50]
push ecx
push 1
push 0
push 0x679f1c
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 0x684054
push edx
mov dword [esp + 0x3c], edi
call ebx
test eax, eax
jne 0x5b3762
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
jmp 0x5b3730
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b3730
sub eax, edx
je 0x5b3762
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b3742
mov ecx, dword [esp + 0x1c]
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x50]
push eax
push 1
push 0
push 0x684054
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.0061807e
mov esp, ebp
pop ebp
ret 4