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

Disassembly:
push 0xffffffffffffffff
push 0x4d0548
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ff0f4]
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 0x41168d
cmp byte [0x512f8c], bl
je 0x411686
test al, al
je 0x411686
mov edi, 0x20119
jmp 0x4116a3
mov edi, 0x20019
jmp 0x4116a3
cmp byte [0x512f8c], bl
je 0x41169e
mov edi, 0x20106
test al, al
jne 0x4116a3
mov edi, 0x20006
lea ecx, [esp + 0x1c]
call fcn.00405840
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x40]
call fcn.00405840
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x3c]
push 0x5c
push eax
call fcn.004ab1f7
add esp, 8
cmp eax, ebx
je 0x4116df
sub eax, dword [esp + 0x3c]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x4116ef
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x44]
call fcn.00407dc0
jmp 0x411751
push esi
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x44]
call fcn.00417230
mov byte [esp + 0x30], 3
push eax
lea ecx, [esp + 0x20]
call fcn.00407dc0
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x20]
call fcn.00405410
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.00417180
mov byte [esp + 0x30], 4
push eax
lea ecx, [esp + 0x44]
call fcn.00407dc0
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x20]
call fcn.00405410
cmp ebp, 0x80000001
jne 0x41178d
mov eax, dword [esp + 0x40]
cmp dword [eax - 0xc], ebx
jl 0x41177f
push 0x4ea40c
push eax
call fcn.004aa1b6
add esp, 8
cmp eax, ebx
je 0x41177f
sub eax, dword [esp + 0x40]
sar eax, 1
cmp eax, 0xffffffff
jne 0x41178d
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
jmp 0x4117a0
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 0x411891
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 0x411881
cmp eax, 2
je 0x4118d6
cmp eax, 5
jne 0x411886
test bl, bl
jne 0x411886
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 0x411814
cmp eax, dword [esi]
jne 0x411814
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41184f
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 0x4118ee
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.004aa222
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.00411c30
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 0x4117c4
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.00405410
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x1c]
call fcn.00405410
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00405410
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 0x411886
jmp 0x411881
call fcn.0040b510
int3