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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8d50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x67da2c]
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 + 0x400]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x5574a3
mov ecx, dword [esi + 0x984]
mov edx, dword [esi + 0x980]
push ecx
push edx
lea eax, [ebp - 0x14]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld_
push eax
call fcn.00599a28
add esp, 0x10
mov eax, dword [esi + 0x4c]
xor edi, edi
cmp eax, ebx
je 0x5574b9
cmp word [esi + 0x430], bx
jne 0x55761c
mov eax, dword [esi + 0x400]
cmp eax, ebx
je 0x557586
cmp dword [esi + 0x3c0], ebx
jne 0x5574f9
push eax
lea ecx, [esi + 0x20]
call fcn.00563de0
test al, al
jne 0x5574f9
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005a0c5d
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 + 0x3c0]
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.0059cff9
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x5574dc
cmp word [esi + 0x430], bx
jne 0x55761c
cmp dword [esi + 0x400], ebx
je 0x5575f2
mov eax, dword [esi + 0x3c0]
cmp eax, ebx
je 0x557627
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 0x55762d
push edi
call fcn.00586223
add esp, 4
jmp 0x55762d
cmp dword [esi + 0x980], ebx
je 0x5574dc
cmp dword [esi + 0x984], ebx
je 0x5574dc
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push 0xf003f
push ebx
push ecx
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x5574dc
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 0x557514
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5574dc
cmp dword [esi + 0x980], ebx
je 0x557627
cmp dword [esi + 0x984], ebx
je 0x557627
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x557627
mov edx, dword [ebp - 0x18]
lea ecx, [edx + edx + 2]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
push edx
jmp 0x55755f
lea ecx, [esi + 0x42c]
call fcn.005112b0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x65dd08
call fcn.005875ba
mov eax, dword [esi + 0x4c]
add esp, 4
test eax, eax
jne 0x5576a2
mov eax, dword [esi + 0x400]
test eax, eax
je 0x557665
mov eax, dword [esi + 0x3c0]
test eax, eax
je 0x5576ab
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + ecx + 2]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
push ecx
jmp 0x55768e
mov eax, dword [esi + 0x980]
test eax, eax
je 0x5576ab
mov eax, dword [esi + 0x984]
test eax, eax
je 0x5576ab
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5576ab
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 0x5576ab
push edi
jmp 0x5576a3
push eax
call fcn.00586ecb
add esp, 4
test edi, edi
je 0x5576b8
push edi
call fcn.0059d022
add esp, 4
mov eax, dword [esi + 0x400]
test eax, eax
je 0x5576ce
mov ecx, esi
call fcn.00556fb0
jmp 0x5574dc
mov eax, dword [esi + 0x980]
test eax, eax
je 0x5574dc
mov eax, dword [esi + 0x984]
test eax, eax
je 0x5574dc
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5576f8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x67da2c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push ecx
push str._sChList
push edx
mov byte [ebp - 4], 2
call fcn.00599a28
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 0xc
push eax
push reloc.WSOCK32.dll_accept
call esi
mov ecx, dword [ebp - 0x14]
push ecx
push reloc.WSOCK32.dll_accept
call esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.005a0c5d
jmp 0x5574dc