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

Disassembly:
push 0xffffffffffffffff
push 0x4d0b48
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 0x41088d
cmp byte [0x512f88], bl
je 0x410886
test al, al
je 0x410886
mov edi, 0x20119
jmp 0x4108a3
mov edi, 0x20019
jmp 0x4108a3
cmp byte [0x512f88], bl
je 0x41089e
mov edi, 0x20106
test al, al
jne 0x4108a3
mov edi, 0x20006
lea ecx, [esp + 0x1c]
call fcn.00404dc0
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x40]
call fcn.00404dc0
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x3c]
push 0x5c
push eax
call fcn.004ab6e4
add esp, 8
cmp eax, ebx
je 0x4108df
sub eax, dword [esp + 0x3c]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x4108ef
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x44]
call fcn.00407770
jmp 0x410951
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.00407770
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x20]
call fcn.00404f30
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.00407770
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x20]
call fcn.00404f30
cmp ebp, 0x80000001
jne 0x41098d
mov eax, dword [esp + 0x40]
cmp dword [eax - 0xc], ebx
jl 0x41097f
push 0x4ea3e4
push eax
call fcn.004aa6a3
add esp, 8
cmp eax, ebx
je 0x41097f
sub eax, dword [esp + 0x40]
sar eax, 1
cmp eax, 0xffffffff
jne 0x41098d
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
jmp 0x4109a0
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 0x410a91
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 0x410a81
cmp eax, 2
je 0x410ad6
cmp eax, 5
jne 0x410a86
test bl, bl
jne 0x410a86
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 0x410a14
cmp eax, dword [esi]
jne 0x410a14
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x410a4f
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 0x410aee
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.004aa70f
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.00410e30
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 0x4109c4
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.00404f30
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x1c]
call fcn.00404f30
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00404f30
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 0x410a86
jmp 0x410a81
call fcn.0040aae0
int3