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

Disassembly:
push 0xffffffffffffffff
push 0x4d1528
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5000f4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov al, byte [esp + 0x44]
mov ebp, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x18], ebx
cmp byte [esp + 0x40], bl
je 0x4109bd
cmp byte [0x513f88], bl
je 0x4109b6
test al, al
je 0x4109b6
mov edi, 0x20119
jmp 0x4109d3
mov edi, 0x20019
jmp 0x4109d3
cmp byte [0x513f88], bl
je 0x4109ce
mov edi, 0x20106
test al, al
jne 0x4109d3
mov edi, 0x20006
lea ecx, [esp + 0x1c]
call fcn.00404eb0
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x40]
call fcn.00404eb0
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x3c]
push 0x5c
push eax
call fcn.004ac0ec
add esp, 8
cmp eax, ebx
je 0x410a0f
sub eax, dword [esp + 0x3c]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x410a1f
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x44]
call fcn.00407780
jmp 0x410a81
push esi
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x44]
call fcn.004175a0
mov byte [esp + 0x30], 3
push eax
lea ecx, [esp + 0x20]
call fcn.00407780
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x20]
call fcn.00405020
mov eax, dword [esp + 0x3c]
mov eax, dword [eax - 0xc]
sub eax, esi
dec eax
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x44]
call fcn.004174f0
mov byte [esp + 0x30], 4
push eax
lea ecx, [esp + 0x44]
call fcn.00407780
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x20]
call fcn.00405020
cmp ebp, 0x80000001
jne 0x410abd
mov eax, dword [esp + 0x40]
cmp dword [eax - 0xc], ebx
jl 0x410aaf
push 0x4eb404
push eax
call fcn.004ab0ab
add esp, 8
cmp eax, ebx
je 0x410aaf
sub eax, dword [esp + 0x40]
sar eax, 1
cmp eax, 0xffffffff
jne 0x410abd
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
jmp 0x410ad0
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x410bc1
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push edx
push eax
xor bl, bl
call ebp
test eax, eax
je 0x410bb1
cmp eax, 2
je 0x410c06
cmp eax, 5
jne 0x410bb6
test bl, bl
jne 0x410bb6
mov esi, dword [esp + 0x40]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov ebx, esp
mov dword [esp + 0x24], esp
mov dword [esp + 0x28], ebx
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x410b44
cmp eax, dword [esi]
jne 0x410b44
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x410b7f
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x410c1e
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004ab117
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
mov byte [esp + 0x34], 6
mov ecx, dword [esp + 0x1c]
push ecx
mov byte [esp + 0x38], 2
call fcn.00410f60
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x20]
add esp, 8
push edx
push eax
mov bl, 1
call ebp
test eax, eax
jne 0x410af4
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x40]
call fcn.00405020
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x1c]
call fcn.00405020
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00405020
mov al, byte [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
push ecx
push 0
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
jne 0x410bb6
jmp 0x410bb1
call fcn.0040ac50
int3