Function at 0x40ae50
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40e7c6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x226c
call fcn.0040e090
mov eax, dword [0x414034]
xor eax, esp
mov dword [esp + 0x2268], eax
push ebx
push esi
push edi
mov eax, dword [0x414034]
xor eax, esp
push eax
lea eax, [esp + 0x2280]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov edx, dword [ebp + 0x14]
mov eax, esi
mov edi, ecx
mov dword [esp + 0x2288], ebx
mov dword [esp + 0x3c], edx
call fcn.0040aca0
mov edi, eax
cmp edi, ebx
jl 0x40b460
cmp word [esi], 0x7d
je 0x40b45e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push esi
mov dword [esp + 0x34], 1
call edi
neg eax
push str.ForceRemove
sbb ebx, ebx
push esi
inc ebx
call edi
test eax, eax
je 0x40af0f
test ebx, ebx
je 0x40b048
mov edi, dword [esp + 0x14]
mov eax, esi
call fcn.0040aca0
mov edi, eax
test edi, edi
js 0x40b44f
xor edx, edx
cmp dword [ebp + 0x10], edx
je 0x40b048
movzx ecx, word [esi]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov eax, esi
cmp cx, dx
je 0x40af64
cmp cx, 0x5c
je 0x40af5c
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
test cx, cx
jne 0x40af45
jmp 0x40af64
test eax, eax
jne 0x40b42d
mov edi, 0x40fe9c
lea esp, [esp]
mov eax, dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40afb3
add edi, 4
cmp edi, 0x40fecc
jl 0x40af70
mov ecx, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x30], ecx
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.0040a9f0
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
jmp 0x40afb5
xor edi, edi
cmp ebx, edi
je 0x40b044
mov edi, dword [esp + 0x14]
mov eax, esi
call fcn.0040aca0
mov edi, eax
test edi, edi
js 0x40b446
mov ecx, dword [esp + 0x14]
mov ebx, esi
call fcn.0040a890
mov edi, eax
test edi, edi
js 0x40b446
mov dword [esp + 0x34], 0
cmp word [esi], 0x7b
jne 0x40b035
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40b035
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
push 0
push edx
push eax
push esi
mov ecx, ebx
call fcn.0040ae50
mov edi, eax
test edi, edi
js 0x40b44f
mov eax, esi
mov edi, ebx
call fcn.0040aca0
mov edi, eax
test edi, edi
js 0x40b44f
cmp word [esi], 0x7d
jne 0x40aee0
jmp 0x40b44f
mov dword [esp + 0x34], edi
push str.NoRemove
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40b071
mov edi, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
mov eax, esi
call fcn.0040aca0
mov edi, eax
test edi, edi
js 0x40b44f
push 0x40fe6c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40b193
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x274]
mov edi, ebx
call fcn.0040aca0
mov edi, eax
test edi, edi
js 0x40b44f
mov eax, esi
mov edi, ebx
call fcn.0040aca0
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x40b44f
cmp word [esi], 0x3d
jne 0x40b436
cmp dword [ebp + 0x10], eax
je 0x40b119
mov edx, dword [esp + 0x24]
mov byte [esp + 0x2288], 1
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], edx
push ebx
mov edx, esi
lea ecx, [esp + 0x27c]
call fcn.0040a380
mov edi, eax
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
cmp edi, eax
jl 0x40b486
mov byte [esp + 0x2288], al
mov dword [esp + 0x44], eax
jmp 0x40afef
cmp dword [ebp + 0x14], eax
jne 0x40b183
cmp dword [esp + 0x2c], eax
je 0x40b183
mov ecx, dword [esp + 0x24]
xor eax, eax
push ecx
lea edx, [esp + 0x5c]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
push edx
mov eax, 0x20006
xor ebx, ebx
call fcn.0040a930
cmp eax, ebx
jne 0x40b49a
mov edi, dword [esp + 0x58]
lea eax, [esp + 0x274]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x40b170
cmp eax, 2
jne 0x40b49a
cmp edi, ebx
je 0x40b17f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov ecx, dword [esp + 0x14]
mov ebx, esi
call fcn.0040a890
jmp 0x40b02b
movzx ecx, word [esi]
mov eax, esi
test cx, cx
je 0x40b1bf
lea ecx, [ecx]
cmp cx, 0x5c
je 0x40b1b7
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
test cx, cx
jne 0x40b1a0
jmp 0x40b1bf
test eax, eax
jne 0x40b436
cmp dword [ebp + 0x10], 0
je 0x40b24e
mov edi, dword [esp + 0x24]
push edi
lea ecx, [esp + 0x1c]
push ecx
mov eax, 0x2001f
mov ebx, esi
call fcn.0040a930
test eax, eax
je 0x40b20f
push edi
lea edx, [esp + 0x1c]
push edx
mov eax, 0x20019
call fcn.0040a930
test eax, eax
je 0x40b20f
lea eax, [esp + 0x18]
push eax
mov eax, esi
mov ecx, edi
call fcn.0040a1f0
mov edi, eax
test edi, edi
jne 0x40b4a7
mov ebx, dword [esp + 0x14]
mov eax, esi
mov edi, ebx
call fcn.0040aca0
mov edi, eax
test edi, edi
js 0x40b44f
cmp word [esi], 0x3d
jne 0x40afef
lea ecx, [esp + 0x18]
push ecx
push ebx
mov edx, esi
xor ecx, ecx
call fcn.0040a380
mov edi, eax
test edi, edi
js 0x40b44f
jmp 0x40afef
cmp dword [ebp + 0x14], 0
jne 0x40b2a6
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, 0x20019
mov ebx, esi
call fcn.0040a930
mov dword [esp + 0x28], eax
test eax, eax
je 0x40b279
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x74]
push 0x104
push ecx
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
ja case.0x40b29f.1
movzx edx, byte [eax + 0x40b50c]
jmp dword [edx*4 + 0x40b4fc]
mov dword [esp + 0x28], 2
jmp 0x40b272
mov edi, dword [esp + 0x14]
mov eax, esi
call fcn.0040aca0
mov edi, eax
test edi, edi
js 0x40b44f
mov ecx, dword [esp + 0x14]
mov ebx, esi
call fcn.0040a890
mov edi, eax
test edi, edi
js 0x40b44f
cmp word [esi], 0x7b
jne 0x40b326
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40b326
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
push eax
push 0
push ecx
push esi
mov ecx, ebx
call fcn.0040ae50
mov edi, eax
test edi, edi
jns 0x40b313
cmp dword [ebp + 0x14], 0
je 0x40b44f
mov eax, esi
mov edi, ebx
call fcn.0040aca0
mov edi, eax
test edi, edi
js 0x40b44f
cmp dword [esp + 0x28], 2
mov edx, dword [esp + 0x3c]
mov dword [ebp + 0x14], edx
je 0x40b035
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40b354
test edx, edx
jne 0x40b035
call fcn.0040ac60
mov edi, eax
jmp 0x40b44f
mov ebx, dword [esp + 0x18]
test edx, edx
je 0x40b394
mov ecx, ebx
call fcn.0040ab40
test eax, eax
je 0x40b394
lea ebx, [esp + 0x6c]
call fcn.0040a8f0
test eax, eax
je 0x40b035
cmp dword [esp + 0x2c], 0
je 0x40b035
mov eax, ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040a9f0
jmp 0x40b035
mov ecx, ebx
call fcn.0040ab40
mov dword [esp + 0x68], eax
mov dword [esp + 0x28], 0
test ebx, ebx
je 0x40b3be
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x1c], 0
test ebx, ebx
jne 0x40b4cd
cmp dword [esp + 0x2c], ebx
je 0x40b035
cmp dword [esp + 0x68], ebx
jne 0x40b035
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
lea ebx, [esp + 0x6c]
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], ecx
call fcn.0040abb0
xor ecx, ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
cmp eax, ecx
jne 0x40b4df
lea esi, [esp + 0x4c]
call fcn.0040ab90
mov esi, dword [esp + 0x64]
jmp 0x40b035
lea esi, [esp + 0x30]
call fcn.0040ab90
lea esi, [esp + 0x18]
call fcn.0040ab90
mov eax, 0x80020009
jmp 0x40b460
lea esi, [esp + 0x30]
call fcn.0040ab90
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40b45e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x2280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2268]
xor ecx, esp
call fcn.0040d6e0
mov esp, ebp
pop ebp
ret 0x10
lea esi, [esp + 0x40]
call fcn.0040ab90
lea esi, [esp + 0x18]
call fcn.0040ab90
jmp 0x40b45e
call fcn.0040ac60
mov edi, eax
lea esi, [esp + 0x58]
jmp 0x40b44a
lea esi, [esp + 0x18]
call fcn.0040ab90
mov eax, edi
call fcn.0040ac60
jmp 0x40b460
push 0x8007000e
call fcn.00408730
push 0x80070057
call fcn.00408730
lea esi, [esp + 0x18]
call fcn.0040ab90
mov eax, ebx
call fcn.0040ac60
jmp 0x40b460
call fcn.0040ac60
mov edi, eax
lea esi, [esp + 0x4c]
jmp 0x40b44a
push 0x80004005
call fcn.00408730
lea ecx, [ecx]
mov al, 0xb2
inc eax
add byte [ecx - 0x3cffbf4c], bh
mov ah, 0x40
add bh, ch
mov ah, 0x40
add byte [eax], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
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 eax, dword [eax]
int3