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

Disassembly:
push 0xffffffffffffffff
push 0x481b88
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov al, byte [esp + 0x44]
xor ebp, ebp
mov dword [esp + 0x30], ebp
cmp byte [esp + 0x40], 0
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], ebp
je 0x409c2c
cmp byte [0x4aec54], 0
je 0x409c25
test al, al
je 0x409c25
mov ebx, 0x20119
jmp 0x409c43
mov ebx, 0x20019
jmp 0x409c43
cmp byte [0x4aec54], 0
je 0x409c3e
mov ebx, 0x20106
test al, al
jne 0x409c43
mov ebx, 0x20006
lea eax, [esp + 0x1c]
push eax
call fcn.0040a6b0
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x40]
push ecx
call fcn.0040a6b0
mov byte [esp + 0x30], 2
mov edx, dword [esp + 0x3c]
push 0x5c
push edx
call fcn.00465e3b
add esp, 8
cmp eax, ebp
je 0x409c81
sub eax, dword [esp + 0x3c]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x409c90
lea eax, [esp + 0x3c]
lea edi, [esp + 0x40]
call fcn.00404b00
jmp 0x409cf1
lea eax, [esp + 0x20]
push eax
mov ecx, esi
lea edx, [esp + 0x40]
call fcn.0040aef0
mov byte [esp + 0x30], 3
lea edi, [esp + 0x1c]
call fcn.00404b00
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x20]
call fcn.00402880
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx - 0xc]
lea edx, [esp + 0x20]
sub ecx, esi
push edx
lea eax, [esp + 0x40]
dec ecx
push eax
call fcn.0040ae40
mov byte [esp + 0x30], 4
lea edi, [esp + 0x40]
call fcn.00404b00
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x20]
call fcn.00402880
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebp
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x409df9
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push ecx
push edx
xor bl, bl
call ebp
test eax, eax
je 0x409de9
cmp eax, 2
je 0x409e3e
cmp eax, 5
jne 0x409dee
test bl, bl
jne 0x409dee
mov esi, dword [esp + 0x40]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
mov ebx, esp
mov dword [esp + 0x24], esp
mov dword [esp + 0x28], ebx
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x409d7c
cmp eax, dword [esi]
jne 0x409d7c
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x409db7
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 0x409e56
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.00465848
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.0040a120
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 0x409d2c
mov byte [esp + 0x17], 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.00402880
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x1c]
call fcn.00402880
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00402880
mov al, byte [esp + 0x17]
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 0x409dee
jmp 0x409de9
call fcn.00403bc0
int3