Function at 0x5d2ba0
Capabilities:
Delete file
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6536e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [0x6f7b78]
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x4a0]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x5d2c03
mov ecx, dword [esi + 0xa8c]
mov edx, dword [esi + 0xa88]
push ecx
push edx
lea eax, [ebp - 0x14]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld_
push eax
call fcn.0061fae1
add esp, 0x10
mov eax, dword [esi + 0x4c]
xor edi, edi
cmp eax, ebx
je 0x5d2c19
cmp word [esi + 0x4d8], bx
jne 0x5d2d7c
mov eax, dword [esi + 0x4a0]
cmp eax, ebx
je 0x5d2ce6
cmp dword [esi + 0x45c], ebx
jne 0x5d2c59
push eax
lea ecx, [esi + 0x20]
call fcn.005e6030
test al, al
jne 0x5d2c59
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00622d8a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x18]
push ebx
mov edx, dword [esi + 0x45c]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edx, dword [ebp - 0x18]
lea eax, [edx + edx + 2]
push eax
call fcn.00622acb
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x5d2c3c
cmp word [esi + 0x4d8], bx
jne 0x5d2d7c
cmp dword [esi + 0x4a0], ebx
je 0x5d2d52
mov eax, dword [esi + 0x45c]
cmp eax, ebx
je 0x5d2d87
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + ecx + 2]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
push ecx
push edi
push ebx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.LogFileName
push eax
call ebx
test eax, eax
jne 0x5d2d8d
push edi
call fcn.0060b6fb
add esp, 4
jmp 0x5d2d8d
cmp dword [esi + 0xa88], ebx
je 0x5d2c3c
cmp dword [esi + 0xa8c], ebx
je 0x5d2c3c
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push 0xf003f
push ebx
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x5d2c3c
push ebx
lea edx, [ebp - 0x18]
push ebx
mov eax, dword [ebp - 0x20]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x18], ebx
jne 0x5d2c74
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5d2c3c
cmp dword [esi + 0xa88], ebx
je 0x5d2d87
cmp dword [esi + 0xa8c], ebx
je 0x5d2d87
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x5d2d87
mov edx, dword [ebp - 0x18]
lea ecx, [edx + edx + 2]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
push edx
jmp 0x5d2cbf
lea ecx, [esi + 0x4d4]
call fcn.00570250
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [0x6fca48]
test eax, eax
jne 0x5d2d9b
mov eax, 0x6fca4c
push eax
call fcn.0060b2c8
mov eax, dword [esi + 0x4c]
add esp, 4
test eax, eax
jne 0x5d2e42
mov eax, dword [esi + 0x4a0]
test eax, eax
je 0x5d2df2
mov eax, dword [esi + 0x45c]
test eax, eax
je 0x5d2e61
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + ecx + 2]
lea ecx, [ebp - 0x1c]
push ecx
push edi
push 0
push 0
push str.LocalPath
push eax
mov dword [ebp - 0x1c], edx
call ebx
test eax, eax
jne 0x5d2e61
push edi
call fcn.005d2820
add esp, 4
push edi
jmp 0x5d2e59
mov eax, dword [esi + 0xa88]
test eax, eax
je 0x5d2e61
mov eax, dword [esi + 0xa8c]
test eax, eax
je 0x5d2e61
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5d2e61
mov edx, dword [ebp - 0x18]
lea ecx, [edx + edx + 2]
lea edx, [ebp - 0x1c]
push edx
push edi
push 0
push 0
push str.LocalPath
push eax
mov dword [ebp - 0x1c], ecx
call ebx
test eax, eax
jne 0x5d2e61
mov al, byte [esi + 0xaa2]
test al, al
jne 0x5d2e3f
push edi
call fcn.005d2820
add esp, 4
push edi
jmp 0x5d2e59
mov cl, byte [esi + 0xaa2]
test cl, cl
jne 0x5d2e55
push eax
call fcn.005d2820
add esp, 4
mov eax, dword [esi + 0x4c]
push eax
call fcn.0060c764
add esp, 4
test edi, edi
je 0x5d2e6e
push edi
call fcn.00622af4
add esp, 4
mov eax, dword [esi + 0x4a0]
test eax, eax
je 0x5d2e83
push 0
mov ecx, esi
call fcn.005d2380
jmp 0x5d2eef
mov eax, dword [esi + 0xa88]
test eax, eax
je 0x5d2eef
mov eax, dword [esi + 0xa8c]
test eax, eax
je 0x5d2eef
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5d2ea5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x6f7b78]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push edx
push str._sChList
push eax
mov byte [ebp - 4], 2
call fcn.0061fae1
mov ecx, dword [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 0xc
push ecx
push 0x80000001
call edi
mov edx, dword [ebp - 0x14]
push edx
push 0x80000001
call edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00622d8a
mov eax, dword [esi + 0x4a0]
test eax, eax
je 0x5d2f8f
mov edx, dword [esi + 0x374]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5d2f1d
mov dl, byte [edx]
cmp dl, 0x35
je 0x5d2f3d
cmp dl, 0x36
je 0x5d2f3d
mov edx, dword [esi + 0x378]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5d2f8f
mov dl, byte [edx]
cmp dl, 0x35
je 0x5d2f3d
cmp dl, 0x36
jne 0x5d2f8f
lea ecx, [ebp - 0x5c]
call fcn.004ca710
mov eax, dword [0x6f7b78]
mov edi, 0x65ce34
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x5c], edi
mov ecx, dword [esi + 0x4a0]
push 0
push ecx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.004caab0
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x5c], edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.00622d8a
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.004ca780
mov byte [esi + 0x8ec], 0
jmp 0x5d2c3c