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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [edi + 0x18]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x494255
mov eax, dword [0x65ec1c]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4b0]
push edx
push eax
lea ecx, [ebp - 0x18]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld_
push ecx
mov byte [ebp - 4], 1
call fcn.0058148b
add esp, 0x10
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x14]
push edx
push eax
push ebx
push 0xf003f
push ebx
push 0x663188
push ebx
push ecx
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x4941eb
push ebx
lea edx, [ebp + 8]
push ebx
mov eax, dword [ebp - 0x14]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x494193
inc eax
push eax
call fcn.00584a5c
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x494193
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x1c]
push edx
push esi
push ebx
push ebx
push str.LogFileName
push eax
mov dword [ebp - 0x1c], ecx
call edi
test eax, eax
jne 0x494158
push esi
call fcn.0056e8d1
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
push edx
push esi
push ebx
push ebx
push str.LocalPath
push eax
call edi
test eax, eax
jne 0x494187
push 0x63f9c0
call fcn.0056f30e
push esi
call fcn.0056ec2b
add esp, 8
push esi
call fcn.00584a85
mov edi, dword [ebp + 0xc]
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4941a1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x65ec1c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
push edx
push str._sChList
push eax
mov byte [ebp - 4], 2
call fcn.0058148b
mov ecx, dword [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 0xc
push ecx
push reloc.WSOCK32.dll_accept
call esi
mov edx, dword [ebp - 0x18]
push edx
push reloc.WSOCK32.dll_accept
call esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.005886c0
mov eax, dword [edi + 0x74]
cmp dword [eax - 8], ebx
je 0x49424a
mov ecx, dword [0x65ec1c]
mov dword [ebp + 0xc], ecx
mov edx, eax
lea eax, [ebp + 0xc]
push edx
push 0x638fa8
push eax
mov byte [ebp - 4], 3
call fcn.0058148b
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push 0x5c
push ecx
call fcn.0056c5b0
add esp, 8
cmp eax, ebx
je 0x49423e
push 0x63f9c0
mov byte [eax], bl
call fcn.0056f30e
mov edx, dword [ebp + 0xc]
push edx
call fcn.0056ec2b
add esp, 8
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.005886c0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.005886c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8