Function at 0x40a280
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x420f97
mov eax, dword fs:[0]
push eax
mov eax, 0x224c
call fcn.0041eb90
mov eax, dword [0x4300b8]
xor eax, esp
mov dword [esp + 0x2248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4300b8]
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 + 0x34], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2268], ebx
mov edx, dword [esp + 0x227c]
mov eax, esi
mov dword [esp + 0x50], edx
call fcn.0040a110
mov ebp, eax
cmp ebp, ebx
jge 0x40a312
mov dword [esp + 0x2268], 0xffffffff
jmp 0x40a9e7
cmp word [esi], 0x7d
je 0x40a9c7
lea esp, [esp]
mov edi, dword [esp + 0x34]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [esp + 0x38], 1
call ebp
mov esi, eax
neg esi
push str.ForceRemove
sbb esi, esi
push edi
inc esi
call ebp
test eax, eax
je 0x40a355
cmp esi, ebx
je 0x40a49c
mov ecx, dword [esp + 0x20]
mov eax, edi
call fcn.0040a110
mov ebp, eax
cmp ebp, ebx
jl 0x40a9c7
cmp dword [esp + 0x2278], ebx
je 0x40a49c
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x2268], 1
movzx ecx, word [edi]
mov eax, edi
cmp cx, bx
je 0x40a3bb
mov ebp, dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, cx
lea ebx, [ebx]
cmp cx, 0x5c
je 0x40a3b3
push eax
call ebp
movzx ecx, word [eax]
cmp cx, bx
jne 0x40a3a0
jmp 0x40a3bb
cmp eax, ebx
jne 0x40a91a
mov ebp, 0x425584
mov eax, dword [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40a3f8
add ebp, 4
cmp ebp, 0x4255b4
jl 0x40a3c0
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], ebx
call fcn.00409ec0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
cmp esi, ebx
je 0x40a491
mov esi, dword [esp + 0x20]
mov eax, edi
mov ecx, esi
call fcn.0040a110
mov ebp, eax
cmp ebp, ebx
jl 0x40a948
mov ecx, esi
call fcn.00409e10
mov ebp, eax
cmp ebp, ebx
jl 0x40a948
mov byte [esp + 0x2268], bl
mov dword [esp + 0x2c], ebx
cmp word [edi], 0x7b
jne 0x40a88d
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40a88d
mov ecx, dword [esp + 0x2278]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x20]
push ebx
push ecx
push edx
push edi
mov ecx, esi
call fcn.0040a280
mov ebp, eax
cmp ebp, ebx
jl 0x40a9c7
mov eax, edi
mov ecx, esi
call fcn.0040a110
mov ebp, eax
cmp ebp, ebx
jl 0x40a9c7
jmp 0x40a88d
mov byte [esp + 0x2268], bl
mov dword [esp + 0x2c], ebx
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40a4c5
mov ecx, dword [esp + 0x20]
mov eax, edi
mov dword [esp + 0x30], ebx
call fcn.0040a110
mov ebp, eax
cmp ebp, ebx
jl 0x40a9c7
push 0x422d90
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40a60d
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x25c]
mov ecx, esi
call fcn.0040a110
mov ebp, eax
cmp ebp, ebx
jl 0x40a9c7
mov eax, edi
mov ecx, esi
call fcn.0040a110
mov ebp, eax
cmp ebp, ebx
jl 0x40a9c7
cmp word [edi], 0x3d
jne 0x40a92a
cmp dword [esp + 0x2278], ebx
je 0x40a56f
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2268], 2
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x25c]
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], edx
push ecx
mov ecx, edi
mov edx, esi
mov dword [esp + 0x44], ebx
call fcn.00409a40
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
jl 0x40a955
mov byte [esp + 0x2268], bl
mov dword [esp + 0x3c], ebx
jmp 0x40a433
cmp dword [esp + 0x227c], ebx
jne 0x40a5f7
cmp dword [esp + 0x30], ebx
je 0x40a5f7
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x2268], 3
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
push 0x20006
push ebx
push ebx
push eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40a97d
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x25c]
push ecx
mov dword [esp + 0x50], ebx
push ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x40a5dd
cmp eax, 2
jne 0x40a97d
mov byte [esp + 0x2268], bl
cmp ebp, ebx
je 0x40a5f3
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov ecx, esi
call fcn.00409e10
mov ebp, eax
cmp ebp, ebx
jl 0x40a9c7
jmp 0x40a88d
movzx ecx, word [edi]
mov eax, edi
cmp cx, bx
je 0x40a63f
movzx ecx, cx
lea ebx, [ebx]
cmp cx, 0x5c
je 0x40a637
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, bx
jne 0x40a620
jmp 0x40a63f
cmp eax, ebx
jne 0x40a92a
cmp dword [esp + 0x2278], ebx
je 0x40a729
mov ebp, dword [esp + 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0x2001f
push ebx
push edi
push ebp
mov dword [esp + 0x30], ebx
call esi
cmp eax, ebx
jne 0x40a696
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x40a682
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x40a6ea
lea edx, [esp + 0x1c]
push edx
push 0x20019
push ebx
push edi
push ebp
mov dword [esp + 0x30], ebx
call esi
cmp eax, ebx
jne 0x40a6d6
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x40a6c2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x40a6ea
push ebp
mov edx, edi
lea esi, [esp + 0x18]
call fcn.0040b6c0
cmp eax, ebx
jne 0x40a991
mov ecx, dword [esp + 0x20]
mov eax, edi
call fcn.0040a110
mov ebp, eax
cmp ebp, ebx
jl 0x40a9c7
cmp word [edi], 0x3d
jne 0x40a433
push ebx
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x28]
mov ecx, edi
call fcn.00409a40
mov ebp, eax
cmp ebp, ebx
jl 0x40a9c7
jmp 0x40a433
cmp dword [esp + 0x227c], ebx
jne 0x40a849
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
push edi
push ecx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40a77a
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x40a76a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x40a78d
mov dword [esp + 0x227c], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x5c]
push 0x104
push eax
call dword [sym.imp.MSVCR90.dll_wcsncpy_s]
push eax
call fcn.00417740
mov esi, dword [esp + 0x34]
add esp, 0x14
mov eax, edi
mov ecx, esi
call fcn.0040a110
mov ebp, eax
cmp ebp, ebx
jl 0x40a9c7
mov ecx, esi
call fcn.00409e10
mov ebp, eax
cmp ebp, ebx
jl 0x40a9c7
cmp word [edi], 0x7b
jne 0x40a81f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40a81f
mov ecx, dword [esp + 0x227c]
mov edx, dword [esp + 0x14]
push ecx
push ebx
push edx
push edi
mov ecx, esi
call fcn.0040a280
mov ebp, eax
cmp ebp, ebx
jge 0x40a80c
cmp dword [esp + 0x227c], ebx
je 0x40a9c7
mov eax, edi
mov ecx, esi
call fcn.0040a110
mov ebp, eax
cmp ebp, ebx
jl 0x40a9c7
mov eax, dword [esp + 0x50]
mov dword [esp + 0x227c], eax
mov eax, dword [esp + 0x1c]
cmp eax, 2
je 0x40a88d
cmp eax, ebx
je 0x40a856
cmp dword [esp + 0x50], ebx
jne 0x40a88d
call fcn.0040a0d0
mov ebp, eax
jmp 0x40a9c7
mov dword [esp + 0x1c], 2
jmp 0x40a782
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x50], ebx
je 0x40a8a0
mov ecx, esi
call fcn.0040a090
test eax, eax
je 0x40a8a0
lea ebx, [esp + 0x54]
call fcn.00409e80
test eax, eax
je 0x40a88b
cmp dword [esp + 0x30], 0
je 0x40a88b
mov ecx, ebx
push ecx
lea ecx, [esp + 0x18]
call fcn.00409ec0
xor ebx, ebx
mov eax, dword [esp + 0x34]
cmp word [eax], 0x7d
jne 0x40a320
jmp 0x40a9c7
mov ecx, esi
call fcn.0040a090
mov edi, eax
xor eax, eax
cmp esi, ebx
je 0x40a8ba
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
cmp eax, ebx
jne 0x40a991
cmp dword [esp + 0x30], ebx
je 0x40a88d
cmp edi, ebx
jne 0x40a88d
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x2268], 4
mov edx, dword [esp + 0x24]
lea edi, [esp + 0x54]
lea esi, [esp + 0x40]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebx
call fcn.0040b390
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
cmp eax, ebx
jne 0x40a9b0
mov byte [esp + 0x2268], bl
call fcn.0040b9f0
jmp 0x40a88d
mov byte [esp + 0x2268], bl
lea esi, [esp + 0x28]
call fcn.0040b9f0
mov dword [esp + 0x2268], 0xffffffff
lea esi, [esp + 0x14]
call fcn.0040b9f0
mov eax, 0x80020009
jmp 0x40a9eb
mov byte [esp + 0x2268], bl
lea esi, [esp + 0x28]
jmp 0x40a9c2
mov byte [esp + 0x2268], bl
lea esi, [esp + 0x38]
call fcn.0040b9f0
mov dword [esp + 0x2268], 0xffffffff
lea esi, [esp + 0x14]
call fcn.0040b9f0
mov eax, ebp
jmp 0x40a9eb
call fcn.0040a0d0
mov ebp, eax
mov byte [esp + 0x2268], bl
lea esi, [esp + 0x48]
jmp 0x40a9c2
call fcn.0040a0d0
mov edi, eax
mov dword [esp + 0x2268], 0xffffffff
lea esi, [esp + 0x14]
call fcn.0040b9f0
mov eax, edi
jmp 0x40a9eb
call fcn.0040a0d0
mov ebp, eax
mov byte [esp + 0x2268], bl
lea esi, [esp + 0x40]
call fcn.0040b9f0
mov dword [esp + 0x2268], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40a9e5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, ebp
mov dword [esp + 0x18], ebx
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.0041e4d2
add esp, 0x2258
ret 0x10