Function at 0x40a0cb
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x21c8]
mov eax, 0x2248
call fcn.0044d8b0
mov eax, dword [0x480900]
xor eax, ebp
mov dword [ebp + 0x21c4], eax
mov eax, dword [ebp + 0x21d4]
and dword [ebp - 0x54], 0
and dword [ebp - 0x50], 0
push ebx
push esi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x21dc]
push edi
mov edi, dword [ebp + 0x21d0]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x7c], eax
jmp 0x40a542
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [ebp - 0x60], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x40a145
test ebx, ebx
je 0x40a1df
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00408bea
mov esi, eax
test esi, esi
jl 0x40a5a7
cmp dword [ebp + 0x21d8], 0
je 0x40a1df
xor esi, esi
push 0x5c
push edi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
call fcn.00408b7a
pop ecx
pop ecx
test eax, eax
jne 0x40a55a
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00408cf8
test eax, eax
je 0x40a1a0
mov eax, dword [ebp - 0x4c]
push edi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], esi
call fcn.00408eef
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
cmp ebx, esi
je 0x40a1d7
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00408bea
mov esi, eax
test esi, esi
jl 0x40a569
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00408d59
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.0040884d
test esi, esi
jl 0x40a5a7
jmp 0x40a50a
lea ecx, [ebp - 0x5c]
call fcn.0040884d
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40a205
mov ecx, dword [ebp - 0x48]
and dword [ebp - 0x60], eax
push edi
call fcn.00408bea
mov esi, eax
test esi, esi
jl 0x40a5a7
push 0x4697a4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40a2e7
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push eax
call fcn.00408bea
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x40a5a7
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00408bea
mov esi, eax
cmp esi, ebx
jl 0x40a5a7
cmp word [edi], 0x3d
jne 0x40a562
cmp dword [ebp + 0x21d8], ebx
je 0x40a287
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x78], eax
push edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x74], ebx
call fcn.00409e39
lea ecx, [ebp - 0x78]
mov esi, eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
call fcn.0040884d
cmp esi, ebx
jmp 0x40a1cc
cmp dword [ebp + 0x21dc], ebx
jne 0x40a2d5
cmp dword [ebp - 0x60], ebx
je 0x40a2d5
push 0x20006
push ebx
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
call fcn.004088c2
cmp eax, ebx
jne 0x40a56e
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x40a2cd
cmp eax, 2
jne 0x40a56e
lea ecx, [ebp - 0x68]
call fcn.0040884d
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00408d59
mov esi, eax
cmp esi, ebx
jmp 0x40a54c
push 0x5c
push edi
call fcn.00408b7a
pop ecx
pop ecx
test eax, eax
jne 0x40a562
cmp dword [ebp + 0x21d8], eax
je 0x40a37c
mov esi, 0x2001f
push esi
push edi
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x54]
call fcn.004088c2
test eax, eax
je 0x40a349
push 0x20019
push edi
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x54]
call fcn.004088c2
test eax, eax
je 0x40a349
xor ebx, ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x54]
call fcn.00408868
mov esi, eax
cmp esi, ebx
jne 0x40a57a
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00408bea
mov esi, eax
test esi, esi
jl 0x40a5a7
cmp word [edi], 0x3d
jne 0x40a50a
mov ecx, dword [ebp - 0x48]
push edi
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.00409e39
mov esi, eax
jmp 0x40a1ca
cmp dword [ebp + 0x21dc], 0
jne 0x40a39a
push 0x20019
push edi
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x54]
call fcn.004088c2
mov ebx, eax
jmp 0x40a39d
push 2
pop ebx
test ebx, ebx
je 0x40a3ab
mov dword [ebp + 0x21dc], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x1fbc]
push 0x104
push eax
call fcn.0044d7db
push eax
call fcn.00407673
mov ecx, dword [ebp - 0x48]
add esp, 0x14
push edi
call fcn.00408bea
mov esi, eax
test esi, esi
jl 0x40a5a7
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00408d59
mov esi, eax
test esi, esi
jl 0x40a5a7
cmp word [edi], 0x7b
jne 0x40a43a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40a43a
push dword [ebp + 0x21dc]
mov ecx, dword [ebp - 0x48]
push 0
push dword [ebp - 0x54]
push edi
call fcn.0040a0cb
mov esi, eax
test esi, esi
jge 0x40a427
cmp dword [ebp + 0x21dc], 0
je 0x40a5a7
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00408bea
mov esi, eax
test esi, esi
jl 0x40a5a7
mov eax, dword [ebp - 0x7c]
mov dword [ebp + 0x21dc], eax
cmp ebx, 2
je 0x40a54e
test ebx, ebx
je 0x40a466
test eax, eax
jne 0x40a54e
push ebx
call fcn.0040872a
pop ecx
mov esi, eax
jmp 0x40a5a7
test eax, eax
je 0x40a4ae
push dword [ebp - 0x54]
mov ecx, dword [ebp - 0x48]
call fcn.00408d24
test eax, eax
je 0x40a4ae
mov ecx, dword [ebp - 0x48]
lea eax, [ebp + 0x1fbc]
push eax
call fcn.00408cf8
test eax, eax
je 0x40a54e
cmp dword [ebp - 0x60], 0
je 0x40a54e
lea eax, [ebp + 0x1fbc]
push eax
lea ecx, [ebp - 0x54]
call fcn.00408eef
jmp 0x40a54e
push dword [ebp - 0x54]
mov ecx, dword [ebp - 0x48]
call fcn.00408d24
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x80], eax
call fcn.0040884d
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x40a58b
cmp dword [ebp - 0x60], eax
je 0x40a54e
cmp dword [ebp - 0x80], eax
jne 0x40a54e
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], eax
lea eax, [ebp + 0x1fbc]
mov dword [ebp - 0x70], ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.004087f2
and dword [ebp - 0x70], 0
and dword [ebp - 0x6c], 0
test eax, eax
jne 0x40a596
lea ecx, [ebp - 0x70]
call fcn.0040884d
cmp dword [ebp + 0x21d8], 0
je 0x40a54e
cmp word [edi], 0x7b
jne 0x40a54e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40a54e
mov ecx, dword [ebp - 0x48]
push 0
push dword [ebp + 0x21d8]
push dword [ebp - 0x54]
push edi
call fcn.0040a0cb
mov esi, eax
test esi, esi
jl 0x40a5a7
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00408bea
mov esi, eax
test esi, esi
jl 0x40a5a7
cmp word [edi], 0x7d
jne 0x40a115
jmp 0x40a5a7
lea ecx, [ebp - 0x5c]
call fcn.0040884d
mov esi, 0x80020009
jmp 0x40a5a7
lea ecx, [ebp - 0x5c]
jmp 0x40a5a2
push eax
call fcn.0040872a
pop ecx
lea ecx, [ebp - 0x68]
jmp 0x40a5a0
lea ecx, [ebp - 0x54]
call fcn.0040884d
push esi
call fcn.0040872a
pop ecx
jmp 0x40a5b1
lea ecx, [ebp - 0x54]
call fcn.0040884d
push ebx
jmp 0x40a583
push eax
call fcn.0040872a
pop ecx
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.0040884d
lea ecx, [ebp - 0x54]
call fcn.0040884d
mov eax, esi
mov ecx, dword [ebp + 0x21c4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044cbcc
add ebp, 0x21c8
leave
ret 0x10