Function at 0x40a104
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1154
call fcn.0041c5d0
mov eax, dword [0x42f080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x111c], 0
and dword [ebp - 0x1118], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1120], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x113c], eax
push edi
mov eax, ebx
mov dword [ebp - 0x1114], ecx
call fcn.0040a00f
mov edi, eax
test edi, edi
jl 0x40a5b8
cmp byte [ebx], 0x7d
je 0x40a5b6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push ebx
mov dword [ebp - 0x1128], 1
call edi
mov esi, eax
neg esi
push str.ForceRemove
sbb esi, esi
push ebx
inc esi
call edi
test eax, eax
je 0x40a194
test esi, esi
je 0x40a24e
mov ecx, dword [ebp - 0x1114]
mov eax, ebx
call fcn.0040a00f
mov edi, eax
test edi, edi
jl 0x40a5a1
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x40a250
push 0x5c
mov eax, ebx
mov dword [ebp - 0x1138], edi
mov dword [ebp - 0x1134], edi
call fcn.0040972f
pop ecx
test eax, eax
jne 0x40a706
push ebx
call fcn.00409dc8
test eax, eax
je 0x40a208
mov eax, dword [ebp - 0x1120]
push ebx
lea ecx, [ebp - 0x1138]
mov dword [ebp - 0x1138], eax
mov dword [ebp - 0x1134], edi
call fcn.00409e32
mov dword [ebp - 0x1138], edi
mov dword [ebp - 0x1134], edi
cmp esi, edi
je 0x40a246
mov ecx, dword [ebp - 0x1114]
mov eax, ebx
call fcn.0040a00f
mov edi, eax
test edi, edi
jl 0x40a5a1
mov ecx, dword [ebp - 0x1114]
mov edi, ebx
call fcn.00409d64
mov edi, eax
test edi, edi
jl 0x40a5a1
and dword [ebp - 0x1134], 0
jmp 0x40a6a9
mov dword [ebp - 0x1134], edi
jmp 0x40a250
xor edi, edi
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40a27f
and dword [ebp - 0x1128], eax
mov ecx, dword [ebp - 0x1114]
mov eax, ebx
call fcn.0040a00f
mov edi, eax
test edi, edi
jl 0x40a5a1
xor edi, edi
push 0x42af04
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40a3af
mov ecx, dword [ebp - 0x1114]
lea eax, [ebp - 0x1110]
call fcn.0040a00f
mov edi, eax
test edi, edi
jl 0x40a5a1
mov ecx, dword [ebp - 0x1114]
mov eax, ebx
call fcn.0040a00f
mov edi, eax
test edi, edi
jl 0x40a5a1
cmp byte [ebx], 0x3d
jne 0x40a724
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40a321
mov eax, dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x114c], eax
push ebx
lea eax, [ebp - 0x1110]
push eax
lea edx, [ebp - 0x114c]
mov dword [ebp - 0x1148], esi
call fcn.00409988
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x114c], esi
mov dword [ebp - 0x1148], esi
jl 0x40a77a
mov dword [ebp - 0x1148], esi
jmp 0x40a6a9
cmp dword [ebp + 0x14], esi
jne 0x40a399
cmp dword [ebp - 0x1128], esi
je 0x40a399
push esi
push dword [ebp - 0x1120]
mov eax, 0x20006
lea ecx, [ebp - 0x1130]
mov dword [ebp - 0x1130], esi
mov dword [ebp - 0x112c], esi
call fcn.00409df4
cmp eax, esi
jne 0x40a72d
lea eax, [ebp - 0x1110]
push eax
push dword [ebp - 0x1130]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, esi
je 0x40a379
cmp eax, 2
jne 0x40a72d
cmp dword [ebp - 0x1130], esi
je 0x40a393
push dword [ebp - 0x1130]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1130], esi
mov dword [ebp - 0x112c], esi
mov ecx, dword [ebp - 0x1114]
mov edi, ebx
call fcn.00409d64
mov edi, eax
cmp edi, esi
jmp 0x40a6f2
push 0x5c
mov eax, ebx
call fcn.0040972f
pop ecx
test eax, eax
jne 0x40a706
cmp dword [ebp + 0x10], edi
je 0x40a4a1
push ebx
push dword [ebp - 0x1120]
mov esi, 0x2001f
mov eax, esi
lea ecx, [ebp - 0x111c]
call fcn.00409df4
test eax, eax
je 0x40a45e
push ebx
push dword [ebp - 0x1120]
lea eax, [esi - 6]
lea ecx, [ebp - 0x111c]
call fcn.00409df4
test eax, eax
je 0x40a45e
lea eax, [ebp - 0x1150]
push eax
lea eax, [ebp - 0x1128]
push eax
push edi
push esi
push edi
push edi
push edi
push ebx
push dword [ebp - 0x1120]
mov dword [ebp - 0x1128], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
jne 0x40a751
xor eax, eax
cmp dword [ebp - 0x111c], edi
je 0x40a444
push dword [ebp - 0x111c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1128]
mov dword [ebp - 0x111c], ecx
mov dword [ebp - 0x1118], edi
cmp eax, edi
jne 0x40a751
mov ecx, dword [ebp - 0x1114]
mov eax, ebx
call fcn.0040a00f
mov edi, eax
test edi, edi
jl 0x40a5a1
cmp byte [ebx], 0x3d
jne 0x40a6a9
mov ecx, dword [ebp - 0x1114]
push ebx
push 0
lea edx, [ebp - 0x111c]
call fcn.00409988
mov edi, eax
test edi, edi
jl 0x40a5a1
jmp 0x40a6a9
cmp dword [ebp + 0x14], edi
jne 0x40a4c5
push ebx
push dword [ebp - 0x1120]
mov eax, 0x20019
lea ecx, [ebp - 0x111c]
call fcn.00409df4
mov dword [ebp - 0x1124], eax
jmp 0x40a4cf
mov dword [ebp - 0x1124], 2
cmp dword [ebp - 0x1124], edi
je 0x40a4de
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.00413fac
push eax
call fcn.00407d4e
mov ecx, dword [ebp - 0x1114]
add esp, 0x14
mov eax, ebx
call fcn.0040a00f
mov edi, eax
test edi, edi
jl 0x40a5a1
mov ecx, dword [ebp - 0x1114]
mov edi, ebx
call fcn.00409d64
mov edi, eax
test edi, edi
jl 0x40a5a1
cmp byte [ebx], 0x7b
jne 0x40a56c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40a56c
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x1114]
push 0
push dword [ebp - 0x111c]
push ebx
call fcn.0040a104
mov edi, eax
test edi, edi
jge 0x40a559
cmp dword [ebp + 0x14], 0
je 0x40a5a1
mov ecx, dword [ebp - 0x1114]
mov eax, ebx
call fcn.0040a00f
mov edi, eax
test edi, edi
jl 0x40a5a1
cmp dword [ebp - 0x1124], 2
mov eax, dword [ebp - 0x113c]
mov dword [ebp + 0x14], eax
je 0x40a6f8
xor esi, esi
cmp dword [ebp - 0x1124], esi
je 0x40a5c9
cmp eax, esi
jne 0x40a6f8
mov eax, dword [ebp - 0x1124]
call fcn.0040a000
mov edi, eax
cmp dword [ebp - 0x111c], 0
je 0x40a5b6
push dword [ebp - 0x111c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411d8c
leave
ret 0x10
cmp eax, esi
je 0x40a614
push dword [ebp - 0x111c]
call fcn.00409f5d
test eax, eax
je 0x40a614
lea eax, [ebp - 0x110]
push eax
call fcn.00409dc8
test eax, eax
je 0x40a6f8
cmp dword [ebp - 0x1128], 0
je 0x40a6f8
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x111c]
call fcn.00409e32
jmp 0x40a6f8
push dword [ebp - 0x111c]
call fcn.00409f5d
mov dword [ebp - 0x1124], eax
xor eax, eax
cmp dword [ebp - 0x111c], esi
je 0x40a641
push dword [ebp - 0x111c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x111c], esi
mov dword [ebp - 0x1118], esi
cmp eax, esi
jne 0x40a773
cmp dword [ebp - 0x1128], esi
je 0x40a6f8
cmp dword [ebp - 0x1124], 0
jne 0x40a6f8
mov eax, dword [ebp - 0x1120]
and dword [ebp - 0x1140], 0
mov dword [ebp - 0x1144], eax
lea eax, [ebp - 0x110]
push eax
lea esi, [ebp - 0x1144]
call fcn.00409fa9
and dword [ebp - 0x1144], 0
and dword [ebp - 0x1140], 0
test eax, eax
jne 0x40a59a
and dword [ebp - 0x1140], eax
cmp dword [ebp + 0x10], 0
je 0x40a6f8
cmp byte [ebx], 0x7b
jne 0x40a6f8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40a6f8
mov ecx, dword [ebp - 0x1114]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x111c]
push ebx
call fcn.0040a104
mov edi, eax
test edi, edi
jl 0x40a5a1
mov ecx, dword [ebp - 0x1114]
mov eax, ebx
call fcn.0040a00f
mov edi, eax
test edi, edi
jl 0x40a5a1
cmp byte [ebx], 0x7d
jne 0x40a161
jmp 0x40a5a1
cmp dword [ebp - 0x111c], edi
je 0x40a71a
push dword [ebp - 0x111c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x40a5b8
cmp dword [ebp - 0x111c], 0
jmp 0x40a70c
call fcn.0040a000
mov edi, eax
cmp dword [ebp - 0x1130], esi
je 0x40a5a1
push dword [ebp - 0x1130]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a5a1
call fcn.0040a000
mov esi, eax
cmp dword [ebp - 0x111c], edi
je 0x40a76c
push dword [ebp - 0x111c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40a5b8
call fcn.0040a000
mov edi, eax
cmp dword [ebp - 0x111c], esi
jmp 0x40a5a8