Function at 0x46c860
Capabilities:
Delete registry key

Disassembly:
push ebp
lea ebp, [esp - 0x294]
sub esp, 0x294
push 0xffffffffffffffff
push 0x57d430
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6531f0]
xor eax, ebp
mov dword [ebp + 0x290], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x66b0c4]
push 0x104
lea ecx, [ebp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x46caa8
mov dword [ebp - 4], 0
lea eax, [ebp + 0x38]
lea ecx, [ebp]
call fcn.0040c640
mov byte [ebp - 4], 1
push 1
lea ebx, [ebp]
call fcn.0046d0d0
cmp eax, 0xffffffff
je 0x46ca9c
mov ecx, dword [ebp + 0x14]
dec ecx
lea edx, [eax + 1]
lea eax, [ebp - 0x2c]
push eax
mov eax, ebx
push eax
call fcn.0040c900
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.0040e380
mov byte [ebp - 4], 1
lea esi, [ebp - 0x2c]
call fcn.0042f9c0
lea ecx, [ebp + 0x240]
push ecx
mov ecx, 0x631224
call fcn.00425b90
add esp, 4
mov eax, str.AppID_
lea ecx, [ebp - 0x2c]
call fcn.0040c640
mov byte [ebp - 4], 3
push eax
lea edx, [ebp + 0x1c]
push edx
lea edi, [ebp + 0x240]
call fcn.0044daf0
add esp, 8
mov byte [ebp - 4], 5
lea esi, [ebp - 0x2c]
call fcn.0042f9c0
mov eax, dword [ebp + 0x20]
cmp dword [ebp + 0x29c], 0
je 0x46c9a3
mov esi, 8
cmp dword [ebp + 0x34], esi
jae 0x46c96d
lea eax, [ebp + 0x20]
push eax
mov ecx, str.sshxsrv
mov edx, 0x630230
call fcn.0046cf90
add esp, 4
cmp dword [ebp + 0x34], esi
mov ecx, dword [ebp + 0x20]
jae 0x46c98b
lea ecx, [ebp + 0x20]
push 1
push 0x10
mov edi, str.sshxsrv
mov eax, str.LocalService
call fcn.00425af0
add esp, 8
jmp 0x46c9b8
cmp dword [ebp + 0x34], 8
jae 0x46c9ac
lea eax, [ebp + 0x20]
push eax
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, str.AppID_
lea ecx, [ebp - 0x48]
call fcn.0040c640
mov bl, 6
mov byte [ebp - 4], bl
lea ecx, [ebp]
push ecx
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.00412d20
add esp, 0xc
mov byte [ebp - 4], 7
push 0xffffffffffffffff
push 0
lea ecx, [ebp + 0x1c]
call fcn.0040e380
mov byte [ebp - 4], bl
lea esi, [ebp - 0x2c]
call fcn.0042f9c0
mov byte [ebp - 4], 5
lea esi, [ebp - 0x48]
call fcn.0042f9c0
mov eax, dword [ebp + 0x20]
cmp dword [ebp + 0x29c], 0
je 0x46ca6b
mov esi, 8
cmp dword [ebp + 0x34], esi
jae 0x46ca1b
lea eax, [ebp + 0x20]
push eax
mov ecx, 0x630230
mov edx, ecx
call fcn.0046cf90
add esp, 4
cmp dword [ebp + 0x34], esi
mov ecx, dword [ebp + 0x20]
jae 0x46ca36
lea ecx, [ebp + 0x20]
lea eax, [ebp + 0x240]
lea esi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x46ca40
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push 1
push eax
lea edi, [ebp + 0x240]
mov eax, str.AppID
call fcn.00425af0
add esp, 8
jmp 0x46ca80
cmp dword [ebp + 0x34], 8
jae 0x46ca74
lea eax, [ebp + 0x20]
push eax
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov byte [ebp - 4], 1
lea esi, [ebp + 0x1c]
call fcn.0042f9c0
mov byte [ebp - 4], 0
lea esi, [ebp]
call fcn.0042f9c0
xor eax, eax
jmp 0x46caad
mov byte [ebp - 4], 0
lea esi, [ebp]
call fcn.0042f9c0
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x290]
xor ecx, ebp
call fcn.004fdb4a
add ebp, 0x294
mov esp, ebp
pop ebp
ret