Function at 0x4086a0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x412b16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2260
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [esp + 0x34], eax
mov eax, esi
mov edi, ecx
mov dword [esp + 0x2274], ebx
call fcn.004084f0
mov edi, eax
cmp edi, ebx
jl 0x408c94
cmp word [esi], 0x7d
je 0x408c92
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push esi
mov dword [esp + 0x2c], 1
call edi
neg eax
push str.ForceRemove
sbb ebx, ebx
push esi
inc ebx
call edi
test eax, eax
je 0x408733
test ebx, ebx
je 0x408867
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.004084f0
mov edi, eax
test edi, edi
js 0x408c83
xor edx, edx
cmp dword [ebp + 0x10], edx
je 0x408867
movzx ecx, word [esi]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov eax, esi
cmp cx, dx
je 0x408788
cmp cx, 0x5c
je 0x408780
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
test cx, cx
jne 0x408769
jmp 0x408788
test eax, eax
jne 0x408c4c
mov edi, 0x4141e0
lea ecx, [ecx]
mov ecx, dword [edi]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4087d2
add edi, 4
cmp edi, 0x414210
jl 0x408790
mov edx, dword [ebp + 0xc]
xor edi, edi
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.004082d0
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
jmp 0x4087d4
xor edi, edi
cmp ebx, edi
je 0x408863
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.004084f0
mov edi, eax
test edi, edi
js 0x408c7a
mov eax, dword [esp + 0x10]
mov ebx, esi
call fcn.00408190
mov edi, eax
test edi, edi
js 0x408c7a
mov dword [esp + 0x2c], 0
cmp word [esi], 0x7b
jne 0x408854
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x408854
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
push 0
push ecx
push edx
push esi
mov ecx, ebx
call fcn.004086a0
mov edi, eax
test edi, edi
js 0x408c83
mov eax, esi
mov edi, ebx
call fcn.004084f0
mov edi, eax
test edi, edi
js 0x408c83
cmp word [esi], 0x7d
jne 0x408704
jmp 0x408c83
mov dword [esp + 0x2c], edi
push str.NoRemove
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x408890
mov edi, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov eax, esi
call fcn.004084f0
mov edi, eax
test edi, edi
js 0x408c83
push 0x4138e0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4089b0
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x268]
mov edi, ebx
call fcn.004084f0
mov edi, eax
test edi, edi
js 0x408c83
mov eax, esi
mov edi, ebx
call fcn.004084f0
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x408c83
cmp word [esi], 0x3d
jne 0x408c55
cmp dword [ebp + 0x10], eax
je 0x408937
mov ecx, dword [ebp + 0xc]
mov byte [esp + 0x2274], 1
push esi
lea edx, [esp + 0x26c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
push edx
lea eax, [esp + 0x40]
push eax
push ebx
mov dword [esp + 0x48], ecx
call fcn.00407cd0
mov edi, eax
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
cmp edi, eax
jl 0x408cab
mov byte [esp + 0x2274], al
mov dword [esp + 0x3c], eax
jmp 0x40880e
cmp dword [ebp + 0x14], eax
jne 0x4089a0
cmp dword [esp + 0x24], eax
je 0x4089a0
mov ecx, dword [ebp + 0xc]
xor eax, eax
push ecx
lea edx, [esp + 0x54]
push edx
mov edi, 0x20006
xor ebx, ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
call fcn.00408220
cmp eax, ebx
jne 0x408cbf
mov edi, dword [esp + 0x50]
lea eax, [esp + 0x268]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x40898d
cmp eax, 2
jne 0x408cbf
cmp edi, ebx
je 0x40899c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x10]
mov ebx, esi
call fcn.00408190
jmp 0x40884a
movzx ecx, word [esi]
mov eax, esi
test cx, cx
je 0x4089df
lea ebx, [ebx]
cmp cx, 0x5c
je 0x4089d7
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
test cx, cx
jne 0x4089c0
jmp 0x4089df
test eax, eax
jne 0x408c55
cmp dword [ebp + 0x10], 0
je 0x408a70
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edi, 0x2001f
mov ebx, esi
call fcn.00408220
test eax, eax
je 0x408a32
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov edi, 0x20019
call fcn.00408220
test eax, eax
je 0x408a32
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x18]
push edx
mov eax, esi
call fcn.00407b10
mov edi, eax
test edi, edi
jne 0x408ccc
mov ebx, dword [esp + 0x10]
mov eax, esi
mov edi, ebx
call fcn.004084f0
mov edi, eax
test edi, edi
js 0x408c83
cmp word [esi], 0x3d
jne 0x40880e
push esi
push 0
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00407cd0
mov edi, eax
test edi, edi
js 0x408c83
jmp 0x40880e
cmp dword [ebp + 0x14], 0
jne 0x408ac7
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edi, 0x20019
mov ebx, esi
call fcn.00408220
mov dword [esp + 0x14], eax
test eax, eax
je 0x408a9a
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x68]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
ja case.0x408ac0.103
movzx ecx, byte [eax + 0x408d58]
jmp dword [ecx*4 + 0x408d48]
mov dword [esp + 0x14], 2
jmp 0x408a93
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.004084f0
mov edi, eax
test edi, edi
js 0x408c83
mov eax, dword [esp + 0x10]
mov ebx, esi
call fcn.00408190
mov edi, eax
test edi, edi
js 0x408c83
cmp word [esi], 0x7b
jne 0x408b47
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x408b47
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
push edx
push 0
push eax
push esi
mov ecx, ebx
call fcn.004086a0
mov edi, eax
test edi, edi
jns 0x408b34
cmp dword [ebp + 0x14], 0
je 0x408c83
mov eax, esi
mov edi, ebx
call fcn.004084f0
mov edi, eax
test edi, edi
js 0x408c83
cmp dword [esp + 0x14], 2
mov ecx, dword [esp + 0x34]
mov dword [ebp + 0x14], ecx
je 0x408854
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408b75
test ecx, ecx
jne 0x408854
call fcn.004084b0
mov edi, eax
jmp 0x408c83
mov ebx, dword [esp + 0x18]
test ecx, ecx
je 0x408bb5
mov ecx, ebx
call fcn.004083d0
test eax, eax
je 0x408bb5
lea ebx, [esp + 0x60]
call fcn.004081e0
test eax, eax
je 0x408854
cmp dword [esp + 0x24], 0
je 0x408854
mov edx, ebx
push edx
lea ecx, [esp + 0x1c]
call fcn.004082d0
jmp 0x408854
mov ecx, ebx
call fcn.004083d0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x408bdf
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x1c], 0
test ebx, ebx
jne 0x408d07
cmp dword [esp + 0x24], ebx
je 0x408854
cmp dword [esp + 0x5c], ebx
jne 0x408854
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea ebx, [esp + 0x60]
lea eax, [esp + 0x44]
call fcn.00408440
xor ecx, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
cmp eax, ecx
jne 0x408d2e
lea esi, [esp + 0x44]
call fcn.00408420
mov esi, dword [ebp + 8]
jmp 0x408854
lea esi, [esp + 0x28]
call fcn.00408420
lea esi, [esp + 0x18]
call fcn.00408420
mov eax, 0x80020009
mov ecx, dword [esp + 0x226c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea esi, [esp + 0x28]
call fcn.00408420
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408c92
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x226c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea esi, [esp + 0x38]
call fcn.00408420
lea esi, [esp + 0x18]
call fcn.00408420
jmp 0x408c92
call fcn.004084b0
mov edi, eax
lea esi, [esp + 0x50]
jmp 0x408c7e
lea esi, [esp + 0x18]
call fcn.00408420
mov eax, edi
call fcn.004084b0
mov ecx, dword [esp + 0x226c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x8007000e
call fcn.00409510
push 0x80070057
call fcn.00409510
lea esi, [esp + 0x18]
call fcn.00408420
mov eax, ebx
call fcn.004084b0
mov ecx, dword [esp + 0x226c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.004084b0
mov edi, eax
lea esi, [esp + 0x44]
jmp 0x408c7e
push 0x80004005
call fcn.00409510
ror dword [edx - 0x730cffc0], 1
inc eax
add ch, bh
mov word [eax], es
lea eax, ds:[eax]
add byte [ebx], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [ebx], eax
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add ah, cl
int3