Function at 0x407512
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x456158
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2264
call fcn.0041ff60
mov eax, dword [0x479084]
xor eax, esp
mov dword [esp + 0x2260], eax
push ebx
push esi
push edi
mov eax, dword [0x479084]
xor eax, esp
push eax
lea eax, [esp + 0x2278]
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 + 0x2280], edi
call fcn.004073ec
mov ebx, eax
cmp ebx, edi
jl 0x40795d
cmp word [esi], 0x7d
je 0x40795b
jmp 0x4075a0
xor edi, edi
push str.Delete
push esi
mov dword [esp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb ebx, ebx
push str.ForceRemove
inc ebx
push esi
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4075d5
cmp ebx, edi
je 0x40767f
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.004073ec
mov ebx, eax
cmp ebx, edi
jl 0x40794a
cmp dword [ebp + 0x10], edi
je 0x40767f
push 0x5c
mov eax, esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.00406e3e
pop ecx
test eax, eax
jne 0x407a99
push esi
call fcn.00407379
test eax, eax
je 0x407641
mov eax, dword [esp + 0x24]
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.00404f10
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
cmp dword [esp + 0x28], edi
je 0x40767b
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.004073ec
mov ebx, eax
cmp ebx, edi
jl 0x40794a
mov ecx, dword [esp + 0x14]
mov edi, esi
call fcn.0040731c
mov ebx, eax
test ebx, ebx
js 0x40794a
and dword [esp + 0x34], 0
jmp 0x407a40
mov dword [esp + 0x34], edi
push str.NoRemove
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4076a8
mov ecx, dword [esp + 0x14]
mov eax, esi
mov dword [esp + 0x2c], edi
call fcn.004073ec
mov ebx, eax
cmp ebx, edi
jl 0x40794a
push 0x459adc
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4077d0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x26c]
call fcn.004073ec
mov ebx, eax
cmp ebx, edi
jl 0x40794a
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.004073ec
mov ebx, eax
cmp ebx, edi
jl 0x40794a
cmp word [esi], 0x3d
jne 0x407a99
cmp dword [ebp + 0x10], edi
je 0x40774f
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x2280], 1
mov dword [esp + 0x4c], eax
push esi
lea eax, [esp + 0x270]
push eax
lea edx, [esp + 0x54]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
call fcn.00406f1c
mov ebx, eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
cmp ebx, edi
jl 0x407ab3
mov byte [esp + 0x2280], 0
mov dword [esp + 0x50], edi
jmp 0x407a42
cmp dword [ebp + 0x14], edi
jne 0x4077b6
cmp dword [esp + 0x2c], edi
je 0x4077b6
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.00405180
test eax, eax
jne 0x407ace
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x26c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4077a1
cmp eax, 2
jne 0x407abc
test edi, edi
je 0x4077b1
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.0040731c
mov ebx, eax
test ebx, ebx
js 0x40794a
jmp 0x407a8a
push 0x5c
mov eax, esi
call fcn.00406e3e
pop ecx
test eax, eax
jne 0x407a99
cmp dword [ebp + 0x10], edi
je 0x407865
push esi
push dword [esp + 0x28]
mov edi, 0x2001f
mov eax, edi
lea ebx, [esp + 0x20]
call fcn.00405180
test eax, eax
je 0x407827
push esi
push dword [esp + 0x28]
lea eax, [edi - 6]
call fcn.00405180
test eax, eax
je 0x407827
push esi
push dword [esp + 0x28]
mov eax, edi
mov ecx, ebx
call fcn.004050bd
test eax, eax
jne 0x407aef
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.004073ec
mov ebx, eax
test ebx, ebx
js 0x40794a
cmp word [esi], 0x3d
jne 0x407a40
mov ecx, dword [esp + 0x14]
push esi
push 0
lea edx, [esp + 0x20]
call fcn.00406f1c
mov ebx, eax
test ebx, ebx
js 0x40794a
jmp 0x407a40
cmp dword [ebp + 0x14], edi
jne 0x407885
push esi
push dword [esp + 0x28]
mov eax, 0x20019
lea ebx, [esp + 0x20]
call fcn.00405180
mov dword [esp + 0x28], eax
xor edi, edi
jmp 0x40788d
mov dword [esp + 0x28], 2
cmp dword [esp + 0x28], edi
je 0x40789a
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x6c]
push 0x104
push eax
call fcn.00413952
push eax
call fcn.0040456c
mov ecx, dword [esp + 0x28]
add esp, 0x14
mov eax, esi
call fcn.004073ec
mov ebx, eax
cmp ebx, edi
jl 0x40794a
mov ecx, dword [esp + 0x14]
mov edi, esi
call fcn.0040731c
mov ebx, eax
test ebx, ebx
js 0x40794a
cmp word [esi], 0x7b
jne 0x40791d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40791d
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push 0
push dword [esp + 0x20]
push esi
call fcn.00407512
mov ebx, eax
test ebx, ebx
jns 0x40790c
cmp dword [ebp + 0x14], 0
je 0x40794a
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.004073ec
mov ebx, eax
test ebx, ebx
js 0x40794a
cmp dword [esp + 0x28], 2
mov eax, dword [esp + 0x3c]
mov dword [ebp + 0x14], eax
je 0x407a8a
mov eax, dword [esp + 0x28]
xor edi, edi
cmp eax, edi
je 0x407983
cmp dword [esp + 0x3c], edi
jne 0x407a8a
call fcn.004073dd
mov ebx, eax
cmp dword [esp + 0x18], 0
je 0x40795b
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [esp + 0x2278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2260]
xor ecx, esp
call fcn.0041134f
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x3c], edi
je 0x4079c5
push dword [esp + 0x18]
call fcn.004073a8
test eax, eax
je 0x4079c5
lea eax, [esp + 0x64]
push eax
call fcn.00407379
test eax, eax
je 0x407a8a
cmp dword [esp + 0x2c], edi
je 0x407a8a
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404f10
jmp 0x407a8a
push dword [esp + 0x18]
call fcn.004073a8
mov dword [esp + 0x28], eax
xor eax, eax
cmp dword [esp + 0x18], edi
je 0x4079e8
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
cmp eax, edi
jne 0x407afb
cmp dword [esp + 0x2c], edi
je 0x407a8a
cmp dword [esp + 0x28], edi
jne 0x407a8a
mov eax, dword [esp + 0x24]
and dword [esp + 0x5c], edi
and dword [esp + 0x60], edi
mov dword [esp + 0x58], eax
lea eax, [esp + 0x64]
push eax
lea edi, [esp + 0x5c]
call fcn.00404ea2
xor ecx, ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
cmp eax, ecx
jne 0x407943
and dword [esp + 0x5c], ecx
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x407a8a
cmp word [esi], 0x7b
jne 0x407a8a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x407a8a
mov ecx, dword [esp + 0x14]
push edi
push dword [ebp + 0x10]
push dword [esp + 0x20]
push esi
call fcn.00407512
mov ebx, eax
cmp ebx, edi
jl 0x40794a
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.004073ec
mov ebx, eax
cmp ebx, edi
jl 0x40794a
cmp word [esi], 0x7d
jne 0x40759e
jmp 0x40794a
cmp dword [esp + 0x18], edi
je 0x407aa9
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x40795d
cmp dword [esp + 0x18], edi
jmp 0x40794f
call fcn.004073dd
mov ebx, eax
test edi, edi
je 0x40794a
push edi
jmp 0x407ae4
call fcn.004073dd
cmp dword [esp + 0x40], 0
mov ebx, eax
je 0x40794a
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40794a
call fcn.004073dd
cmp dword [esp + 0x18], 0
jmp 0x407b04
call fcn.004073dd
cmp dword [esp + 0x18], edi
mov esi, eax
je 0x407b12
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40795d