Function at 0x46a300
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af9c5
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4e54fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x58]
mov edi, dword [ebp + 8]
mov ecx, esi
push 4
push 0
push eax
call fcn.004089b0
mov dword [ebp - 4], 0
push eax
call fcn.0046ba00
add esp, 4
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00402b30
push 0xffffffffffffffff
push 5
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.004089b0
mov dword [ebp - 4], 1
xor esi, esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov byte [ebp - 4], 2
lea eax, [edi + 0xb4]
cmp dword [eax + 0x14], 8
xorps xmm0, xmm0
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x60], eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
jb 0x46a3aa
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
cmp edi, 0x7ffffffe
ja 0x46a52e
mov dword [ebp - 0x14], 7
cmp edi, 8
jae 0x46a3ce
mov dword [ebp - 0x18], edi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
jmp 0x46a417
mov esi, edi
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x46a3e2
mov esi, SysReAllocString
jmp 0x46a3ec
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.004029b0
lea ecx, [edi*2 + 2]
mov dword [ebp - 0x28], eax
push ecx
push dword [ebp - 0x60]
mov dword [ebp - 0x18], edi
push eax
mov dword [ebp - 0x14], esi
call fcn.0047eed0
add esp, 0xc
xor esi, esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push 0x1010b
push 0
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x60], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46a492
mov esi, dword [ebp - 0x60]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], 0x100
test esi, esi
je 0x46a492
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
jne 0x46a477
mov byte [ebp - 0x59], 1
jmp 0x46a496
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
sete byte [ebp - 0x59]
jmp 0x46a496
mov byte [ebp - 0x59], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x46a4d0
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46a4c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46a533
push ecx
push edx
call fcn.0047dc2a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
test esi, esi
je 0x46a4fa
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402b30
mov al, byte [ebp - 0x59]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047df69
mov esp, ebp
pop ebp
ret
call fcn.00402890
call fcn.00482fbf
int3