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

Disassembly:
mov eax, 0x407884
call sub.MSVCRT.dll__EH_prolog
mov eax, 0x211c
call fcn.00407550
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x1128]
mov dword [ebp - 0x20], 1
push eax
call fcn.00405c44
mov esi, eax
cmp esi, ebx
jl 0x4064b9
cmp byte [ebp - 0x1128], 0x7d
je 0x4064b9
push dword [0x4013a4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x1128]
push eax
call esi
push dword [0x40139c]
mov edi, eax
neg edi
lea eax, [ebp - 0x1128]
sbb edi, edi
push eax
inc edi
call esi
test eax, eax
je 0x406045
cmp edi, ebx
je 0x4060f7
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1128]
push eax
call fcn.00405c44
mov esi, eax
cmp esi, ebx
jl 0x4064b9
cmp dword [ebp + 0xc], ebx
je 0x4060f7
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x1128]
push 0x5c
push eax
mov byte [ebp - 4], 1
call fcn.004064d8
pop ecx
test eax, eax
pop ecx
jne 0x406477
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1128]
push eax
call fcn.00405ea6
test eax, eax
je 0x4060b1
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1128]
push eax
call fcn.00406f90
mov dword [ebp - 0x18], ebx
cmp edi, ebx
je 0x4060ec
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1128]
push eax
call fcn.00405c44
mov esi, eax
cmp esi, ebx
jl 0x406486
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1128]
push eax
call fcn.00405f6c
mov esi, eax
mov byte [ebp - 4], bl
cmp esi, ebx
lea ecx, [ebp - 0x18]
jmp 0x4061bb
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00406eb5
push dword [0x4013a0]
lea eax, [ebp - 0x1128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40612a
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1128]
push eax
mov dword [ebp - 0x20], ebx
call fcn.00405c44
mov esi, eax
cmp esi, ebx
jl 0x4064b9
push dword [0x401398]
lea eax, [ebp - 0x1128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4061e9
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x128]
push eax
call fcn.00405c44
mov esi, eax
cmp esi, ebx
jl 0x4064b9
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x1128]
push eax
mov ecx, edi
call fcn.00405c44
mov esi, eax
cmp esi, ebx
jl 0x4064b9
cmp byte [ebp - 0x1128], 0x3d
jne 0x406493
cmp dword [ebp + 0xc], ebx
je 0x4061cb
mov eax, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1128]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.00405d37
mov esi, eax
mov dword [ebp - 0x1c], ebx
cmp esi, ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
jl 0x40648c
call fcn.00406eb5
jmp 0x40643d
cmp dword [ebp + 0x10], ebx
jne 0x40637e
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40637e
lea eax, [ebp - 0x1128]
push 0x5c
push eax
call fcn.004064d8
pop ecx
test eax, eax
pop ecx
jne 0x40649c
cmp dword [ebp + 0xc], ebx
je 0x40629f
mov esi, 0xf003f
lea eax, [ebp - 0x1128]
push esi
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.00406f1a
cmp eax, ebx
je 0x406260
lea eax, [ebp - 0x1128]
push 0x20019
push eax
lea ecx, [ebp - 0x14]
push dword [ebp + 8]
call fcn.00406f1a
cmp eax, ebx
je 0x406260
push ebx
push ebx
push esi
push ebx
lea eax, [ebp - 0x1128]
push ebx
push eax
lea ecx, [ebp - 0x14]
push dword [ebp + 8]
call fcn.00406ecc
cmp eax, ebx
jne 0x4064a3
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1128]
push eax
call fcn.00405c44
mov esi, eax
cmp esi, ebx
jl 0x4064b9
cmp byte [ebp - 0x1128], 0x3d
jne 0x40643d
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1128]
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00405d37
jmp 0x406437
cmp dword [ebp + 0x10], ebx
jne 0x4062c6
lea eax, [ebp - 0x1128]
push 0xf003f
push eax
lea ecx, [ebp - 0x14]
push dword [ebp + 8]
call fcn.00406f1a
test eax, eax
je 0x4062c6
mov dword [ebp + 0x10], 1
lea eax, [ebp - 0x1128]
push 0x104
push eax
lea eax, [ebp - 0x2128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x10], ebx
jne 0x406306
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.00405ed2
test eax, eax
jne 0x406306
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.00405f07
test eax, eax
je 0x4063e0
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1128]
push eax
call fcn.00405c44
mov esi, eax
cmp esi, ebx
jl 0x4064b9
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x1128]
push eax
mov ecx, edi
call fcn.00405f6c
mov esi, eax
cmp esi, ebx
jl 0x4064b9
cmp byte [ebp - 0x1128], 0x7b
jne 0x406391
push dword [ebp + 0x10]
mov ecx, edi
push ebx
push dword [ebp - 0x14]
call fcn.00405fbc
mov esi, eax
cmp esi, ebx
jl 0x4064b9
cmp dword [ebp + 0x10], ebx
je 0x40639a
mov eax, dword [ebp - 0x24]
mov ecx, edi
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x1128]
push eax
call fcn.00405c44
mov esi, eax
cmp esi, ebx
jl 0x4064b9
lea eax, [ebp - 0x1128]
mov ecx, edi
push eax
call fcn.00405f6c
jmp 0x405ff7
cmp dword [ebp + 0x10], ebx
jne 0x406001
push dword [ebp - 0x14]
mov ecx, edi
call fcn.00405ed2
test eax, eax
je 0x4063d7
lea eax, [ebp - 0x2128]
mov ecx, edi
push eax
call fcn.00405ea6
test eax, eax
je 0x4063c9
lea eax, [ebp - 0x2128]
lea ecx, [ebp - 0x14]
push eax
call fcn.00406f90
lea eax, [ebp - 0x1128]
mov ecx, edi
push eax
jmp 0x405ff2
cmp dword [ebp + 0x10], ebx
jne 0x406001
cmp dword [ebp + 0x10], ebx
jne 0x40640f
lea ecx, [ebp - 0x14]
call fcn.00406eb5
test eax, eax
jne 0x4064aa
cmp dword [ebp + 0x10], ebx
jne 0x40640f
cmp dword [ebp - 0x20], ebx
je 0x40640f
lea eax, [ebp - 0x2128]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1128]
push eax
call fcn.00405c44
mov esi, eax
cmp esi, ebx
jl 0x4064b9
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1128]
push eax
call fcn.00405f6c
mov esi, eax
cmp esi, ebx
jl 0x4064b9
cmp dword [ebp + 0xc], ebx
je 0x406001
cmp byte [ebp - 0x1128], 0x7b
jne 0x406001
mov ecx, dword [ebp - 0x10]
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.00405fbc
mov esi, eax
cmp esi, ebx
jl 0x4064b9
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1128]
push eax
jmp 0x405ff2
mov ecx, dword [ebp - 0x10]
push 0x211
call fcn.00405bd3
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00406eb5
jmp 0x4064b9
push 0x206
mov ecx, edi
jmp 0x4064b2
push 0x211
jmp 0x4064af
push 0x207
jmp 0x4064af
push 0x20a
mov ecx, dword [ebp - 0x10]
call fcn.00405bd3
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406eb5
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc