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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c7e8
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 0x475cd5
mov eax, dword [0x5c2a74]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x498]
push edx
push eax
lea ecx, [ebp - 0x18]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld_
push ecx
mov byte [ebp - 4], 1
call fcn.0053afda
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 0x5c6ff0
push ebx
push ecx
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x475c6b
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 0x475c13
inc eax
push eax
call fcn.0054276d
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x475c13
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 0x475bd8
push esi
call fcn.005284b2
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 0x475c07
push 0x5a9f78
call fcn.005297d3
push esi
call fcn.00529006
add esp, 8
push esi
call fcn.00542796
mov edi, dword [ebp + 0xc]
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x475c21
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x5c2a74]
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.0053afda
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.005421be
mov eax, dword [edi + 0x60]
cmp dword [eax - 8], ebx
je 0x475cca
mov ecx, dword [0x5c2a74]
mov dword [ebp + 0xc], ecx
mov edx, eax
lea eax, [ebp + 0xc]
push edx
push 0x5a3e24
push eax
mov byte [ebp - 4], 3
call fcn.0053afda
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push 0x5c
push ecx
call fcn.00526d20
add esp, 8
cmp eax, ebx
je 0x475cbe
push 0x5a9f78
mov byte [eax], bl
call fcn.005297d3
mov edx, dword [ebp + 0xc]
push edx
call fcn.00529006
add esp, 8
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.005421be
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.005421be
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8