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

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x410040]
and dword [ebp - 0x74], 0
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1b0]
push ebx
mov ebx, dword [ebp + 0x1a4]
mov dword [ebp - 0x80], eax
push esi
mov eax, ebx
mov dword [ebp - 0x78], ecx
call fcn.00404c89
mov esi, eax
test esi, esi
jge 0x404ddf
jmp 0x405181
cmp byte [ebx], 0x7d
push edi
je 0x40517e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x40e8c4
push ebx
mov dword [ebp - 0x7c], 1
call esi
mov edi, eax
neg edi
push 0x40e8a4
sbb edi, edi
push ebx
inc edi
call esi
test eax, eax
je 0x404e15
test edi, edi
je 0x404e8d
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.00404c89
mov esi, eax
test esi, esi
jl 0x40516f
cmp dword [ebp + 0x1ac], 0
je 0x404e8d
push 0x5c
mov eax, ebx
call fcn.00404a8a
test eax, eax
pop ecx
jne 0x405260
push ebx
call fcn.00405866
test eax, eax
je 0x404e66
mov eax, dword [ebp + 0x1a8]
push ebx
lea ecx, [ebp + 0x1a4]
mov dword [ebp + 0x1a4], eax
call fcn.00405892
test edi, edi
je 0x404e8d
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.00404c89
mov esi, eax
test esi, esi
jl 0x40516f
mov ecx, dword [ebp - 0x78]
mov edi, ebx
call fcn.004057d1
jmp 0x405083
push 0x40e8b4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404eb4
and dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.00404c89
mov esi, eax
test esi, esi
jl 0x40516f
push 0x40e89c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404fe6
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x70]
call fcn.00404c89
mov esi, eax
xor edi, edi
cmp esi, edi
jl 0x40516f
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.00404c89
mov esi, eax
cmp esi, edi
jl 0x40516f
cmp byte [ebx], 0x3d
jne 0x40521d
cmp dword [ebp + 0x1ac], edi
je 0x404f7f
mov eax, dword [ebp + 0x1a8]
mov dword [ebp + 0x1a4], eax
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x1a4]
push eax
push dword [ebp - 0x78]
call fcn.004052cc
mov esi, eax
cmp esi, edi
jl 0x405222
cmp byte [ebx], 0x7b
jne 0x404f71
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x404f71
mov ecx, dword [ebp - 0x78]
push 0
push dword [ebp + 0x1ac]
push dword [ebp - 0x74]
push ebx
call fcn.00404d9c
mov esi, eax
test esi, esi
jl 0x40516f
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.00404c89
mov esi, eax
test esi, esi
jl 0x40516f
cmp byte [ebx], 0x7d
jne 0x404de9
jmp 0x40516f
cmp dword [ebp + 0x1b0], edi
jne 0x404fda
cmp dword [ebp - 0x7c], edi
je 0x404fda
push 0x20006
push edi
push dword [ebp + 0x1a8]
lea eax, [ebp + 0x1a4]
mov dword [ebp + 0x1a4], edi
call fcn.0040579e
cmp eax, edi
jne 0x40523c
mov edi, dword [ebp + 0x1a4]
lea eax, [ebp - 0x70]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x404fcf
cmp eax, 2
jne 0x40522a
test edi, edi
je 0x404fda
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x78]
mov edi, ebx
call fcn.004057d1
jmp 0x404f67
push 0x5c
mov eax, ebx
call fcn.00404a8a
test eax, eax
pop ecx
jne 0x405260
xor esi, esi
cmp dword [ebp + 0x1ac], esi
je 0x405092
push 0x2001f
push ebx
push dword [ebp + 0x1a8]
lea eax, [ebp - 0x74]
call fcn.0040579e
test eax, eax
je 0x405057
push 0x20019
push ebx
push dword [ebp + 0x1a8]
lea eax, [ebp - 0x74]
call fcn.0040579e
test eax, eax
je 0x405057
push esi
push 0x2001f
push esi
push esi
push ebx
push dword [ebp + 0x1a8]
xor edi, edi
lea eax, [ebp - 0x74]
call fcn.00405283
cmp eax, esi
jne 0x405168
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.00404c89
mov esi, eax
test esi, esi
jl 0x40516f
cmp byte [ebx], 0x3d
jne 0x404f2e
push ebx
push 0
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call fcn.004052cc
mov esi, eax
test esi, esi
jl 0x40516f
jmp 0x404f2e
cmp dword [ebp + 0x1b0], esi
jne 0x4050b6
push 0x20019
push ebx
push dword [ebp + 0x1a8]
lea eax, [ebp - 0x74]
call fcn.0040579e
mov dword [ebp + 0x1a4], eax
jmp 0x4050c0
mov dword [ebp + 0x1a4], 2
cmp dword [ebp + 0x1a4], esi
je 0x4050d2
mov dword [ebp + 0x1b0], 1
push 0x104
push ebx
lea eax, [ebp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.00404c89
mov esi, eax
test esi, esi
jl 0x40516f
mov ecx, dword [ebp - 0x78]
mov edi, ebx
call fcn.004057d1
mov esi, eax
test esi, esi
jl 0x40516f
cmp byte [ebx], 0x7b
jne 0x40513d
push dword [ebp + 0x1b0]
mov ecx, dword [ebp - 0x78]
push 0
push dword [ebp - 0x74]
push ebx
call fcn.00404d9c
mov esi, eax
test esi, esi
jge 0x40512d
cmp dword [ebp + 0x1b0], 0
je 0x40516f
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.00404c89
mov esi, eax
test esi, esi
jl 0x40516f
cmp dword [ebp + 0x1a4], 2
mov eax, dword [ebp - 0x80]
mov dword [ebp + 0x1b0], eax
je 0x404f71
mov eax, dword [ebp + 0x1a4]
xor edi, edi
cmp eax, edi
je 0x405198
cmp dword [ebp - 0x80], edi
jne 0x404f71
call fcn.0040598a
mov esi, eax
cmp dword [ebp - 0x74], 0
je 0x40517e
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
mov ecx, dword [ebp + 0x198]
pop esi
pop ebx
call fcn.00406b52
add ebp, 0x19c
leave
ret 0x10
cmp dword [ebp - 0x80], edi
je 0x4051db
push dword [ebp - 0x74]
call fcn.00405831
test eax, eax
je 0x4051db
lea eax, [ebp + 0x94]
push eax
call fcn.00405866
test eax, eax
je 0x404f71
cmp dword [ebp - 0x7c], 0
je 0x404f71
lea eax, [ebp + 0x94]
push eax
lea ecx, [ebp - 0x74]
call fcn.00405892
jmp 0x404f71
cmp dword [ebp - 0x74], edi
je 0x4051f4
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov dword [ebp - 0x74], edi
jne 0x405279
cmp dword [ebp - 0x7c], edi
je 0x404f71
lea eax, [ebp + 0x94]
push eax
push dword [ebp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x405168
jmp 0x404f71
cmp dword [ebp - 0x74], edi
jmp 0x405264
cmp dword [ebp - 0x74], edi
jmp 0x405173
call fcn.0040598a
test edi, edi
mov esi, eax
je 0x40516f
push edi
jmp 0x405255
call fcn.0040598a
cmp dword [ebp + 0x1a4], edi
mov esi, eax
je 0x40516f
push dword [ebp + 0x1a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40516f
cmp dword [ebp - 0x74], 0
je 0x40526f
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x405180
call fcn.0040598a
jmp 0x405180