Function at 0x40ace6
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x428acd
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1164
call fcn.0041c660
mov eax, dword [0x437084]
xor eax, esp
mov dword [esp + 0x1160], eax
push ebx
push esi
push edi
mov eax, dword [0x437084]
xor eax, esp
push eax
lea eax, [esp + 0x1178]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1180], ebx
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x54], eax
mov eax, esi
call fcn.0040a247
mov dword [esp + 0x10], eax
cmp eax, ebx
jge 0x40b0d4
or dword [esp + 0x1180], 0xffffffff
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x1178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1160]
xor ecx, esp
call fcn.00416782
mov esp, ebp
pop ebp
ret 0x10
push str.Delete
push esi
mov dword [esp + 0x40], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
push str.ForceRemove
sbb edi, edi
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40adcb
cmp edi, ebx
je 0x40ae8e
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.0040a247
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x40b2fd
cmp dword [ebp + 0x10], ebx
je 0x40ae8e
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x1180], 1
push 0x5c
mov eax, esi
call fcn.0040a1fc
pop ecx
test eax, eax
jne 0x40b2b4
push esi
call fcn.0040a84b
test eax, eax
je 0x40ae41
mov eax, dword [esp + 0x24]
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.0040941f
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
cmp edi, ebx
je 0x40ae83
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.0040a247
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x40b2e5
mov ecx, dword [esp + 0x14]
mov edi, esi
call fcn.0040a8af
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x40b2e5
mov byte [esp + 0x1180], bl
mov dword [esp + 0x2c], ebx
jmp 0x40b089
mov byte [esp + 0x1180], bl
mov dword [esp + 0x2c], ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.NoRemove
push esi
call edi
test eax, eax
jne 0x40aebb
mov ecx, dword [esp + 0x14]
mov eax, esi
mov dword [esp + 0x38], ebx
call fcn.0040a247
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x40b2fd
push 0x42e5f8
push esi
call edi
test eax, eax
jne 0x40aff6
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x16c]
call fcn.0040a247
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x40b2fd
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.0040a247
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x40b2fd
cmp byte [esi], 0x3d
jne 0x40b2bf
cmp dword [ebp + 0x10], ebx
je 0x40af6e
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov byte [esp + 0x1180], 2
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x58], eax
push esi
lea eax, [esp + 0x170]
push eax
lea edx, [esp + 0x60]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.0040a33a
mov dword [esp + 0x10], eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
cmp eax, ebx
jl 0x40b2f2
mov byte [esp + 0x1180], bl
mov dword [esp + 0x5c], ebx
jmp 0x40b089
cmp dword [ebp + 0x14], ebx
jne 0x40afe6
cmp dword [esp + 0x38], ebx
je 0x40afe6
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x1180], 3
push ebx
push dword [esp + 0x28]
mov eax, 0x20006
lea ebx, [esp + 0x44]
call fcn.004093cd
xor ebx, ebx
cmp eax, ebx
jne 0x40b339
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x16c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x40afca
cmp eax, 2
jne 0x40b322
mov byte [esp + 0x1180], bl
cmp edi, ebx
je 0x40afe0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
xor ebx, ebx
mov ecx, dword [esp + 0x14]
mov edi, esi
call fcn.0040a8af
jmp 0x40b0c8
push 0x5c
mov eax, esi
call fcn.0040a1fc
pop ecx
test eax, eax
jne 0x40b2bf
cmp dword [ebp + 0x10], ebx
je 0x40b0e2
push esi
push dword [esp + 0x28]
mov eax, 0x2001f
lea ebx, [esp + 0x20]
call fcn.004093cd
test eax, eax
je 0x40b04f
push esi
push dword [esp + 0x28]
mov eax, 0x20019
call fcn.004093cd
test eax, eax
je 0x40b04f
push esi
push dword [esp + 0x28]
mov eax, ebx
call fcn.00409376
test eax, eax
jne 0x40b365
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.0040a247
mov dword [esp + 0x10], eax
test eax, eax
js 0x40b361
cmp byte [esi], 0x3d
jne 0x40b087
mov ecx, dword [esp + 0x14]
push esi
push 0
lea edx, [esp + 0x20]
call fcn.0040a33a
mov dword [esp + 0x10], eax
test eax, eax
js 0x40b361
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x40b0d4
cmp byte [esi], 0x7b
jne 0x40b0d4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40b0d4
mov ecx, dword [esp + 0x14]
push ebx
push dword [ebp + 0x10]
push dword [esp + 0x20]
push esi
call fcn.0040ace6
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x40b2fd
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.0040a247
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x40b2fd
cmp byte [esi], 0x7d
jne 0x40ad9a
jmp 0x40b2fd
cmp dword [ebp + 0x14], ebx
jne 0x40b102
push esi
push dword [esp + 0x28]
mov eax, 0x20019
lea ebx, [esp + 0x20]
call fcn.004093cd
mov dword [esp + 0x34], eax
xor ebx, ebx
jmp 0x40b10a
mov dword [esp + 0x34], 2
cmp dword [esp + 0x34], ebx
je 0x40b117
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x6c]
push 0x104
push eax
call fcn.00417c77
push eax
call fcn.004087be
mov ecx, dword [esp + 0x28]
add esp, 0x14
mov eax, esi
call fcn.0040a247
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x40b2fd
mov ecx, dword [esp + 0x14]
mov edi, esi
call fcn.0040a8af
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x40b2fd
cmp byte [esi], 0x7b
jne 0x40b1ab
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40b1ab
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push ebx
push dword [esp + 0x20]
push esi
call fcn.0040ace6
mov dword [esp + 0x10], eax
cmp eax, ebx
jge 0x40b194
cmp dword [ebp + 0x14], ebx
je 0x40b2fd
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.0040a247
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x40b2fd
cmp dword [esp + 0x34], 2
mov eax, dword [esp + 0x54]
mov dword [ebp + 0x14], eax
je 0x40b0d4
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x40b1dd
cmp dword [esp + 0x54], ebx
jne 0x40b0d4
call fcn.00408865
mov dword [esp + 0x10], eax
jmp 0x40b2fd
cmp dword [esp + 0x54], ebx
je 0x40b21f
push dword [esp + 0x18]
call fcn.0040a87a
test eax, eax
je 0x40b21f
lea eax, [esp + 0x64]
push eax
call fcn.0040a84b
test eax, eax
je 0x40b0d4
cmp dword [esp + 0x38], ebx
je 0x40b0d4
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040941f
jmp 0x40b0d4
push dword [esp + 0x18]
call fcn.0040a87a
mov edi, eax
xor eax, eax
cmp dword [esp + 0x18], ebx
je 0x40b240
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
cmp eax, ebx
jne 0x40b393
cmp dword [esp + 0x38], ebx
je 0x40b0d4
cmp edi, ebx
jne 0x40b0d4
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov byte [esp + 0x1180], 4
mov eax, dword [esp + 0x24]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x64]
push eax
lea edi, [esp + 0x4c]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.004092f1
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
cmp eax, ebx
jne 0x40b3bd
mov byte [esp + 0x1180], bl
mov dword [esp + 0x4c], ebx
jmp 0x40b089
mov byte [esp + 0x1180], bl
mov dword [esp + 0x2c], ebx
or dword [esp + 0x1180], 0xffffffff
cmp dword [esp + 0x18], ebx
je 0x40b2db
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov eax, 0x80020009
jmp 0x40ad70
mov byte [esp + 0x1180], bl
mov dword [esp + 0x2c], ebx
jmp 0x40b2fd
mov byte [esp + 0x1180], bl
mov dword [esp + 0x5c], ebx
or dword [esp + 0x1180], 0xffffffff
cmp dword [esp + 0x18], ebx
je 0x40b319
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
jmp 0x40ad70
call fcn.00408865
mov dword [esp + 0x10], eax
mov byte [esp + 0x1180], bl
cmp edi, ebx
je 0x40b35d
push edi
jmp 0x40b353
call fcn.00408865
mov dword [esp + 0x10], eax
mov byte [esp + 0x1180], bl
cmp dword [esp + 0x3c], ebx
je 0x40b35d
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
xor ebx, ebx
jmp 0x40b2fd
call fcn.00408865
mov esi, eax
or dword [esp + 0x1180], 0xffffffff
cmp dword [esp + 0x18], 0
je 0x40b38a
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [esp + 0x18], 0
mov eax, esi
xor ebx, ebx
jmp 0x40ad70
call fcn.00408865
mov esi, eax
or dword [esp + 0x1180], 0xffffffff
cmp dword [esp + 0x18], ebx
je 0x40b3b6
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov eax, esi
jmp 0x40ad70
call fcn.00408865
mov dword [esp + 0x10], eax
mov byte [esp + 0x1180], bl
mov dword [esp + 0x4c], ebx
jmp 0x40b2fd