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

Disassembly:
push 0xffffffffffffffff
push 0x453570
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x469524]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], ebp
call fcn.0042121c
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40fceb
push 0x80004005
call fcn.0040ad10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea esi, [esp + 0x1c]
mov byte [esp + 0x28], 1
call fcn.0040f520
mov eax, dword [eax]
push str.910b
push eax
call fcn.0043b4e8
add esp, 8
cmp eax, ebp
mov eax, dword [esp + 0x1c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40fe1a
push str.SoftwareMicrosoftWindowsCurrentVersionExtSettings
lea ecx, [esp + 0x1c]
push 0x45aab8
push ecx
call fcn.0040a6f0
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0xf003f
push ebp
push eax
push SysReAllocStringLen
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40fd9b
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
push ecx
push edx
call ebx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [esp + 0x1c], ebp
je 0x40fdc8
push str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionExtSettings
push 0x45aab8
lea edx, [esp + 0x20]
push edx
jmp 0x40fdd7
push str.SoftwareMicrosoftWindowsCurrentVersionExtSettings
push 0x45aab8
lea eax, [esp + 0x20]
push eax
call fcn.0040a6f0
mov esi, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebp
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x40fef8
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40fef8
mov edx, dword [esp + 0x30]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionExtSettings
lea eax, [esp + 0x20]
push str._s_s
push eax
call fcn.0040a6f0
mov edx, dword [esp + 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebp
push edx
push SysReAllocStringLen
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40fe76
mov eax, dword [esp + 0x14]
push str.Flags
push eax
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [esp + 0x1c], 0
je 0x40fead
mov eax, dword [esp + 0x30]
push eax
push str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionExtSettings
push str._s_s
lea ecx, [esp + 0x24]
push ecx
jmp 0x40fec1
mov edx, dword [esp + 0x30]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionExtSettings
push str._s_s
lea eax, [esp + 0x24]
push eax
call fcn.0040a6f0
mov esi, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x40fef8
mov edx, dword [esp + 0x14]
push str.Flags
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebx
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret