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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015832
mov eax, dword fs:[0]
push eax
mov eax, 0x2224
call fcn.01011a50
mov eax, dword [0x10191b8]
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 edi, dword [ebp + 8]
and dword [ebp - 0x2224], 0
mov dword [ebp - 0x221c], ecx
mov dword [ebp - 0x222c], eax
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
mov dword [ebp - 0x2230], eax
jmp 0x1005586
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x1001568
push edi
mov dword [ebp - 0x2228], 1
call esi
mov ebx, eax
neg ebx
push 0x100158c
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x100510b
test ebx, ebx
je 0x10051bc
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0100402e
mov esi, eax
test esi, esi
jl 0x10055fa
cmp dword [ebp + 0x10], 0
je 0x10051bc
and dword [ebp - 0x2220], 0
push 0x5c
push edi
call fcn.01003fa2
test eax, eax
jne 0x100559e
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.01004138
test eax, eax
je 0x1005171
mov eax, dword [ebp - 0x222c]
push edi
lea ecx, [ebp - 0x2220]
mov dword [ebp - 0x2220], eax
call fcn.01004327
and dword [ebp - 0x2220], 0
test ebx, ebx
je 0x10051b1
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0100402e
mov esi, eax
test esi, esi
jl 0x10055b0
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.010041aa
lea ecx, [ebp - 0x2220]
mov esi, eax
call fcn.01002d7a
test esi, esi
jl 0x10055fa
jmp 0x100554b
lea ecx, [ebp - 0x2220]
call fcn.01002d7a
push 0x1001578
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10051e8
mov ecx, dword [ebp - 0x221c]
and dword [ebp - 0x2228], eax
push edi
call fcn.0100402e
mov esi, eax
test esi, esi
jl 0x10055fa
push 0x10015a4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10052f1
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
push eax
call fcn.0100402e
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x10055fa
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0100402e
mov esi, eax
cmp esi, ebx
jl 0x10055fa
cmp word [edi], 0x3d
jne 0x10055a9
cmp dword [ebp + 0x10], ebx
je 0x100527f
mov eax, dword [ebp - 0x222c]
mov ecx, dword [ebp - 0x221c]
mov dword [ebp - 0x2228], eax
push edi
lea eax, [ebp - 0x2218]
push eax
lea eax, [ebp - 0x2228]
push eax
call fcn.01004d87
lea ecx, [ebp - 0x2228]
mov esi, eax
mov dword [ebp - 0x2228], ebx
call fcn.01002d7a
cmp esi, ebx
jmp 0x10051a6
cmp dword [ebp + 0x14], ebx
jne 0x10052dc
cmp dword [ebp - 0x2228], ebx
je 0x10052dc
push 0x20006
push ebx
push dword [ebp - 0x222c]
lea ecx, [ebp - 0x2220]
mov dword [ebp - 0x2220], ebx
call fcn.01003c9f
cmp eax, ebx
jne 0x10055b8
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x10052d1
cmp eax, 2
jne 0x10055b8
lea ecx, [ebp - 0x2220]
call fcn.01002d7a
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.010041aa
mov esi, eax
cmp esi, ebx
jmp 0x1005590
push 0x5c
push edi
call fcn.01003fa2
test eax, eax
jne 0x10055a9
cmp dword [ebp + 0x10], eax
je 0x10053a0
mov esi, 0x2001f
push esi
push edi
push dword [ebp - 0x222c]
lea ecx, [ebp - 0x2224]
call fcn.01003c9f
test eax, eax
je 0x1005364
push 0x20019
push edi
push dword [ebp - 0x222c]
lea ecx, [ebp - 0x2224]
call fcn.01003c9f
test eax, eax
je 0x1005364
xor ebx, ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x222c]
lea ecx, [ebp - 0x2224]
call fcn.01002d98
mov esi, eax
cmp esi, ebx
jne 0x10055c6
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0100402e
mov esi, eax
test esi, esi
jl 0x10055fa
cmp word [edi], 0x3d
jne 0x100554b
mov ecx, dword [ebp - 0x221c]
push edi
push 0
lea eax, [ebp - 0x2224]
push eax
call fcn.01004d87
mov esi, eax
jmp 0x10051a4
cmp dword [ebp + 0x14], 0
jne 0x10053c1
push 0x20019
push edi
push dword [ebp - 0x222c]
lea ecx, [ebp - 0x2224]
call fcn.01003c9f
mov ebx, eax
jmp 0x10053c4
push 2
pop ebx
test ebx, ebx
je 0x10053cf
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.01003b34
mov ecx, dword [ebp - 0x221c]
add esp, 0x10
push edi
call fcn.0100402e
mov esi, eax
test esi, esi
jl 0x10055fa
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.010041aa
mov esi, eax
test esi, esi
jl 0x10055fa
cmp word [edi], 0x7b
jne 0x1005461
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x1005461
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2224]
push edi
call fcn.01005079
mov esi, eax
test esi, esi
jge 0x100544b
cmp dword [ebp + 0x14], 0
je 0x10055fa
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0100402e
mov esi, eax
test esi, esi
jl 0x10055fa
cmp ebx, 2
mov eax, dword [ebp - 0x2230]
mov dword [ebp + 0x14], eax
je 0x1005592
test ebx, ebx
je 0x100548c
test eax, eax
jne 0x1005592
push ebx
call fcn.01002d3f
mov esi, eax
jmp 0x10055fa
test eax, eax
je 0x10054e3
push dword [ebp - 0x2224]
mov ecx, dword [ebp - 0x221c]
call fcn.0100416e
test eax, eax
je 0x10054e3
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x218]
push eax
call fcn.01004138
test eax, eax
je 0x1005592
cmp dword [ebp - 0x2228], 0
je 0x1005592
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2224]
call fcn.01004327
jmp 0x1005592
push dword [ebp - 0x2224]
mov ecx, dword [ebp - 0x221c]
call fcn.0100416e
lea ecx, [ebp - 0x2224]
mov dword [ebp - 0x2220], eax
call fcn.01002d7a
mov ebx, eax
test ebx, ebx
jne 0x10055d9
cmp dword [ebp - 0x2228], eax
je 0x1005592
cmp dword [ebp - 0x2220], eax
jne 0x1005592
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x222c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp - 0x2228], ebx
test eax, eax
jne 0x10055e7
lea ecx, [ebp - 0x2228]
call fcn.01002d7a
cmp dword [ebp + 0x10], 0
je 0x1005592
cmp word [edi], 0x7b
jne 0x1005592
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x1005592
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x2224]
push edi
call fcn.01005079
mov esi, eax
test esi, esi
jl 0x10055fa
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0100402e
mov esi, eax
test esi, esi
jl 0x10055fa
cmp word [edi], 0x7d
jne 0x10050d8
jmp 0x10055fa
lea ecx, [ebp - 0x2220]
call fcn.01002d7a
mov esi, 0x80020009
jmp 0x10055fa
lea ecx, [ebp - 0x2220]
jmp 0x10055f5
push eax
call fcn.01002d3f
lea ecx, [ebp - 0x2220]
jmp 0x10055f3
lea ecx, [ebp - 0x2224]
call fcn.01002d7a
push esi
call fcn.01002d3f
jmp 0x1005607
lea ecx, [ebp - 0x2224]
call fcn.01002d7a
push ebx
jmp 0x10055d2
push eax
call fcn.01002d3f
lea ecx, [ebp - 0x2228]
mov esi, eax
call fcn.01002d7a
lea ecx, [ebp - 0x2224]
call fcn.01002d7a
mov eax, esi
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.01011905
leave
ret 0x10