Function at 0x476b20
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63c0c0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x6eed24]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x30], ebx
mov esi, dword [ebp + 8]
mov eax, esi
neg eax
sbb eax, eax
and eax, dword [ebp + 0xc]
jge 0x476b65
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10a
jge 0x476b76
mov eax, 0x80070057
jmp 0x476e4d
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
push eax
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0
call fcn.004031a0
cmp dword [ebp - 0x50], 0
mov edi, dword [ebp - 0x54]
jne 0x476baf
mov esi, 0x8007000e
jmp 0x476e37
test edi, edi
jne 0x476bbd
mov esi, 0x649aa0
mov dword [ebp - 0x48], esi
jmp 0x476bc2
mov esi, edi
mov dword [ebp - 0x48], edi
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 0x5c], ebx
call dword [eax + 4]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x50]
lea ecx, [ebx + 4]
push esi
call fcn.00476f90
test eax, eax
jne 0x476bfe
lea esi, [eax + 1]
jmp 0x476e24
xor esi, esi
lea ecx, [ebx + 0x18]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x44], ecx
lea esp, [esp]
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
cmp ebx, 0x10
jb 0x476c20
mov eax, edi
push dword [ebp - 0x18]
push eax
call fcn.00477070
test eax, eax
js 0x476ce8
mov ebx, dword [ebp - 0x44]
lea ecx, [eax*4]
mov dword [ebp - 0x58], ecx
mov eax, dword [ebx]
mov edi, dword [ecx + eax]
test esi, esi
je 0x476c61
xor ecx, ecx
cmp dword [edi], ecx
setne cl
xor eax, eax
cmp dword [ebp - 0x2c], eax
setne al
cmp eax, ecx
je 0x476c9b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x34], 0
mov eax, dword [edi]
test eax, eax
setne cl
neg eax
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x34]
push ecx
push 0x2011f
push 0
sbb eax, eax
push str.SoftwareTracker_SoftwareVault
add eax, reloc.OLEAUT32.dll_SysReAllocString
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x476cae
cmp dword [edi + 0x24], 8
lea eax, [edi + 0x10]
jb 0x476ca6
mov eax, dword [eax]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
dec dword [ebx + 4]
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 0x58]
add edx, ecx
lea eax, [ecx + eax*4]
cmp edx, eax
jae 0x476cd5
sub eax, edx
and eax, 0xfffffffc
push eax
lea eax, [edx + 4]
push eax
push edx
call fcn.004b4200
add esp, 0xc
push 1
mov ecx, edi
call fcn.004759e0
mov esi, dword [ebp - 0x34]
mov ecx, ebx
jmp 0x476c10
test esi, esi
je 0x476cf9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp dword [ebp + 0x10], 0
je 0x476e1c
mov esi, dword [ebp - 0x30]
cmp dword [esi + 0x50], 0
jne 0x476e6b
add esi, 0x24
lea eax, [ebp - 0x28]
cmp ebx, 0x10
jb 0x476d1d
mov eax, edi
push dword [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00477070
mov ecx, eax
test ecx, ecx
jns 0x476d4c
push dword [ebp - 0x50]
mov ebx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push dword [ebp - 0x48]
mov ecx, ebx
push 1
push 1
push eax
push esi
call fcn.00476400
jmp 0x476e1f
mov eax, dword [esi]
mov esi, dword [eax + ecx*4]
lea edi, [esi + 8]
call fcn.004774f0
mov dword [edi], eax
mov dword [edi + 4], edx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push 0xffffffffffffffff
push str.SoftwareTracker_SoftwareVault
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.004031a0
push 0xffffffffffffffff
push 0x64d1fc
lea ecx, [ebp - 0x40]
call fcn.004031a0
push 0xffffffffffffffff
push str._Removed
lea ecx, [ebp - 0x40]
call fcn.004031a0
push 0xffffffffffffffff
push 0x64d1fc
lea ecx, [ebp - 0x40]
call fcn.004031a0
add esi, 0x10
cmp dword [esi + 0x14], 8
jb 0x476dc5
mov esi, dword [esi]
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x40]
call fcn.004031a0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x476ddc
mov eax, 0x649aa0
lea ecx, [ebp - 0x2c]
push ecx
push 0x2011f
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x476e14
push 8
push edi
push 0xb
push eax
push 0x65bc2c
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x40]
call fcn.00403130
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x54]
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.00471510
mov eax, dword [ebx]
mov ecx, ebx
mov byte [ebp - 4], 5
call dword [eax + 8]
mov dword [ebp - 4], 6
test edi, edi
je 0x476e4b
push edi
call fcn.00446420
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b2558
mov esp, ebp
pop ebp
ret 0xc
mov ebx, esi
jmp 0x476e1f