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

Disassembly:
mov eax, 0x4157fd
call fcn.0040a6a4
sub esp, 0x21c
and dword [ebp - 0x10], 0
push esi
push edi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402c0a
mov esi, eax
test esi, esi
jge 0x403070
lea ecx, [ebp - 0x10]
call fcn.004035a4
mov eax, esi
jmp 0x403516
push ebx
jmp 0x40319d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x416460
push edi
mov dword [ebp - 0x18], 1
call esi
mov ebx, eax
neg ebx
push 0x416440
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x4030a6
test ebx, ebx
je 0x4031be
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402c0a
mov esi, eax
test esi, esi
jl 0x403504
cmp dword [ebp + 0x10], 0
je 0x4031be
and dword [ebp + 8], 0
mov cl, byte [edi]
mov byte [ebp - 4], 1
mov eax, edi
jmp 0x4030df
cmp cl, 0x5c
je 0x4030e5
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x4030d1
jmp 0x4030ed
test eax, eax
jne 0x403526
mov esi, 0x4163c4
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40311d
add esi, 4
cmp esi, 0x4163f4
jl 0x4030f2
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.0040367a
and dword [ebp + 8], 0
test ebx, ebx
je 0x4031ab
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402c0a
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x403557
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00403625
mov esi, eax
cmp esi, ebx
jl 0x403557
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], bl
je 0x40315e
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [edi], 0x7b
jne 0x40319d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40319d
mov ecx, dword [ebp - 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push edi
call fcn.0040302f
mov esi, eax
test esi, esi
jl 0x403504
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402c0a
mov esi, eax
test esi, esi
jl 0x403504
cmp byte [edi], 0x7d
jne 0x403076
jmp 0x403504
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 0
je 0x4031be
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x416450
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4031e4
mov ecx, dword [ebp - 0x14]
and dword [ebp - 0x18], eax
push edi
call fcn.00402c0a
mov esi, eax
test esi, esi
jl 0x403504
push 0x416438
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4032ca
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x228]
push eax
call fcn.00402c0a
mov esi, eax
test esi, esi
jl 0x403504
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402c0a
mov esi, eax
test esi, esi
jl 0x403504
cmp byte [edi], 0x3d
jne 0x403567
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x403267
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.00403704
mov esi, eax
cmp esi, ebx
mov dword [ebp + 8], ebx
jl 0x403576
mov byte [ebp - 4], bl
jmp 0x40315e
cmp dword [ebp + 0x14], ebx
jne 0x4032b8
cmp dword [ebp - 0x18], ebx
je 0x4032b8
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.004035bb
cmp eax, ebx
jne 0x40354e
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x4032aa
cmp eax, 2
jne 0x40354e
cmp dword [ebp + 8], ebx
je 0x4032b8
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00403625
mov esi, eax
cmp esi, ebx
jmp 0x403197
mov cl, byte [edi]
mov eax, edi
jmp 0x4032de
cmp cl, 0x5c
je 0x4032e4
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x4032d0
jmp 0x4032ec
test eax, eax
jne 0x403567
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40339e
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.004035bb
test eax, eax
je 0x403364
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.004035bb
test eax, eax
je 0x403364
lea eax, [ebp - 0x20]
push eax
xor ebx, ebx
lea eax, [ebp + 8]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40356d
xor eax, eax
cmp dword [ebp - 0x10], ebx
je 0x403356
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
jne 0x40356d
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402c0a
mov esi, eax
test esi, esi
jl 0x403504
cmp byte [edi], 0x3d
jne 0x40315e
mov ecx, dword [ebp - 0x14]
push edi
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.00403704
mov esi, eax
test esi, esi
jl 0x403504
jmp 0x40315e
cmp dword [ebp + 0x14], esi
jne 0x4033b9
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.004035bb
mov dword [ebp + 8], eax
jmp 0x4033c0
mov dword [ebp + 8], 2
cmp dword [ebp + 8], esi
je 0x4033cc
mov dword [ebp + 0x14], 1
push 0x104
push edi
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebx, dword [ebp - 0x14]
push edi
mov ecx, ebx
call fcn.00402c0a
mov esi, eax
test esi, esi
jl 0x403504
push edi
mov ecx, ebx
call fcn.00403625
mov esi, eax
test esi, esi
jl 0x403504
cmp byte [edi], 0x7b
jne 0x40343d
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x10]
push edi
call fcn.0040302f
mov esi, eax
test esi, esi
jge 0x40342b
cmp dword [ebp + 0x14], 0
je 0x403504
push edi
mov ecx, ebx
call fcn.00402c0a
mov esi, eax
test esi, esi
jl 0x403504
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x14], eax
je 0x40319d
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x403464
cmp eax, ebx
jne 0x40319d
push dword [ebp + 8]
jmp 0x4034fc
cmp dword [ebp - 0x1c], ebx
je 0x4034bd
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.004035f0
test eax, eax
je 0x4034bd
mov ebx, 0x4163c4
push dword [ebx]
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40319d
add ebx, 4
cmp ebx, 0x4163f4
jl 0x40347d
cmp dword [ebp - 0x18], 0
je 0x40319d
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040367a
jmp 0x40319d
cmp dword [ebp - 0x10], ebx
je 0x4034d9
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
and dword [ebp - 0x10], 0
test eax, eax
jne 0x40357b
cmp dword [ebp - 0x18], 0
je 0x40319d
lea eax, [ebp - 0x124]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x40319d
push eax
call fcn.00403591
pop ecx
mov esi, eax
cmp dword [ebp - 0x10], 0
je 0x403513
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x10
xor esi, esi
cmp dword [ebp + 8], esi
je 0x403539
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], esi
cmp dword [ebp - 0x10], esi
je 0x403547
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x403515
push eax
call fcn.00403591
pop ecx
mov esi, eax
cmp dword [ebp + 8], ebx
je 0x403504
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403504
cmp dword [ebp - 0x10], 0
jmp 0x40353c
push eax
call fcn.00403591
pop ecx
mov esi, eax
cmp dword [ebp - 0x10], ebx
jmp 0x403508
push eax
call fcn.00403591
cmp dword [ebp - 0x10], 0
pop ecx
mov esi, eax
je 0x403513
push dword [ebp - 0x10]
call ebx
jmp 0x403513