Function at 0x408540
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x446ba6
mov eax, dword fs:[0]
push eax
mov eax, 0x224c
call fcn.0043fb90
mov eax, dword [0x45636c]
xor eax, esp
mov dword [esp + 0x2248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45636c]
xor eax, esp
push eax
lea eax, [esp + 0x2260]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2270]
mov eax, dword [esp + 0x2274]
xor ebx, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x227c]
mov eax, esi
mov dword [esp + 0x2268], ebx
mov dword [esp + 0x40], edx
call fcn.00407af0
mov ebp, eax
cmp ebp, ebx
jl 0x408be4
cmp word [esi], 0x7d
je 0x408be2
mov edi, dword [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [esp + 0x3c], 1
call ebp
mov esi, eax
neg esi
push str.ForceRemove
sbb esi, esi
push edi
inc esi
call ebp
test eax, eax
je 0x408605
cmp esi, ebx
je 0x408730
mov ecx, dword [esp + 0x20]
mov eax, edi
call fcn.00407af0
mov ebp, eax
cmp ebp, ebx
jl 0x408bd3
cmp dword [esp + 0x2278], ebx
je 0x408730
movzx ecx, word [edi]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov eax, edi
cmp cx, bx
je 0x40865d
mov ebp, dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, cx
cmp cx, 0x5c
je 0x408655
push eax
call ebp
movzx ecx, word [eax]
cmp cx, bx
jne 0x408642
jmp 0x40865d
cmp eax, ebx
jne 0x408b61
mov ebp, 0x44bef8
mov eax, dword [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40869a
add ebp, 4
cmp ebp, 0x44bf28
jl 0x408662
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], ebx
call fcn.00406f00
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
cmp esi, ebx
je 0x40872c
mov esi, dword [esp + 0x20]
mov eax, edi
mov ecx, esi
call fcn.00407af0
mov ebp, eax
cmp ebp, ebx
jl 0x408b7a
mov ecx, esi
call fcn.00408020
mov ebp, eax
cmp ebp, ebx
jl 0x408b7a
mov dword [esp + 0x2c], ebx
cmp word [edi], 0x7b
jne 0x408aec
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x408aec
mov eax, dword [esp + 0x2278]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
push ebx
push eax
push ecx
push edi
mov ecx, esi
call fcn.00408540
mov ebp, eax
cmp ebp, ebx
jl 0x408bd3
mov eax, edi
mov ecx, esi
call fcn.00407af0
mov ebp, eax
cmp ebp, ebx
jl 0x408bd3
jmp 0x408aec
mov dword [esp + 0x2c], ebx
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x408759
mov ecx, dword [esp + 0x20]
mov eax, edi
mov dword [esp + 0x34], ebx
call fcn.00407af0
mov ebp, eax
cmp ebp, ebx
jl 0x408bd3
mov esi, dword [esp + 0x20]
push 0x44beb8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x408886
lea eax, [esp + 0x25c]
mov ecx, esi
call fcn.00407af0
mov ebp, eax
cmp ebp, ebx
jl 0x408bd3
mov eax, edi
mov ecx, esi
call fcn.00407af0
mov ebp, eax
cmp ebp, ebx
jl 0x408bd3
cmp word [edi], 0x3d
jne 0x408b6a
cmp dword [esp + 0x2278], ebx
je 0x4087fb
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x25c]
mov byte [esp + 0x2268], 1
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], edx
push ecx
mov ecx, edi
mov edx, esi
mov dword [esp + 0x58], ebx
call fcn.00407c60
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
jl 0x408b80
mov byte [esp + 0x2268], bl
mov dword [esp + 0x50], ebx
jmp 0x4086ce
cmp dword [esp + 0x227c], ebx
jne 0x408870
cmp dword [esp + 0x34], ebx
je 0x408870
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
push 0x20006
push ebx
push ebx
push eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x408b94
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x25c]
push ecx
push ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x40885d
cmp eax, 2
jne 0x408b94
cmp ebp, ebx
je 0x40886c
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov ecx, esi
call fcn.00408020
mov ebp, eax
cmp ebp, ebx
jl 0x408bd3
jmp 0x408aec
movzx ecx, word [edi]
mov eax, edi
cmp cx, bx
je 0x4088bb
mov ebp, dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, cx
lea esp, [esp]
cmp cx, 0x5c
je 0x4088b3
push eax
call ebp
movzx ecx, word [eax]
cmp cx, bx
jne 0x4088a0
jmp 0x4088bb
cmp eax, ebx
jne 0x408b6a
cmp dword [esp + 0x2278], ebx
je 0x408999
mov esi, dword [esp + 0x24]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x14]
push edx
push 0x2001f
push ebx
push edi
push esi
mov dword [esp + 0x28], ebx
call ebp
cmp eax, ebx
jne 0x40890a
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
je 0x4088fa
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
cmp eax, ebx
je 0x40895a
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push edi
push esi
mov dword [esp + 0x28], ebx
call ebp
cmp eax, ebx
jne 0x408942
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
je 0x408932
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
cmp eax, ebx
je 0x40895a
mov edx, esi
push edx
mov edx, edi
lea esi, [esp + 0x1c]
call fcn.00406e50
mov ebp, eax
cmp ebp, ebx
jne 0x408b9f
mov ecx, dword [esp + 0x20]
mov eax, edi
call fcn.00407af0
mov ebp, eax
cmp ebp, ebx
jl 0x408bd3
cmp word [edi], 0x3d
jne 0x4086ce
mov edx, dword [esp + 0x20]
push ebx
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.00407c60
mov ebp, eax
cmp ebp, ebx
jl 0x408bd3
jmp 0x4086ce
cmp dword [esp + 0x227c], ebx
jne 0x408aaa
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push edi
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4089e2
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
je 0x4089d6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x4089f5
mov dword [esp + 0x227c], 1
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x5c]
push 0x104
push edx
call fcn.0042bf93
push eax
call fcn.004010d0
add esp, 0x14
mov eax, edi
mov ecx, esi
call fcn.00407af0
mov ebp, eax
cmp ebp, ebx
jl 0x408bd3
mov ecx, esi
call fcn.00408020
mov ebp, eax
cmp ebp, ebx
jl 0x408bd3
cmp word [edi], 0x7b
jne 0x408a82
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x408a82
mov eax, dword [esp + 0x227c]
mov ecx, dword [esp + 0x18]
push eax
push ebx
push ecx
push edi
mov ecx, esi
call fcn.00408540
mov ebp, eax
cmp ebp, ebx
jge 0x408a6f
cmp dword [esp + 0x227c], ebx
je 0x408bd3
mov eax, edi
mov ecx, esi
call fcn.00407af0
mov ebp, eax
cmp ebp, ebx
jl 0x408bd3
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x227c], edx
cmp eax, 2
je 0x408aec
cmp eax, ebx
je 0x408ab7
cmp edx, ebx
jne 0x408aec
call fcn.00406b50
mov ebp, eax
jmp 0x408bd3
mov dword [esp + 0x14], 2
jmp 0x4089ea
mov esi, dword [esp + 0x18]
cmp edx, ebx
je 0x408aff
mov ecx, esi
call fcn.00407fe0
test eax, eax
je 0x408aff
lea ebx, [esp + 0x54]
call fcn.00407fa0
test eax, eax
je 0x408aea
cmp dword [esp + 0x34], 0
je 0x408aea
mov eax, ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.00406f00
xor ebx, ebx
mov edx, dword [esp + 0x30]
cmp word [edx], 0x7d
jne 0x4085d0
jmp 0x408bd3
mov ecx, esi
call fcn.00407fe0
xor edi, edi
mov dword [esp + 0x14], eax
cmp esi, ebx
je 0x408b1d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
cmp edi, ebx
jne 0x408bb1
cmp dword [esp + 0x34], ebx
je 0x408aec
cmp dword [esp + 0x14], ebx
jne 0x408aec
mov ecx, dword [esp + 0x24]
lea edi, [esp + 0x54]
lea esi, [esp + 0x44]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ebx
call fcn.00406df0
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
cmp eax, ebx
jne 0x408bc3
call fcn.00401260
jmp 0x408aec
lea esi, [esp + 0x28]
call fcn.00401260
lea esi, [esp + 0x18]
call fcn.00401260
mov eax, 0x80020009
jmp 0x408be4
lea esi, [esp + 0x28]
jmp 0x408bce
lea esi, [esp + 0x4c]
call fcn.00401260
lea esi, [esp + 0x18]
call fcn.00401260
jmp 0x408be2
call fcn.00406b50
lea esi, [esp + 0x38]
jmp 0x408bcc
lea esi, [esp + 0x18]
call fcn.00401260
mov eax, ebp
call fcn.00406b50
jmp 0x408be4
lea esi, [esp + 0x18]
call fcn.00401260
mov eax, edi
call fcn.00406b50
jmp 0x408be4
call fcn.00406b50
lea esi, [esp + 0x44]
mov ebp, eax
call fcn.00401260
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x408be2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov ecx, dword [esp + 0x2260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2248]
xor ecx, esp
call fcn.0042a9a5
add esp, 0x2258
ret 0x10