Function at 0x407b99
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x466e13
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1164
call fcn.00456a40
mov eax, dword [0x4946a0]
xor eax, esp
mov dword [esp + 0x1160], eax
push ebx
push esi
push edi
mov eax, dword [0x4946a0]
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 edi, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x3c], eax
mov eax, esi
mov dword [esp + 0x1180], edi
call fcn.004071d2
mov ebx, eax
cmp ebx, edi
jl 0x407fc8
cmp byte [esi], 0x7d
je 0x407fc6
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push esi
mov dword [esp + 0x34], 1
call ebx
neg eax
push str.ForceRemove
sbb edi, edi
push esi
inc edi
call ebx
test eax, eax
je 0x407c51
test edi, edi
je 0x407cfb
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.004071d2
mov ebx, eax
test ebx, ebx
js 0x407fb5
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x407cfb
push 0x5c
mov eax, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.0040718a
pop ecx
test eax, eax
jne 0x408102
push esi
call fcn.004076cb
test eax, eax
je 0x407cbf
mov eax, dword [esp + 0x24]
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00406607
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
cmp edi, ebx
je 0x407cf7
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.004071d2
mov ebx, eax
test ebx, ebx
js 0x407fb5
mov ecx, dword [esp + 0x14]
mov edi, esi
call fcn.0040772c
mov ebx, eax
test ebx, ebx
js 0x407fb5
and dword [esp + 0x34], 0
jmp 0x4080ab
mov dword [esp + 0x34], ebx
push str.NoRemove
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x407d24
and dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.004071d2
mov ebx, eax
test ebx, ebx
js 0x407fb5
push 0x474db8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x407e43
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x16c]
call fcn.004071d2
mov ebx, eax
test ebx, ebx
js 0x407fb5
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.004071d2
mov ebx, eax
test ebx, ebx
js 0x407fb5
cmp byte [esi], 0x3d
jne 0x40811c
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x407dcc
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x1180], 1
mov dword [esp + 0x4c], eax
push esi
lea eax, [esp + 0x170]
push eax
lea edx, [esp + 0x54]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
call fcn.004072c5
mov ebx, eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
cmp ebx, edi
jl 0x408123
mov byte [esp + 0x1180], 0
mov dword [esp + 0x50], edi
jmp 0x4080ab
cmp dword [ebp + 0x14], edi
jne 0x407e33
cmp dword [esp + 0x2c], edi
je 0x407e33
push edi
push dword [esp + 0x28]
mov eax, 0x20006
lea ebx, [esp + 0x48]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
call fcn.00406583
test eax, eax
jne 0x40813e
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x16c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x407e1e
cmp eax, 2
jne 0x40812c
test edi, edi
je 0x407e2e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [esp + 0x40], 0
and dword [esp + 0x44], 0
mov ecx, dword [esp + 0x14]
mov edi, esi
call fcn.0040772c
jmp 0x4080ea
push 0x5c
mov eax, esi
call fcn.0040718a
pop ecx
test eax, eax
jne 0x40811c
cmp dword [ebp + 0x10], eax
je 0x407ed5
push esi
push dword [esp + 0x28]
mov eax, 0x2001f
lea ebx, [esp + 0x20]
call fcn.00406583
test eax, eax
je 0x407e98
push esi
push dword [esp + 0x28]
mov eax, 0x20019
call fcn.00406583
test eax, eax
je 0x407e98
push esi
push dword [esp + 0x28]
invalid