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

Disassembly:
mov eax, 0x415cfa
call fcn.004147c5
sub esp, 0x220
mov eax, dword [section..cdata]
and dword [ebp - 0x21c], 0
push esi
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x220], ecx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
push edi
mov dword [ebp - 0x228], eax
call fcn.00405328
mov esi, eax
test esi, esi
jge 0x4057b1
lea ecx, [ebp - 0x21c]
call fcn.00405d90
mov eax, esi
jmp 0x405cde
push ebx
jmp 0x4058f3
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x401678
push edi
mov dword [ebp - 0x224], 1
call esi
mov ebx, eax
neg ebx
push 0x40168c
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x4057ea
test ebx, ebx
je 0x405914
mov ecx, dword [ebp - 0x220]
push edi
call fcn.00405328
mov esi, eax
test esi, esi
jl 0x405cc6
cmp dword [ebp + 0x10], 0
je 0x405914
and dword [ebp + 8], 0
mov cl, byte [edi]
mov byte [ebp - 4], 1
mov eax, edi
jmp 0x405826
cmp cl, 0x5c
je 0x40582c
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x405818
jmp 0x405834
test eax, eax
jne 0x405cf6
mov esi, 0x401334
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x405864
add esi, 4
cmp esi, 0x401364
jl 0x405839
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.00405e71
and dword [ebp + 8], 0
test ebx, ebx
je 0x405901
mov ecx, dword [ebp - 0x220]
push edi
call fcn.00405328
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x405d2d
mov ecx, dword [ebp - 0x220]
push edi
call fcn.00405e11
mov esi, eax
cmp esi, ebx
jl 0x405d2d
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], bl
je 0x4058ab
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [edi], 0x7b
jne 0x4058f3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x4058f3
mov ecx, dword [ebp - 0x220]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x21c]
push edi
call fcn.0040575c
mov esi, eax
test esi, esi
jl 0x405cc6
mov ecx, dword [ebp - 0x220]
push edi
call fcn.00405328
mov esi, eax
test esi, esi
jl 0x405cc6
cmp byte [edi], 0x7d
jne 0x4057b7
jmp 0x405cc6
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 0
je 0x405914
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x401680
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405940
mov ecx, dword [ebp - 0x220]
and dword [ebp - 0x224], eax
push edi
call fcn.00405328
mov esi, eax
test esi, esi
jl 0x405cc6
push 0x401698
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405a35
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
call fcn.00405328
mov esi, eax
test esi, esi
jl 0x405cc6
mov ecx, dword [ebp - 0x220]
push edi
call fcn.00405328
mov esi, eax
test esi, esi
jl 0x405cc6
cmp byte [edi], 0x3d
jne 0x405d3d
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x4059cc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x220]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.00405f1c
mov esi, eax
cmp esi, ebx
mov dword [ebp + 8], ebx
jl 0x405d4f
mov byte [ebp - 4], bl
jmp 0x4058ab
cmp dword [ebp + 0x14], ebx
jne 0x405a20
cmp dword [ebp - 0x224], ebx
je 0x405a20
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.00405da7
cmp eax, ebx
jne 0x405d24
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x405a12
cmp eax, 2
jne 0x405d24
cmp dword [ebp + 8], ebx
je 0x405a20
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x220]
push edi
call fcn.00405e11
mov esi, eax
cmp esi, ebx
jmp 0x4058ed
mov cl, byte [edi]
mov eax, edi
jmp 0x405a49
cmp cl, 0x5c
je 0x405a4f
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x405a3b
jmp 0x405a57
test eax, eax
jne 0x405d3d
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x405b2d
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x21c]
call fcn.00405da7
test eax, eax
je 0x405aea
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x21c]
call fcn.00405da7
test eax, eax
je 0x405aea
lea eax, [ebp - 0x22c]
push eax
xor ebx, ebx
lea eax, [ebp - 0x224]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x224], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x405d46
xor eax, eax
cmp dword [ebp - 0x21c], ebx
je 0x405ad6
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x21c], ecx
jne 0x405d46
mov ecx, dword [ebp - 0x220]
push edi
call fcn.00405328
mov esi, eax
test esi, esi
jl 0x405cc6
cmp byte [edi], 0x3d
jne 0x4058ab
mov ecx, dword [ebp - 0x220]
push edi
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.00405f1c
mov esi, eax
test esi, esi
jl 0x405cc6
jmp 0x4058ab
cmp dword [ebp + 0x14], esi
jne 0x405b4b
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x21c]
call fcn.00405da7
mov dword [ebp + 8], eax
jmp 0x405b52
mov dword [ebp + 8], 2
cmp dword [ebp + 8], esi
je 0x405b5e
mov dword [ebp + 0x14], 1
push 0x104
push edi
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebx, dword [ebp - 0x220]
push edi
mov ecx, ebx
call fcn.00405328
mov esi, eax
test esi, esi
jl 0x405cc6
push edi
mov ecx, ebx
call fcn.00405e11
mov esi, eax
test esi, esi
jl 0x405cc6
cmp byte [edi], 0x7b
jne 0x405be1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x405be1
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x21c]
push edi
call fcn.0040575c
mov esi, eax
test esi, esi
jge 0x405bcf
cmp dword [ebp + 0x14], 0
je 0x405cc6
push edi
mov ecx, ebx
call fcn.00405328
mov esi, eax
test esi, esi
jl 0x405cc6
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x228]
mov dword [ebp + 0x14], eax
je 0x4058f3
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x405c0b
cmp eax, ebx
jne 0x4058f3
push dword [ebp + 8]
jmp 0x405cbe
cmp dword [ebp - 0x228], ebx
je 0x405c73
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
call fcn.00405ddc
test eax, eax
je 0x405c73
mov ebx, 0x401334
push dword [ebx]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4058f3
add ebx, 4
cmp ebx, 0x401364
jl 0x405c2d
cmp dword [ebp - 0x224], 0
je 0x4058f3
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00405e71
jmp 0x4058f3
cmp dword [ebp - 0x21c], ebx
je 0x405c98
push dword [ebp - 0x21c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
and dword [ebp - 0x21c], 0
test eax, eax
jne 0x405d5a
cmp dword [ebp - 0x224], 0
je 0x4058f3
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4058f3
push eax
call fcn.00405d7d
pop ecx
mov esi, eax
cmp dword [ebp - 0x21c], 0
je 0x405cdb
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.0041476c
leave
ret 0x10
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405d09
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], esi
cmp dword [ebp - 0x21c], esi
je 0x405d1d
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x405cdd
push eax
call fcn.00405d7d
pop ecx
mov esi, eax
cmp dword [ebp + 8], ebx
je 0x405cc6
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405cc6
cmp dword [ebp - 0x21c], 0
jmp 0x405d0f
push eax
call fcn.00405d7d
pop ecx
mov esi, eax
cmp dword [ebp - 0x21c], ebx
jmp 0x405ccd
push eax
call fcn.00405d7d
cmp dword [ebp - 0x21c], 0
pop ecx
mov esi, eax
je 0x405cdb
push dword [ebp - 0x21c]
call ebx
jmp 0x405cdb