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

Disassembly:
push 0xffffffffffffffff
push 0x447356
mov eax, dword fs:[0]
push eax
mov eax, 0x1154
call fcn.004371b0
mov eax, dword [0x45c5d0]
xor eax, esp
mov dword [esp + 0x1150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45c5d0]
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.0040d120
mov esi, eax
cmp esi, ebx
jl 0x40d429
cmp byte [edi], 0x7d
je 0x40d427
jmp 0x40d2d0
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 0x40d303
cmp ebx, ebp
je 0x40d457
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040d120
mov esi, eax
cmp esi, ebp
jl 0x40d418
cmp dword [esp + 0x1180], ebp
je 0x40d457
mov cl, byte [edi]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov eax, edi
test cl, cl
je 0x40d358
mov esi, dword [sym.imp.USER32.dll_CharNextA]
jmp 0x40d340
cmp cl, 0x5c
je 0x40d350
push eax
call esi
mov cl, byte [eax]
test cl, cl
jne 0x40d340
jmp 0x40d358
cmp eax, ebp
jne 0x40d8d8
mov esi, 0x44ef9c
lea ecx, [ecx]
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40d397
add esi, 4
cmp esi, str.SOFTWAREMicrosoftInternet_Explorer
jl 0x40d360
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], ebp
call fcn.0040cf30
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
cmp ebx, ebp
je 0x40d453
mov ebx, dword [esp + 0x1c]
mov eax, edi
mov ecx, ebx
call fcn.0040d120
mov esi, eax
cmp esi, ebp
jl 0x40d8f4
mov ecx, ebx
call fcn.0040ce30
mov esi, eax
cmp esi, ebp
jl 0x40d8f4
mov dword [esp + 0x30], ebp
cmp byte [edi], 0x7b
jne 0x40d40d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40d40d
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.0040d240
mov esi, eax
cmp esi, ebp
jl 0x40d418
mov eax, edi
mov ecx, ebx
call fcn.0040d120
mov esi, eax
cmp esi, ebp
jl 0x40d416
cmp byte [edi], 0x7d
jne 0x40d2d0
xor ebp, ebp
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x40d427
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.0043164a
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 0x40d47c
mov ecx, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x34], ebp
call fcn.0040d120
mov esi, eax
cmp esi, ebp
jl 0x40d418
push 0x44ef78
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40d5ad
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x164]
call fcn.0040d120
mov esi, eax
cmp esi, ebp
jl 0x40d418
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040d120
mov esi, eax
cmp esi, ebp
jl 0x40d418
cmp byte [edi], 0x3d
jne 0x40d8e1
cmp dword [esp + 0x1180], ebp
je 0x40d520
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.0040c950
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
jl 0x40d902
mov byte [esp + 0x1170], 0
mov dword [esp + 0x48], ebp
jmp 0x40d3cb
cmp dword [esp + 0x1184], ebp
jne 0x40d595
cmp dword [esp + 0x34], ebp
je 0x40d595
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 0x40d919
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 0x40d582
cmp eax, 2
jne 0x40d919
cmp esi, ebp
je 0x40d591
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.0040ce30
mov esi, eax
cmp esi, ebp
jl 0x40d418
jmp 0x40d40d
mov cl, byte [edi]
mov eax, edi
test cl, cl
je 0x40d5d8
mov esi, dword [sym.imp.USER32.dll_CharNextA]
jmp 0x40d5c0
cmp cl, 0x5c
je 0x40d5d0
push eax
call esi
mov cl, byte [eax]
test cl, cl
jne 0x40d5c0
jmp 0x40d5d8
cmp eax, ebp
jne 0x40d8e1
cmp dword [esp + 0x1180], ebp
je 0x40d6f1
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 0x40d62b
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, ebp
je 0x40d615
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 0x40d6b3
jmp 0x40d62f
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 0x40d667
xor eax, eax
cmp ebx, ebp
je 0x40d657
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 0x40d6b3
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 0x40d92e
xor eax, eax
cmp ebx, ebp
je 0x40d69d
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 0x40d92e
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040d120
mov esi, eax
cmp esi, ebp
jl 0x40d418
cmp byte [edi], 0x3d
jne 0x40d3cb
push ebp
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
mov ecx, edi
call fcn.0040c950
mov esi, eax
cmp esi, ebp
jl 0x40d418
jmp 0x40d3cb
cmp dword [esp + 0x1184], ebp
jne 0x40d812
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 0x40d73a
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, ebp
je 0x40d72e
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 0x40d74f
mov dword [esp + 0x1184], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x64]
push 0x104
push eax
call fcn.00432ecd
push eax
call fcn.00401ce0
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov eax, edi
call fcn.0040d120
mov esi, eax
cmp esi, ebp
jl 0x40d418
mov ecx, dword [esp + 0x1c]
call fcn.0040ce30
mov esi, eax
cmp esi, ebp
jl 0x40d418
cmp byte [edi], 0x7b
jne 0x40d7e2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40d7e2
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.0040d240
mov esi, eax
cmp esi, ebp
jge 0x40d7c9
cmp ebx, ebp
je 0x40d418
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040d120
mov esi, eax
cmp esi, ebp
jl 0x40d418
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1184], edx
cmp ebx, 2
je 0x40d40d
xor ebp, ebp
cmp ebx, ebp
je 0x40d823
cmp edx, ebp
jne 0x40d40d
mov eax, ebx
call fcn.0040d110
mov esi, eax
jmp 0x40d418
mov dword [esp + 0x18], 2
mov ebx, dword [esp + 0x18]
jmp 0x40d744
mov ebx, dword [esp + 0x20]
cmp edx, ebp
je 0x40d863
mov ecx, ebx
call fcn.0040d080
test eax, eax
je 0x40d863
lea ebx, [esp + 0x5c]
call fcn.0040cea0
test eax, eax
je 0x40d40d
cmp dword [esp + 0x34], 0
je 0x40d40d
mov eax, ebx
push eax
lea ecx, [esp + 0x24]
call fcn.0040cf30
jmp 0x40d40d
mov ecx, ebx
call fcn.0040d080
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], ebp
cmp ebx, ebp
je 0x40d885
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 0x40d943
cmp dword [esp + 0x34], ebp
je 0x40d40d
cmp dword [esp + 0x4c], 0
jne 0x40d40d
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 0x40d95a
lea ecx, [esp + 0x50]
call fcn.0040d0f0
jmp 0x40d40d
lea ecx, [esp + 0x2c]
call fcn.0040d0f0
lea ecx, [esp + 0x20]
call fcn.0040d0f0
mov eax, 0x80020009
jmp 0x40d429
lea ecx, [esp + 0x2c]
call fcn.0040d0f0
jmp 0x40d418
lea ecx, [esp + 0x44]
call fcn.0040d0f0
lea ecx, [esp + 0x20]
call fcn.0040d0f0
jmp 0x40d427
call fcn.0040d110
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.0040d0f0
jmp 0x40d418
lea ecx, [esp + 0x20]
call fcn.0040d0f0
mov eax, esi
call fcn.0040d110
jmp 0x40d429
lea ecx, [esp + 0x20]
call fcn.0040d0f0
mov eax, dword [esp + 0x18]
call fcn.0040d110
jmp 0x40d429
call fcn.0040d110
lea ecx, [esp + 0x50]
mov esi, eax
call fcn.0040d0f0
jmp 0x40d418