Function at 0x406188
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421b0b
mov eax, dword fs:[0]
push eax
mov eax, 0x2260
call fcn.00421350
mov eax, dword [0x42d00c]
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 dword [ebp - 0x225c], ecx
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x2254]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2258], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x2264], eax
mov dword [ebp - 0x2254], eax
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x224c], eax
mov dword [ebp - 4], eax
jmp 0x40654a
push str.Delete
push ebx
mov dword [ebp - 0x2260], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40622c
test edi, edi
je 0x4062e8
mov ecx, dword [ebp - 0x225c]
push ebx
call fcn.0040603d
mov esi, eax
test esi, esi
js 0x406751
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4062ea
push 0x5c
pop edx
mov ecx, ebx
mov dword [ebp - 0x2224], esi
mov dword [ebp - 0x2220], esi
mov dword [ebp - 0x221c], esi
call fcn.004056a7
test eax, eax
jne 0x406741
push ebx
call fcn.00405d2c
test eax, eax
je 0x4062a5
mov eax, dword [ebp - 0x2258]
lea ecx, [ebp - 0x2224]
push ebx
mov dword [ebp - 0x2224], eax
call fcn.00405e15
mov dword [ebp - 0x2224], esi
mov dword [ebp - 0x2220], esi
mov dword [ebp - 0x221c], esi
test edi, edi
je 0x4062db
mov edi, dword [ebp - 0x225c]
mov ecx, edi
push ebx
call fcn.0040603d
mov esi, eax
test esi, esi
js 0x406739
push ebx
mov ecx, edi
call fcn.00405cc7
lea ecx, [ebp - 0x2224]
mov esi, eax
call fcn.00405f3b
jmp 0x4064f5
lea ecx, [ebp - 0x2224]
call fcn.00405f3b
jmp 0x4062ea
xor esi, esi
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, dword [ebp - 0x225c]
test eax, eax
jne 0x406318
push ebx
mov ecx, edi
mov dword [ebp - 0x2260], esi
call fcn.0040603d
mov esi, eax
test esi, esi
js 0x406751
push 0x429334
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x406462
lea eax, [ebp - 0x2218]
mov ecx, edi
push eax
call fcn.0040603d
mov esi, eax
test esi, esi
js 0x406751
push ebx
mov ecx, edi
call fcn.0040603d
mov esi, eax
test esi, esi
js 0x406751
push 0x3d
pop eax
cmp word [ebx], ax
jne 0x40674c
cmp dword [ebp + 0x10], 0
je 0x4063de
xor eax, eax
lea edi, [ebp - 0x2230]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x2258]
mov edi, dword [ebp - 0x225c]
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x2230], eax
xor eax, eax
mov dword [ebp - 0x222c], eax
mov dword [ebp - 0x2228], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x2230]
push eax
call fcn.004057c0
mov esi, eax
lea ecx, [ebp - 0x2230]
xor eax, eax
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], eax
mov dword [ebp - 0x2228], eax
test esi, esi
js 0x406789
mov byte [ebp - 4], al
call fcn.00405f3b
jmp 0x4064fd
cmp dword [ebp + 0x14], 0
jne 0x40644b
cmp dword [ebp - 0x2260], 0
je 0x40644b
xor eax, eax
lea ecx, [ebp - 0x223c]
push 0x20006
push eax
push dword [ebp - 0x2258]
mov dword [ebp - 0x223c], eax
mov dword [ebp - 0x2238], eax
mov dword [ebp - 0x2234], eax
call fcn.00405d5b
test eax, eax
jne 0x40677a
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x223c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x406440
cmp eax, 2
jne 0x40677a
lea ecx, [ebp - 0x223c]
call fcn.00405f3b
push ebx
mov ecx, edi
call fcn.00405cc7
mov esi, eax
test esi, esi
js 0x406751
jmp 0x40672b
push 0x5c
pop edx
mov ecx, ebx
call fcn.004056a7
test eax, eax
jne 0x40674c
cmp dword [ebp + 0x10], eax
je 0x406555
mov esi, dword [ebp - 0x2258]
lea ecx, [ebp - 0x2254]
push 0x2001f
push ebx
push esi
call fcn.00405d5b
test eax, eax
je 0x4064c7
push 0x20019
push ebx
push esi
lea ecx, [ebp - 0x2254]
call fcn.00405d5b
test eax, eax
je 0x4064c7
sub esp, 0x14
lea ecx, [ebp - 0x2254]
push ebx
push esi
call fcn.004056e1
test eax, eax
jne 0x40664b
push ebx
mov ecx, edi
call fcn.0040603d
mov esi, eax
test esi, esi
js 0x406751
push 0x3d
pop eax
cmp word [ebx], ax
jne 0x4064fd
push ebx
xor eax, eax
mov ecx, edi
push eax
lea eax, [ebp - 0x2254]
push eax
call fcn.004057c0
mov esi, eax
test esi, esi
js 0x406751
push 0x7b
pop eax
cmp word [ebx], ax
jne 0x40672b
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2264]
jne 0x40650e
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40672b
xor eax, eax
mov ecx, edi
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x2254]
push ebx
call fcn.00406188
mov esi, eax
test esi, esi
js 0x406751
mov ecx, edi
push ebx
call fcn.0040603d
jmp 0x406453
cmp dword [ebp + 0x14], 0
jne 0x406574
push 0x20019
push ebx
push dword [ebp - 0x2258]
lea ecx, [ebp - 0x2254]
call fcn.00405d5b
jmp 0x406577
push 2
pop eax
xor ecx, ecx
mov dword [ebp - 0x226c], eax
push 0xffffffffffffffff
inc ecx
test eax, eax
push ebx
cmove ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x218]
push 0x104
push eax
mov dword [ebp - 0x2268], ecx
call fcn.00410702
push eax
call fcn.00401e1f
add esp, 0x14
mov ecx, edi
push ebx
call fcn.0040603d
mov esi, eax
test esi, esi
js 0x406751
push ebx
mov ecx, edi
call fcn.00405cc7
mov esi, eax
test esi, esi
js 0x406751
push 0x7b
pop eax
cmp word [ebx], ax
jne 0x40662e
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2264]
jne 0x4065da
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40662e
push dword [ebp - 0x2268]
xor eax, eax
mov ecx, edi
push eax
push dword [ebp - 0x2254]
push ebx
call fcn.00406188
mov esi, eax
test esi, esi
jns 0x40661c
cmp dword [ebp - 0x2268], 0
je 0x406751
push ebx
mov ecx, edi
call fcn.0040603d
mov esi, eax
test esi, esi
js 0x406751
mov eax, dword [ebp - 0x226c]
cmp eax, 2
je 0x40672b
test eax, eax
je 0x406659
cmp dword [ebp + 0x14], 0
jne 0x40672b
mov ecx, eax
call fcn.0040602f
mov esi, eax
jmp 0x406751
cmp dword [ebp + 0x14], 0
je 0x4066a6
push dword [ebp - 0x2254]
call fcn.00405ef0
test eax, eax
je 0x4066a6
lea eax, [ebp - 0x218]
push eax
call fcn.00405d2c
test eax, eax
je 0x40672b
cmp dword [ebp - 0x2260], 0
je 0x40672b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2254]
call fcn.00405e15
jmp 0x40672b
push dword [ebp - 0x2254]
call fcn.00405ef0
mov ecx, dword [ebp - 0x2254]
mov edi, eax
xor eax, eax
test ecx, ecx
je 0x4066ce
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2254], ecx
xor ecx, ecx
mov dword [ebp - 0x2250], ecx
test eax, eax
jne 0x40664b
cmp dword [ebp - 0x2260], ecx
je 0x40672b
test edi, edi
jne 0x40672b
mov eax, dword [ebp - 0x2258]
mov dword [ebp - 0x2248], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2244], ecx
mov dword [ebp - 0x2240], ecx
lea ecx, [ebp - 0x2248]
push eax
call fcn.00405f5b
xor ecx, ecx
mov dword [ebp - 0x2248], ecx
test eax, eax
jne 0x406790
lea ecx, [ebp - 0x2248]
call fcn.00405f3b
push 0x7d
pop eax
cmp word [ebx], ax
jne 0x4061f9
jmp 0x406751
lea ecx, [ebp - 0x2224]
jmp 0x406789
lea ecx, [ebp - 0x2224]
call fcn.00405f3b
mov esi, 0x80020009
lea ecx, [ebp - 0x2254]
call fcn.00405f3b
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.004084d2
leave
ret 0x10
mov ecx, eax
call fcn.0040602f
lea ecx, [ebp - 0x223c]
mov esi, eax
call fcn.00405f3b
jmp 0x406751
mov ecx, eax
call fcn.0040602f
lea ecx, [ebp - 0x2248]
jmp 0x406787