Function at 0x40a28c
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482707
mov eax, dword fs:[0]
push eax
mov eax, 0x224c
call fcn.0046e970
mov eax, dword [0x49a0d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x221c], ecx
mov dword [ebp - 0x2220], eax
mov dword [ebp - 0x2228], esi
mov dword [ebp - 0x2224], esi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x223c], eax
mov eax, ebx
mov dword [ebp - 4], esi
call fcn.0040a17a
mov edi, eax
cmp edi, esi
jmp 0x40a7fe
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
push 0x490ae8
push ebx
mov dword [ebp - 0x2238], 1
call edi
mov esi, eax
neg esi
push 0x490ab4
sbb esi, esi
push ebx
inc esi
call edi
test eax, eax
je 0x40a32d
test esi, esi
je 0x40a3ef
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a17a
mov edi, eax
test edi, edi
jl 0x40a86c
cmp dword [ebp + 0x10], 0
je 0x40a3ef
xor edi, edi
push 0x5c
mov eax, ebx
mov dword [ebp - 0x2234], edi
mov dword [ebp - 0x2230], edi
call fcn.00409910
pop ecx
test eax, eax
jne 0x40a80c
push ebx
call fcn.00409f85
test eax, eax
je 0x40a3a2
mov eax, dword [ebp - 0x2220]
push ebx
lea ecx, [ebp - 0x2234]
mov dword [ebp - 0x2234], eax
mov dword [ebp - 0x2230], edi
call fcn.00409fe4
mov dword [ebp - 0x2234], edi
mov dword [ebp - 0x2230], edi
cmp esi, edi
je 0x40a3e4
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a17a
mov edi, eax
test edi, edi
jl 0x40a81e
mov ecx, dword [ebp - 0x221c]
mov esi, ebx
call fcn.00409f20
lea esi, [ebp - 0x2234]
mov edi, eax
call fcn.0040a109
test edi, edi
jl 0x40a86c
jmp 0x40a7b8
lea esi, [ebp - 0x2234]
call fcn.0040a109
push 0x490ad0
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x40a41c
and dword [ebp - 0x2238], eax
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a17a
mov edi, eax
test edi, edi
jl 0x40a86c
push 0x490aa8
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x40a53c
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
call fcn.0040a17a
mov edi, eax
xor esi, esi
cmp edi, esi
jl 0x40a86c
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a17a
mov edi, eax
cmp edi, esi
jl 0x40a86c
cmp word [ebx], 0x3d
jne 0x40a817
cmp dword [ebp + 0x10], esi
je 0x40a4c7
mov eax, dword [ebp - 0x2220]
mov ecx, dword [ebp - 0x221c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x2244], eax
push ebx
lea eax, [ebp - 0x2218]
push eax
lea edx, [ebp - 0x2244]
mov dword [ebp - 0x2240], esi
call fcn.00409c22
mov edi, eax
mov dword [ebp - 0x2244], esi
mov dword [ebp - 0x2240], esi
cmp edi, esi
lea esi, [ebp - 0x2244]
jl 0x40a867
mov byte [ebp - 4], 0
jmp 0x40a7b3
cmp dword [ebp + 0x14], esi
jne 0x40a52a
cmp dword [ebp - 0x2238], esi
je 0x40a52a
push 0x20006
push esi
push dword [ebp - 0x2220]
lea eax, [ebp - 0x224c]
mov dword [ebp - 0x224c], esi
mov dword [ebp - 0x2248], esi
call fcn.00409fb1
cmp eax, esi
jne 0x40a826
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x224c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x40a51f
cmp eax, 2
jne 0x40a826
lea esi, [ebp - 0x224c]
call fcn.0040a109
mov ecx, dword [ebp - 0x221c]
mov esi, ebx
call fcn.00409f20
jmp 0x40a7fa
push 0x5c
mov eax, ebx
call fcn.00409910
pop ecx
test eax, eax
jne 0x40a817
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40a5e9
mov esi, 0x2001f
push esi
push ebx
push dword [ebp - 0x2220]
lea eax, [ebp - 0x2228]
call fcn.00409fb1
test eax, eax
je 0x40a5ad
push 0x20019
push ebx
push dword [ebp - 0x2220]
lea eax, [ebp - 0x2228]
call fcn.00409fb1
test eax, eax
je 0x40a5ad
push esi
push ebx
push dword [ebp - 0x2220]
lea eax, [ebp - 0x2228]
call fcn.00409937
mov edi, eax
test edi, edi
jne 0x40a833
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a17a
mov edi, eax
test edi, edi
jl 0x40a86c
cmp word [ebx], 0x3d
jne 0x40a7b8
mov ecx, dword [ebp - 0x221c]
push ebx
push 0
lea edx, [ebp - 0x2228]
call fcn.00409c22
mov edi, eax
jmp 0x40a3d7
cmp dword [ebp + 0x14], esi
jne 0x40a60d
push 0x20019
push ebx
push dword [ebp - 0x2220]
lea eax, [ebp - 0x2228]
call fcn.00409fb1
mov dword [ebp - 0x222c], eax
jmp 0x40a617
mov dword [ebp - 0x222c], 2
cmp dword [ebp - 0x222c], esi
je 0x40a626
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0044a5c0
push eax
call fcn.00402649
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
mov eax, ebx
call fcn.0040a17a
mov edi, eax
test edi, edi
jl 0x40a86c
mov ecx, dword [ebp - 0x221c]
mov esi, ebx
call fcn.00409f20
mov edi, eax
test edi, edi
jl 0x40a86c
cmp word [ebx], 0x7b
jne 0x40a6c1
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 1
jne 0x40a6c1
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2228]
push ebx
call fcn.0040a28c
mov edi, eax
test edi, edi
jge 0x40a6aa
cmp dword [ebp + 0x14], 0
je 0x40a86c
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a17a
mov edi, eax
test edi, edi
jl 0x40a86c
mov eax, dword [ebp - 0x223c]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x222c]
cmp eax, 2
je 0x40a800
test eax, eax
je 0x40a6f6
cmp dword [ebp - 0x223c], 0
jne 0x40a800
call fcn.0040a145
mov edi, eax
jmp 0x40a86c
cmp dword [ebp - 0x223c], 0
je 0x40a746
push dword [ebp - 0x2228]
call fcn.0040a0c9
test eax, eax
je 0x40a746
lea eax, [ebp - 0x218]
push eax
call fcn.00409f85
test eax, eax
je 0x40a800
cmp dword [ebp - 0x2238], 0
je 0x40a800
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2228]
call fcn.00409fe4
jmp 0x40a800
push dword [ebp - 0x2228]
call fcn.0040a0c9
lea esi, [ebp - 0x2228]
mov dword [ebp - 0x2250], eax
call fcn.0040a109
xor esi, esi
mov dword [ebp - 0x222c], eax
cmp eax, esi
jne 0x40a847
cmp dword [ebp - 0x2238], esi
je 0x40a800
cmp dword [ebp - 0x2250], esi
jne 0x40a800
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x2258], esi
mov dword [ebp - 0x2254], esi
cmp eax, esi
jne 0x40a85a
lea esi, [ebp - 0x2258]
call fcn.0040a109
cmp dword [ebp + 0x10], 0
je 0x40a800
cmp word [ebx], 0x7b
jne 0x40a800
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 1
jne 0x40a800
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x2228]
push ebx
call fcn.0040a28c
mov edi, eax
test edi, edi
jl 0x40a86c
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a17a
mov edi, eax
test edi, edi
jl 0x40a86c
cmp word [ebx], 0x7d
jne 0x40a2fa
jmp 0x40a86c
lea esi, [ebp - 0x2234]
call fcn.0040a109
mov edi, 0x80020009
jmp 0x40a86c
lea esi, [ebp - 0x2234]
jmp 0x40a867
call fcn.0040a145
lea esi, [ebp - 0x224c]
jmp 0x40a865
lea esi, [ebp - 0x2228]
call fcn.0040a109
mov eax, edi
call fcn.0040a145
jmp 0x40a879
lea esi, [ebp - 0x2228]
call fcn.0040a109
mov eax, dword [ebp - 0x222c]
jmp 0x40a840
call fcn.0040a145
lea esi, [ebp - 0x2258]
mov edi, eax
call fcn.0040a109
lea esi, [ebp - 0x2228]
call fcn.0040a109
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004498d8
leave
ret 0x10