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

Disassembly:
push 0xffffffffffffffff
push 0x483f16
mov eax, dword fs:[0]
push eax
mov eax, 0x1154
call fcn.0043c8a0
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x1150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a55d0]
xor eax, esp
push eax
lea eax, [esp + 0x1168]
mov dword fs:[0], eax
mov eax, dword [esp + 0x117c]
mov edi, dword [esp + 0x1178]
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x1184]
mov eax, edi
mov dword [esp + 0x1170], ebx
mov dword [esp + 0x38], edx
call fcn.0040f010
mov esi, eax
cmp esi, ebx
jl 0x40f319
cmp byte [edi], 0x7d
je 0x40f317
jmp 0x40f1c0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push edi
mov dword [esp + 0x3c], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
xor ebp, ebp
test eax, eax
je 0x40f1f3
cmp ebx, ebp
je 0x40f347
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040f010
mov esi, eax
cmp esi, ebp
jl 0x40f308
cmp dword [esp + 0x1180], ebp
je 0x40f347
mov cl, byte [edi]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov eax, edi
test cl, cl
je 0x40f248
mov esi, dword [sym.imp.USER32.dll_CharNextA]
jmp 0x40f230
cmp cl, 0x5c
je 0x40f240
push eax
call esi
mov cl, byte [eax]
test cl, cl
jne 0x40f230
jmp 0x40f248
cmp eax, ebp
jne 0x40f7c8
mov esi, 0x495394
lea ecx, [ecx]
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40f287
add esi, 4
cmp esi, str.SOFTWAREMicrosoftInternet_Explorer
jl 0x40f250
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], ebp
call fcn.0040ee20
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
cmp ebx, ebp
je 0x40f343
mov ebx, dword [esp + 0x1c]
mov eax, edi
mov ecx, ebx
call fcn.0040f010
mov esi, eax
cmp esi, ebp
jl 0x40f7e4
mov ecx, ebx
call fcn.0040ed20
mov esi, eax
cmp esi, ebp
jl 0x40f7e4
mov dword [esp + 0x30], ebp
cmp byte [edi], 0x7b
jne 0x40f2fd
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40f2fd
mov eax, dword [esp + 0x1180]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
push ebp
push eax
push ecx
push edi
mov ecx, ebx
call fcn.0040f130
mov esi, eax
cmp esi, ebp
jl 0x40f308
mov eax, edi
mov ecx, ebx
call fcn.0040f010
mov esi, eax
cmp esi, ebp
jl 0x40f306
cmp byte [edi], 0x7d
jne 0x40f1c0
xor ebp, ebp
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x40f317
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x1168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1150]
xor ecx, esp
call fcn.0043675a
add esp, 0x1160
ret 0x10
mov dword [esp + 0x30], ebp
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40f36c
mov ecx, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x34], ebp
call fcn.0040f010
mov esi, eax
cmp esi, ebp
jl 0x40f308
push 0x495370
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40f49d
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x164]
call fcn.0040f010
mov esi, eax
cmp esi, ebp
jl 0x40f308
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040f010
mov esi, eax
cmp esi, ebp
jl 0x40f308
cmp byte [edi], 0x3d
jne 0x40f7d1
cmp dword [esp + 0x1180], ebp
je 0x40f410
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x164]
mov byte [esp + 0x1170], 1
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, edi
mov dword [esp + 0x50], ebp
call fcn.0040e840
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
jl 0x40f7f2
mov byte [esp + 0x1170], 0
mov dword [esp + 0x48], ebp
jmp 0x40f2bb
cmp dword [esp + 0x1184], ebp
jne 0x40f485
cmp dword [esp + 0x34], ebp
je 0x40f485
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x18]
push edx
push 0x20006
push ebp
push ebp
push eax
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x40f809
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x164]
push ecx
push esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebp
je 0x40f472
cmp eax, 2
jne 0x40f809
cmp esi, ebp
je 0x40f481
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov ecx, dword [esp + 0x1c]
call fcn.0040ed20
mov esi, eax
cmp esi, ebp
jl 0x40f308
jmp 0x40f2fd
mov cl, byte [edi]
mov eax, edi
test cl, cl
je 0x40f4c8
mov esi, dword [sym.imp.USER32.dll_CharNextA]
jmp 0x40f4b0
cmp cl, 0x5c
je 0x40f4c0
push eax
call esi
mov cl, byte [eax]
test cl, cl
jne 0x40f4b0
jmp 0x40f4c8
cmp eax, ebp
jne 0x40f7d1
cmp dword [esp + 0x1180], ebp
je 0x40f5e1
mov esi, dword [esp + 0x28]
lea edx, [esp + 0x18]
push edx
push 0x2001f
push ebp
push edi
push esi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x40f51b
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, ebp
je 0x40f505
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebx
cmp eax, ebp
je 0x40f5a3
jmp 0x40f51f
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebp
push edi
push esi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x40f557
xor eax, eax
cmp ebx, ebp
je 0x40f547
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebx
cmp eax, ebp
je 0x40f5a3
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push edi
push esi
mov dword [esp + 0x3c], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
cmp esi, ebp
jne 0x40f81e
xor eax, eax
cmp ebx, ebp
je 0x40f58d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov esi, eax
mov dword [esp + 0x20], ecx
cmp eax, ebp
jne 0x40f81e
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040f010
mov esi, eax
cmp esi, ebp
jl 0x40f308
cmp byte [edi], 0x3d
jne 0x40f2bb
push ebp
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
mov ecx, edi
call fcn.0040e840
mov esi, eax
cmp esi, ebp
jl 0x40f308
jmp 0x40f2bb
cmp dword [esp + 0x1184], ebp
jne 0x40f702
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebp
push edi
push ecx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x40f62a
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, ebp
je 0x40f61e
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], edx
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x40f63f
mov dword [esp + 0x1184], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x64]
push 0x104
push eax
call fcn.00438b14
push eax
call fcn.00401cb0
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov eax, edi
call fcn.0040f010
mov esi, eax
cmp esi, ebp
jl 0x40f308
mov ecx, dword [esp + 0x1c]
call fcn.0040ed20
mov esi, eax
cmp esi, ebp
jl 0x40f308
cmp byte [edi], 0x7b
jne 0x40f6d2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40f6d2
mov ebx, dword [esp + 0x1184]
mov ecx, dword [esp + 0x20]
push ebx
push ebp
push ecx
mov ecx, dword [esp + 0x28]
push edi
call fcn.0040f130
mov esi, eax
cmp esi, ebp
jge 0x40f6b9
cmp ebx, ebp
je 0x40f308
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040f010
mov esi, eax
cmp esi, ebp
jl 0x40f308
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1184], edx
cmp ebx, 2
je 0x40f2fd
xor ebp, ebp
cmp ebx, ebp
je 0x40f713
cmp edx, ebp
jne 0x40f2fd
mov eax, ebx
call fcn.0040f000
mov esi, eax
jmp 0x40f308
mov dword [esp + 0x18], 2
mov ebx, dword [esp + 0x18]
jmp 0x40f634
mov ebx, dword [esp + 0x20]
cmp edx, ebp
je 0x40f753
mov ecx, ebx
call fcn.0040ef70
test eax, eax
je 0x40f753
lea ebx, [esp + 0x5c]
call fcn.0040ed90
test eax, eax
je 0x40f2fd
cmp dword [esp + 0x34], 0
je 0x40f2fd
mov eax, ebx
push eax
lea ecx, [esp + 0x24]
call fcn.0040ee20
jmp 0x40f2fd
mov ecx, ebx
call fcn.0040ef70
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], ebp
cmp ebx, ebp
je 0x40f775
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
cmp dword [esp + 0x18], ebp
jne 0x40f833
cmp dword [esp + 0x34], ebp
je 0x40f2fd
cmp dword [esp + 0x4c], 0
jne 0x40f2fd
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x5c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor ebp, ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
cmp eax, ebp
jne 0x40f84a
lea ecx, [esp + 0x50]
call fcn.0040efe0
jmp 0x40f2fd
lea ecx, [esp + 0x2c]
call fcn.0040efe0
lea ecx, [esp + 0x20]
call fcn.0040efe0
mov eax, 0x80020009
jmp 0x40f319
lea ecx, [esp + 0x2c]
call fcn.0040efe0
jmp 0x40f308
lea ecx, [esp + 0x44]
call fcn.0040efe0
lea ecx, [esp + 0x20]
call fcn.0040efe0
jmp 0x40f317
call fcn.0040f000
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.0040efe0
jmp 0x40f308
lea ecx, [esp + 0x20]
call fcn.0040efe0
mov eax, esi
call fcn.0040f000
jmp 0x40f319
lea ecx, [esp + 0x20]
call fcn.0040efe0
mov eax, dword [esp + 0x18]
call fcn.0040f000
jmp 0x40f319
call fcn.0040f000
lea ecx, [esp + 0x50]
mov esi, eax
call fcn.0040efe0
jmp 0x40f308