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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60e960
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x6cc564]
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 + 0x468]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x596723
mov ecx, dword [esi + 0xa3c]
mov edx, dword [esi + 0xa38]
push ecx
push edx
lea eax, [ebp - 0x14]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld_
push eax
call fcn.005dc6eb
add esp, 0x10
mov eax, dword [esi + 0x4c]
xor edi, edi
cmp eax, ebx
je 0x596739
cmp word [esi + 0x498], bx
jne 0x59689c
mov eax, dword [esi + 0x468]
cmp eax, ebx
je 0x596806
cmp dword [esi + 0x428], ebx
jne 0x596779
push eax
lea ecx, [esi + 0x20]
call fcn.005a63d0
test al, al
jne 0x596779
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005e38b9
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 + 0x428]
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.005dfcbc
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x59675c
cmp word [esi + 0x498], bx
jne 0x59689c
cmp dword [esi + 0x468], ebx
je 0x596872
mov eax, dword [esi + 0x428]
cmp eax, ebx
je 0x5968a7
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 0x5968ad
push edi
call fcn.005c8da3
add esp, 4
jmp 0x5968ad
cmp dword [esi + 0xa38], ebx
je 0x59675c
cmp dword [esi + 0xa3c], ebx
je 0x59675c
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push 0xf003f
push ebx
push ecx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x59675c
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 0x596794
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x59675c
cmp dword [esi + 0xa38], ebx
je 0x5968a7
cmp dword [esi + 0xa3c], ebx
je 0x5968a7
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x5968a7
mov edx, dword [ebp - 0x18]
lea ecx, [edx + edx + 2]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
push edx
jmp 0x5967df
lea ecx, [esi + 0x494]
call fcn.0053e310
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [0x6d1130]
test eax, eax
jne 0x5968bb
mov eax, 0x6d1134
push eax
call fcn.005ca2ea
mov eax, dword [esi + 0x4c]
add esp, 4
test eax, eax
jne 0x596935
mov eax, dword [esi + 0x468]
test eax, eax
je 0x5968ef
mov eax, dword [esi + 0x428]
test eax, eax
je 0x59694a
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + ecx + 2]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
push ecx
jmp 0x596918
mov eax, dword [esi + 0xa38]
test eax, eax
je 0x59694a
mov eax, dword [esi + 0xa3c]
test eax, eax
je 0x59694a
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x59694a
mov edx, dword [ebp - 0x18]
lea ecx, [edx + edx + 2]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
push edx
push edi
push 0
push 0
push str.LocalPath
push eax
call ebx
test eax, eax
jne 0x59694a
push edi
call fcn.00596350
add esp, 4
push edi
jmp 0x596942
push edi
call fcn.00596350
mov eax, dword [esi + 0x4c]
add esp, 4
push eax
call fcn.005c9bb4
add esp, 4
test edi, edi
je 0x596957
push edi
call fcn.005dfce5
add esp, 4
mov eax, dword [esi + 0x468]
test eax, eax
je 0x596976
push 0
mov ecx, esi
call fcn.00595eb0
mov byte [esi + 0x8ac], 0
jmp 0x59675c
mov eax, dword [esi + 0xa38]
test eax, eax
je 0x5969e2
mov eax, dword [esi + 0xa3c]
test eax, eax
je 0x5969e2
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x596998
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x6cc564]
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.005dc6eb
mov ecx, dword [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 0xc
push ecx
push reloc.WS2_32.dll_accept
call edi
mov edx, dword [ebp - 0x14]
push edx
push reloc.WS2_32.dll_accept
call edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.005e38b9
mov byte [esi + 0x8ac], 0
jmp 0x59675c