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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [ebp + 0x14]
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], eax
jmp 0x405842be
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x40581208
push edi
call esi
mov ebx, eax
neg ebx
push 0x4058121c
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x40583f11
test ebx, ebx
je 0x40583f97
mov ecx, dword [ebp - 4]
push edi
call fcn.405833e1
mov esi, eax
test esi, esi
jl 0x405842e2
cmp dword [ebp + 0x10], 0
je 0x40583f97
and dword [ebp + 8], 0
push 0x5c
push edi
call fcn.4058337d
test eax, eax
pop ecx
pop ecx
jne 0x405842d5
mov ecx, dword [ebp - 4]
push edi
call fcn.40583680
test eax, eax
je 0x40583f60
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.40583e15
and dword [ebp + 8], 0
test ebx, ebx
je 0x40583f8f
mov ecx, dword [ebp - 4]
push edi
call fcn.405833e1
mov esi, eax
test esi, esi
jl 0x40584309
mov ecx, dword [ebp - 4]
push edi
call fcn.40583756
lea ecx, [ebp + 8]
mov esi, eax
call fcn.40582ea8
jmp 0x40584289
lea ecx, [ebp + 8]
call fcn.40582ea8
push 0x40581210
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40583fbd
mov ecx, dword [ebp - 4]
and dword [ebp - 0x10], eax
push edi
call fcn.405833e1
mov esi, eax
test esi, esi
jl 0x405842e2
push 0x40581228
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40584093
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x118]
push eax
call fcn.405833e1
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x405842e2
mov ecx, dword [ebp - 4]
push edi
call fcn.405833e1
mov esi, eax
cmp esi, ebx
jl 0x405842e2
cmp byte [edi], 0x3d
jne 0x405842dd
cmp dword [ebp + 0x10], ebx
je 0x4058403b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp + 8]
push eax
call fcn.405834ba
lea ecx, [ebp + 8]
mov esi, eax
mov dword [ebp + 8], ebx
call fcn.40582ea8
cmp esi, ebx
jmp 0x4058428b
cmp dword [ebp + 0x14], ebx
jne 0x40584081
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.40582f0d
cmp eax, ebx
jne 0x405842fb
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x40584079
cmp eax, 2
jne 0x405842f9
lea ecx, [ebp + 8]
call fcn.40582ea8
mov ecx, dword [ebp - 4]
push edi
call fcn.40583756
mov esi, eax
cmp esi, ebx
jmp 0x405842c8
push 0x5c
push edi
call fcn.4058337d
test eax, eax
pop ecx
pop ecx
jne 0x405842dd
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40584122
mov esi, 0xf003f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.40582f0d
test eax, eax
je 0x405840f2
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.40582f0d
test eax, eax
je 0x405840f2
xor eax, eax
push eax
push eax
push esi
push eax
push eax
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.40582ebf
test eax, eax
jne 0x405842dd
mov ecx, dword [ebp - 4]
push edi
call fcn.405833e1
mov esi, eax
test esi, esi
jl 0x405842e2
cmp byte [edi], 0x3d
jne 0x4058428d
mov ecx, dword [ebp - 4]
push edi
push 0
lea eax, [ebp - 8]
push eax
call fcn.405834ba
jmp 0x40584287
cmp dword [ebp + 0x14], esi
jne 0x40584143
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.40582f0d
test eax, eax
je 0x40584143
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0xc], esi
jne 0x40584155
mov eax, 0x104
call fcn.40586d20
mov dword [ebp - 0xc], esp
push 0x104
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x14], esi
jne 0x4058418b
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.405836ac
test eax, eax
jne 0x4058418b
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.405836e1
test eax, eax
je 0x40584242
mov ecx, dword [ebp - 4]
push edi
call fcn.405833e1
mov esi, eax
test esi, esi
jl 0x405842e2
mov ebx, dword [ebp - 4]
push edi
mov ecx, ebx
call fcn.40583756
mov esi, eax
test esi, esi
jl 0x405842e2
cmp byte [edi], 0x7b
jne 0x405841fd
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 8]
push edi
call fcn.40583ebc
mov esi, eax
test esi, esi
jl 0x405842e2
cmp dword [ebp + 0x14], 0
je 0x4058420a
mov eax, dword [ebp - 0x14]
push edi
mov ecx, ebx
mov dword [ebp + 0x14], eax
call fcn.405833e1
mov esi, eax
test esi, esi
jl 0x405842e2
push edi
mov ecx, ebx
call fcn.40583756
jmp 0x405842c4
cmp dword [ebp + 0x14], 0
jne 0x405842ca
mov ebx, dword [ebp - 4]
push dword [ebp - 8]
mov ecx, ebx
call fcn.405836ac
test eax, eax
je 0x40584238
push dword [ebp - 0xc]
mov ecx, ebx
call fcn.40583680
test eax, eax
je 0x40584231
push dword [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.40583e15
mov ecx, ebx
jmp 0x405842be
cmp dword [ebp + 0x14], 0
jne 0x405842ca
lea ecx, [ebp - 8]
call fcn.40582ea8
test eax, eax
jne 0x405842dd
cmp dword [ebp - 0x10], eax
je 0x4058426f
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
and dword [ebp + 8], 0
lea ecx, [ebp + 8]
call fcn.40582ea8
mov ecx, dword [ebp - 4]
push edi
call fcn.405833e1
mov esi, eax
test esi, esi
jl 0x405842e2
mov ecx, dword [ebp - 4]
push edi
call fcn.40583756
mov esi, eax
test esi, esi
jl 0x405842e2
cmp dword [ebp + 0x10], 0
je 0x405842ca
cmp byte [edi], 0x7b
jne 0x405842ca
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x405842ca
mov ecx, dword [ebp - 4]
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
push edi
call fcn.40583ebc
mov esi, eax
test esi, esi
jl 0x405842e2
mov ecx, dword [ebp - 4]
push edi
call fcn.405833e1
mov esi, eax
test esi, esi
jl 0x405842e2
cmp byte [edi], 0x7d
jne 0x40583ee8
jmp 0x405842e2
lea ecx, [ebp + 8]
call fcn.40582ea8
mov esi, 0x80020009
lea ecx, [ebp - 8]
call fcn.40582ea8
mov eax, esi
lea esp, [ebp - 0x124]
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp eax, ebx
jle 0x40584307
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea ecx, [ebp + 8]
call fcn.40582ea8
jmp 0x405842e2