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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f1b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x639ad4]
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 + 0x390]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x524c63
mov ecx, dword [esi + 0x708]
mov edx, dword [esi + 0x704]
push ecx
push edx
lea eax, [ebp - 0x14]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld_
push eax
call fcn.00562ecb
add esp, 0x10
mov eax, dword [esi + 0x4c]
xor edi, edi
cmp eax, ebx
je 0x524c7a
mov al, byte [esi + 0x3b8]
test al, al
jne 0x524dc5
mov eax, dword [esi + 0x390]
cmp eax, ebx
je 0x524d41
cmp dword [esi + 0x350], ebx
jne 0x524cba
push eax
lea ecx, [esi + 0x20]
call fcn.0052e8c0
test al, al
jne 0x524cba
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0056a100
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 + 0x350]
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]
inc edx
push edx
call fcn.0056649c
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x524c9d
mov al, byte [esi + 0x3b8]
test al, al
jne 0x524dc5
cmp dword [esi + 0x390], ebx
je 0x524dad
mov eax, dword [esi + 0x350]
cmp eax, ebx
je 0x524dd0
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
push edx
push edi
push ebx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.LogFileName
push eax
mov dword [ebp - 0x1c], ecx
call ebx
test eax, eax
jne 0x524dd6
push edi
call fcn.005502d1
add esp, 4
jmp 0x524dd6
cmp dword [esi + 0x704], ebx
je 0x524c9d
cmp dword [esi + 0x708], ebx
je 0x524c9d
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 0x524c9d
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 0x524cd5
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x524c9d
cmp dword [esi + 0x704], ebx
je 0x524dd0
cmp dword [esi + 0x708], ebx
je 0x524dd0
mov eax, dword [ebp - 0x20]
jmp 0x524d08
lea ecx, [esi + 0x3b4]
call fcn.004ec1c0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x61c2d8
call fcn.00550d4e
mov eax, dword [esi + 0x4c]
add esp, 4
test eax, eax
jne 0x524e35
mov eax, dword [esi + 0x390]
test eax, eax
je 0x524dfc
mov eax, dword [esi + 0x350]
jmp 0x524e13
mov eax, dword [esi + 0x704]
test eax, eax
je 0x524e3e
mov eax, dword [esi + 0x708]
test eax, eax
je 0x524e3e
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x524e3e
mov ecx, dword [ebp - 0x18]
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 0x524e3e
push edi
jmp 0x524e36
push eax
call fcn.0055062b
add esp, 4
test edi, edi
je 0x524e4b
push edi
call fcn.005664c5
add esp, 4
mov eax, dword [esi + 0x390]
test eax, eax
je 0x524e61
mov ecx, esi
call fcn.00524780
jmp 0x524c9d
mov eax, dword [esi + 0x704]
test eax, eax
je 0x524c9d
mov eax, dword [esi + 0x708]
test eax, eax
je 0x524c9d
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x524e8b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x639ad4]
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.00562ecb
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.0056a100
jmp 0x524c9d