Function at 0x46a540
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afa88
mov eax, dword fs:[0]
push eax
sub esp, 0x88
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 eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, esi
push 4
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.004089b0
mov dword [ebp - 4], 0
push eax
call fcn.0046ba00
add esp, 4
mov dword [ebp - 0x84], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00402b30
push 0xffffffffffffffff
push 5
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004089b0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
or edi, 0xffffffff
test eax, eax
je 0x46a5fa
dec eax
mov ecx, edi
cmp eax, edi
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea esi, [edx + ecx*2]
je 0x46a5f4
cmp esi, edx
je 0x46a5fa
sub esi, 2
cmp word [esi], 0x5c
jne 0x46a5e7
sub esi, edx
sar esi, 1
jmp 0x46a5fd
or esi, 0xffffffff
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004089b0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x70]
push esi
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.004089b0
mov esi, eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x46a65a
mov ecx, eax
call fcn.00402b30
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00402b30
xor esi, esi
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x7c]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push 0xf003f
push esi
push eax
push dword [ebp - 0x84]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46a8e3
mov esi, dword [ebp - 0x7c]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x90], eax
test esi, esi
je 0x46a8e3
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0046b8c0
add esp, 0xc
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x78]
add eax, 0xb4
cmp dword [eax + 0x14], 8
jb 0x46a6fb
mov eax, dword [eax]
movzx eax, word [eax]
lea ecx, [ebp - 0x80]
push eax
mov dword [ebp - 0x7c], eax
call fcn.00415660
mov eax, dword [ebp - 0x80]
cmp dword [eax - 0xc], 0
jle 0x46a8ac
push dword [ebp - 0x7c]
push eax
call fcn.0047fa6d
add esp, 8
test eax, eax
je 0x46a8ac
sub eax, dword [ebp - 0x80]
sar eax, 1
js 0x46a8ac
mov edi, dword [ebp - 0x78]
add edi, 0x60
mov dword [ebp - 0x78], edi
cmp dword [edi + 0x14], 8
jb 0x46a74a
mov eax, dword [edi]
mov dword [ebp - 0x78], eax
push 1
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x88]
call fcn.0041e910
mov byte [ebp - 4], 6
push dword [ebp - 0x78]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00404f30
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x80]
push 0x4c7a1c
push dword [eax]
call fcn.00419310
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 6
or ecx, 0xffffffff
mov edx, dword [ebp - 0x84]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x46a7a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x88]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46a7cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x78], 0
jne 0x46a85c
push 1
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x84]
call fcn.0041e910
mov byte [ebp - 4], 0xa
cmp dword [edi + 0x14], 8
jb 0x46a7f1
mov edi, dword [edi]
push eax
lea eax, [ebp - 0x88]
push edi
push eax
call fcn.0040a8e0
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x80]
push 0x4c7a1c
push dword [eax]
call fcn.00419310
mov byte [ebp - 4], 0xa
or edi, 0xffffffff
mov edx, dword [ebp - 0x88]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46a839
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x84]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46a85f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46a85f
or edi, 0xffffffff
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x80]
test eax, eax
jne 0x46a87b
mov eax, 0xd
jmp 0x46a8bf
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x78], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x46a883
sub edx, dword [ebp - 0x78]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x46a8bf
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
sete byte [ebp - 0x71]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x80]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x46a8e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46a8e7
mov byte [ebp - 0x71], 0
mov byte [ebp - 4], 2
test esi, esi
je 0x46a900
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402b30
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x46a953
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46a949
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46a985
push ecx
push edx
call fcn.0047dc2a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov al, byte [ebp - 0x71]
mov dword [ebp - 0x14], 7
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.00482fbf
int3