Function at 0x40a890
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c87b
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.0047feb0
mov eax, dword [0x4d0018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x2264], eax
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
movq qword [ebp - 0x2260], xmm0
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2268], ecx
mov dword [ebp - 0x2260], 0
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2258], 0
push ebx
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00409be0
mov esi, eax
test esi, esi
js 0x40b0ae
cmp word [ebx], 0x7d
je 0x40b09b
nop dword [eax]
push str.Delete
push ebx
mov dword [ebp - 0x2254], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x4ac490
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40a963
test edi, edi
je 0x40aa65
mov ecx, dword [ebp - 0x2264]
push ebx
call fcn.00409be0
mov esi, eax
test esi, esi
js 0x40b09b
cmp dword [ebp + 0x10], 0
je 0x40aa65
movzx ecx, word [ebx]
mov eax, ebx
mov dword [ebp - 0x2238], 0
mov dword [ebp - 0x2230], 0
test cx, cx
je 0x40a9c4
mov edx, ecx
cmp dx, 0x5c
je 0x40a9bc
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x40a9a3
jmp 0x40a9c4
test eax, eax
jne 0x40b086
mov esi, 0x4ac884
nop dword [eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40aa1e
add esi, 4
cmp esi, 0x4ac8b4
jl 0x40a9d0
mov eax, dword [ebp - 0x2268]
lea ecx, [ebp - 0x2238]
push ebx
mov dword [ebp - 0x2238], eax
mov dword [ebp - 0x2234], 0
call fcn.00409390
mov dword [ebp - 0x2238], 0
mov dword [ebp - 0x2230], 0
test edi, edi
je 0x40aa5b
mov edi, dword [ebp - 0x2264]
mov ecx, edi
push ebx
call fcn.00409be0
mov esi, eax
test esi, esi
js 0x40b09b
push ebx
mov ecx, edi
call fcn.0040a2d0
mov esi, eax
test esi, esi
js 0x40b09b
mov dword [ebp - 0x2234], 0
jmp 0x40ada0
mov dword [ebp - 0x2234], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, dword [ebp - 0x2264]
test eax, eax
jne 0x40aa93
push ebx
mov ecx, edi
mov dword [ebp - 0x2254], eax
call fcn.00409be0
mov esi, eax
test esi, esi
js 0x40b09b
push 0x4ac488
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40ac21
lea eax, [ebp - 0x2218]
mov ecx, edi
push eax
call fcn.00409be0
mov esi, eax
test esi, esi
js 0x40b09b
push ebx
mov ecx, edi
call fcn.00409be0
mov esi, eax
test esi, esi
js 0x40b09b
cmp word [ebx], 0x3d
jne 0x40b086
cmp dword [ebp + 0x10], 0
je 0x40ab6f
xorps xmm0, xmm0
mov dword [ebp - 0x2220], 0
movq qword [ebp - 0x2228], xmm0
mov eax, dword [ebp - 0x2268]
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x2228], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x2228]
mov dword [ebp - 0x2224], 0
push eax
mov dword [ebp - 0x2220], 0
call fcn.00409da0
mov esi, eax
mov dword [ebp - 0x2228], 0
mov dword [ebp - 0x2224], 0
mov dword [ebp - 0x2220], 0
test esi, esi
js 0x40b09b
mov byte [ebp - 4], 0
mov dword [ebp - 0x2224], 0
jmp 0x40ada0
cmp dword [ebp + 0x14], 0
jne 0x40ac0a
cmp dword [ebp - 0x2254], 0
je 0x40ac0a
push 0x20006
push 0
push dword [ebp - 0x2268]
lea ecx, [ebp - 0x2244]
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
call fcn.004092b0
test eax, eax
jne 0x40b06a
mov edi, dword [ebp - 0x2244]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40abe5
cmp eax, 2
jne 0x40b054
test edi, edi
je 0x40abfa
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2244], 0
mov edi, dword [ebp - 0x2264]
mov dword [ebp - 0x2240], 0
push ebx
mov ecx, edi
call fcn.0040a2d0
mov esi, eax
test esi, esi
js 0x40b09b
jmp 0x40b048
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x40ac51
mov edx, ecx
nop dword [eax]
cmp dx, 0x5c
je 0x40ac49
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x40ac30
jmp 0x40ac51
test eax, eax
jne 0x40b086
cmp dword [ebp + 0x10], 0
je 0x40adfc
mov esi, dword [ebp - 0x2268]
lea ecx, [ebp - 0x2260]
push 0x2001f
push ebx
push esi
call fcn.004092b0
test eax, eax
je 0x40ad6d
push 0x20019
push ebx
push esi
lea ecx, [ebp - 0x2260]
call fcn.004092b0
test eax, eax
je 0x40ad6d
mov esi, dword [ebp - 0x2258]
mov dword [ebp - 0x2254], 0
test esi, esi
je 0x40ad08
cmp dword [esi], 0
je 0x40acfb
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b08d
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ad01
push 0
push dword [esi]
lea ecx, [ebp - 0x222c]
push ecx
lea ecx, [ebp - 0x2254]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2268]
call eax
jmp 0x40ad30
cmp dword [esi + 4], 0
jne 0x40ad08
mov eax, 1
jmp 0x40ad30
lea eax, [ebp - 0x222c]
push eax
lea eax, [ebp - 0x2254]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2268]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40b092
mov ecx, dword [ebp - 0x2260]
test ecx, ecx
je 0x40ad49
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x2254]
mov dword [ebp - 0x2260], edi
mov dword [ebp - 0x225c], 0
test eax, eax
jne 0x40b092
mov edi, dword [ebp - 0x2264]
push ebx
mov ecx, edi
call fcn.00409be0
mov esi, eax
test esi, esi
js 0x40b09b
cmp word [ebx], 0x3d
jne 0x40ada0
push ebx
push 0
lea eax, [ebp - 0x2260]
mov ecx, edi
push eax
call fcn.00409da0
mov esi, eax
test esi, esi
js 0x40b09b
cmp word [ebx], 0x7b
jne 0x40b048
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40adb0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40b048
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2260]
push ebx
call fcn.0040a890
mov esi, eax
test esi, esi
js 0x40b09b
push ebx
mov ecx, edi
call fcn.00409be0
mov esi, eax
test esi, esi
js 0x40b09b
jmp 0x40b048
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x40ae1e
push 0x20019
push ebx
push dword [ebp - 0x2268]
lea ecx, [ebp - 0x2260]
call fcn.004092b0
mov edi, eax
jmp 0x40ae23
mov edi, 2
test edi, edi
mov eax, 1
push 0xffffffffffffffff
cmove eax, esi
push ebx
mov dword [ebp - 0x221c], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0048b8a2
push eax
call fcn.00407140
mov ecx, dword [ebp - 0x2264]
add esp, 0x14
push ebx
call fcn.00409be0
mov esi, eax
test esi, esi
js 0x40b09b
mov ecx, dword [ebp - 0x2264]
push ebx
call fcn.0040a2d0
mov esi, eax
test esi, esi
js 0x40b09b
cmp word [ebx], 0x7b
jne 0x40aede
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ae87
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40aede
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2264]
push 0
push dword [ebp - 0x2260]
push ebx
call fcn.0040a890
mov esi, eax
test esi, esi
jns 0x40aec8
cmp dword [ebp - 0x221c], 0
je 0x40b09b
mov ecx, dword [ebp - 0x2264]
push ebx
call fcn.00409be0
mov esi, eax
test esi, esi
js 0x40b09b
cmp edi, 2
je 0x40b048
test edi, edi
je 0x40aefc
cmp dword [ebp + 0x14], 0
jne 0x40b048
mov ecx, edi
jmp 0x40b094
cmp dword [ebp + 0x14], 0
je 0x40af96
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2260]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40af96
cmp dword [ebp - 0x221c], eax
jbe 0x40af96
mov edi, 0x4ac884
nop dword [eax + eax]
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40b048
add edi, 4
cmp edi, 0x4ac8b4
jl 0x40af50
cmp dword [ebp - 0x2254], 0
je 0x40b048
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2260]
call fcn.00409390
jmp 0x40b048
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2260]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40afcf
xor edi, edi
jmp 0x40afdb
xor eax, eax
cmp eax, dword [ebp - 0x221c]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x2260]
xor eax, eax
test ecx, ecx
je 0x40aff6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2260], ecx
mov dword [ebp - 0x225c], 0
test eax, eax
jne 0x40b092
cmp dword [ebp - 0x2254], eax
je 0x40b048
test edi, edi
jne 0x40b048
mov eax, dword [ebp - 0x2268]
lea ecx, [ebp - 0x2250]
mov dword [ebp - 0x2250], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x224c], edi
mov dword [ebp - 0x2248], edi
call fcn.004091d0
mov dword [ebp - 0x2250], edi
test eax, eax
jne 0x40b092
cmp word [ebx], 0x7d
jne 0x40a930
jmp 0x40b09b
mov ecx, eax
call fcn.00408fe0
mov esi, eax
test edi, edi
je 0x40b09b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b09b
mov ecx, eax
call fcn.00408fe0
mov esi, eax
mov eax, dword [ebp - 0x2244]
test eax, eax
je 0x40b09b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b09b
mov esi, 0x80020009
jmp 0x40b09b
mov eax, 1
mov ecx, eax
call fcn.00408fe0
mov esi, eax
mov eax, dword [ebp - 0x2260]
test eax, eax
je 0x40b0ac
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047ecc2
mov esp, ebp
pop ebp
ret 0x10