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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afb33
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
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 ecx, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0x90], ecx
test dword [ecx + 0xd0], 0x400
mov dword [ebp - 0x9c], eax
je 0x46a9f5
push dword [ebp + 0x10]
push esi
push ecx
call fcn.0046b0d0
add esp, 0xc
jmp 0x46b0a5
push 4
push 0
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
call fcn.004089b0
mov dword [ebp - 4], 0
push eax
call fcn.0046ba00
add esp, 4
mov dword [ebp - 0xa4], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00402b30
push 0xffffffffffffffff
push 5
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.004089b0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push str.AutorunsDisabled
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004072a0
add esp, 0xc
mov byte [ebp - 4], 2
cmp byte [ebp + 0x10], 0
je 0x46abcf
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
mov ecx, dword [ebp - 0x14]
cmovae edx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x98], edx
mov dword [ebp - 0xac], ecx
cmp edi, ecx
ja 0x46aaa9
lea eax, [edi + edi]
mov dword [ebp - 0x18], edi
cmp ecx, 8
lea esi, [ebp - 0x28]
push eax
cmovae esi, dword [ebp - 0x28]
push edx
push esi
call fcn.0047eed0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x46ab5a
cmp edi, 0x7ffffffe
ja 0x46b0c0
mov esi, edi
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x46aac9
mov esi, SysReAllocString
jmp 0x46aae7
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x46aadf
mov esi, SysReAllocString
jmp 0x46aae7
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.004029b0
mov dword [ebp - 0x14], esi
lea esi, [edi + edi]
push esi
push dword [ebp - 0x98]
mov dword [ebp - 0x18], edi
mov edi, eax
push edi
mov dword [ebp - 0x94], eax
call fcn.0047eed0
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp - 0xac]
cmp eax, 8
jb 0x46ab57
mov edx, dword [ebp - 0x28]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46ab4d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b0c5
push ecx
push edx
call fcn.0047dc2a
add esp, 8
mov dword [ebp - 0x28], edi
mov edi, str.AutorunsDisabled
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x46ab62
mov edx, dword [ebp - 0x2c]
sub edi, ecx
mov ecx, dword [ebp - 0x30]
mov eax, edx
sar edi, 1
sub eax, ecx
mov dword [ebp - 0x98], ecx
cmp edi, eax
ja 0x46abba
lea eax, [ecx + edi]
cmp edx, 8
lea esi, [ebp - 0x40]
mov dword [ebp - 0x30], eax
cmovae esi, dword [ebp - 0x40]
lea eax, [edi + edi]
push eax
push str.AutorunsDisabled
lea ecx, [esi + ecx*2]
push ecx
call fcn.0047eed0
mov eax, dword [ebp - 0x98]
add esp, 0xc
add eax, edi
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x46abcf
push edi
push str.AutorunsDisabled
push dword [ebp - 0xa0]
lea ecx, [ebp - 0x40]
push edi
call fcn.00406590
xor edi, edi
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0xc8], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x94]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push 0x3011f
push edi
push eax
push dword [ebp - 0xa4]
mov dword [ebp - 0x94], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xa8], eax
jne 0x46b05e
mov dword [ebp - 0xcc], edi
mov edi, dword [ebp - 0x94]
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xcc], 0x100
test edi, edi
je 0x46b05e
mov esi, dword [ebp - 0x90]
add esi, 0xb4
mov dword [ebp - 0xbc], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x46ac69
mov eax, dword [esi]
lea ecx, [ebp - 0xbc]
push ecx
push 0
lea ecx, [ebp - 0xc0]
push ecx
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46ade6
push dword [ebp - 0xbc]
lea eax, [ebp - 0x90]
push eax
call fcn.00402860
add esp, 8
mov byte [ebp - 4], 4
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x46acae
mov eax, dword [esi]
lea ecx, [ebp - 0xbc]
push ecx
push dword [ebp - 0x90]
lea ecx, [ebp - 0xc0]
push ecx
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa0]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x94]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push dword [ebp - 0xa4]
mov dword [ebp - 0x94], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x46ad94
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], 0
test eax, eax
je 0x46ad94
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x46ad59
mov ecx, dword [esi]
push dword [ebp - 0xbc]
push dword [ebp - 0x90]
push dword [ebp - 0xc0]
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x46ad94
cmp dword [esi + 0x14], 8
jb 0x46ad81
mov esi, dword [esi]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
sete byte [ebp - 0x89]
jmp 0x46ad9b
mov byte [ebp - 0x89], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x46adba
push eax
call dword [ebp - 0xa8]
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x46addb
push eax
call fcn.0047dfa3
add esp, 4
mov eax, dword [ebp - 0xa8]
jmp 0x46b065
xor eax, eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
push 0x4c5fe4
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004072a0
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0xa0], ecx
mov byte [ebp - 4], 7
mov byte [ebp - 4], 8
cmp dword [esi + 0x14], 8
mov edx, dword [esi + 0x10]
mov dword [ebp - 0xac], esi
jb 0x46ae43
mov eax, dword [esi]
mov dword [ebp - 0xac], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x90], eax
mov eax, dword [ecx + 0x14]
sub eax, dword [ebp - 0x90]
cmp edx, eax
ja 0x46aeb6
mov eax, dword [ebp - 0x90]
add eax, edx
mov dword [ebp - 0x98], ecx
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0xd4], eax
mov dword [ecx + 0x10], eax
mov eax, ecx
jb 0x46ae80
mov eax, dword [ecx]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x90]
lea ecx, [eax + ecx*2]
lea eax, [edx + edx]
push eax
push dword [ebp - 0xac]
push ecx
call fcn.0047eed0
mov eax, dword [ebp - 0x98]
add esp, 0xc
mov ecx, dword [ebp - 0xd4]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0xa0]
jmp 0x46aec9
push edx
push dword [ebp - 0xac]
push dword [ebp - 0xa0]
push edx
call fcn.00406590
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0x9c]
or eax, 2
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x98]
cmovae ecx, dword [ebp - 0x58]
xor edx, edx
push eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x90], 0
push eax
push edx
push 0xf013f
push edx
push edx
push edx
push ecx
push dword [ebp - 0xa4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x46af7a
xor eax, eax
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0xb4], 0x100
mov eax, dword [ebp - 0x9c]
and eax, 0xfffffffd
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x46afc7
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46afbd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b0ca
push ecx
push edx
call fcn.0047dc2a
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x88]
call fcn.00402b30
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x46b026
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x46affe
mov ecx, dword [esi]
push eax
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCopyTreeW]
test eax, eax
jne 0x46b026
cmp dword [esi + 0x14], 8
jb 0x46b013
mov esi, dword [esi]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
sete byte [ebp - 0x89]
jmp 0x46b02d
mov byte [ebp - 0x89], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x46b04c
push eax
call dword [ebp - 0xa8]
mov dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xb4], 0
jmp 0x46b065
mov byte [ebp - 0x89], 0
mov byte [ebp - 4], 2
test edi, edi
je 0x46b07a
push edi
call eax
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402b30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402b30
mov al, byte [ebp - 0x89]
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
call fcn.00482fbf
int3