Function at 0x40d6b0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55d526
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1164
call fcn.00534ce0
mov eax, dword [0x5b7f60]
xor eax, esp
mov dword [esp + 0x1160], eax
push ebx
push esi
push edi
mov eax, dword [0x5b7f60]
xor eax, esp
push eax
lea eax, [esp + 0x1178]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov edx, dword [ebp + 0x14]
mov eax, esi
mov edi, ecx
mov dword [esp + 0x1180], ebx
mov dword [esp + 0x38], edx
call fcn.0040d530
mov edi, eax
cmp edi, ebx
jl 0x40dcff
cmp byte [esi], 0x7d
je 0x40dcfd
jmp 0x40d740
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push esi
mov dword [esp + 0x3c], 1
call edi
neg eax
push str.ForceRemove
sbb ebx, ebx
push esi
inc ebx
call edi
test eax, eax
je 0x40d76f
test ebx, ebx
je 0x40d89c
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.0040d530
mov edi, eax
test edi, edi
js 0x40dcee
xor eax, eax
cmp dword [ebp + 0x10], eax
je 0x40d89c
mov cl, byte [esi]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, esi
test cl, cl
je 0x40d7c1
mov edi, dword [sym.imp.USER32.dll_CharNextA]
cmp cl, 0x5c
je 0x40d7b9
push eax
call edi
mov cl, byte [eax]
test cl, cl
jne 0x40d7a9
jmp 0x40d7c1
test eax, eax
jne 0x40dc72
mov edi, 0x58e90c
mov eax, dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40d807
add edi, 4
cmp edi, 0x58e93c
jl 0x40d7c6
mov ecx, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x28], ecx
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.0040d250
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
test ebx, ebx
je 0x40d894
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.0040d530
mov edi, eax
test edi, edi
js 0x40dc8b
mov ecx, dword [esp + 0x10]
mov ebx, esi
call fcn.0040d1b0
mov edi, eax
test edi, edi
js 0x40dc8b
mov dword [esp + 0x2c], 0
cmp byte [esi], 0x7b
jne 0x40d886
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40d886
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push edx
push eax
push esi
call fcn.0040d6b0
mov edi, eax
test edi, edi
js 0x40dcee
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.0040d530
mov edi, eax
test edi, edi
js 0x40dcee
cmp byte [esi], 0x7d
jne 0x40d740
jmp 0x40dcee
mov dword [esp + 0x2c], 0
push str.NoRemove
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40d8c5
mov edi, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov eax, esi
call fcn.0040d530
mov edi, eax
test edi, edi
js 0x40dcee
push 0x58de38
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40d9e4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x16c]
call fcn.0040d530
mov edi, eax
test edi, edi
js 0x40dcee
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.0040d530
mov edi, eax
test edi, edi
js 0x40dcee
cmp byte [esi], 0x3d
jne 0x40dc7b
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x40d96e
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
mov byte [esp + 0x1180], 1
push eax
mov dword [esp + 0x40], edx
push ecx
mov edx, esi
lea ecx, [esp + 0x174]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.0040ccc0
mov edi, eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
cmp edi, ebx
jl 0x40dc91
mov byte [esp + 0x1180], bl
mov dword [esp + 0x40], ebx
jmp 0x40d841
cmp dword [ebp + 0x14], ebx
jne 0x40d9d4
cmp dword [esp + 0x34], ebx
je 0x40d9d4
mov edx, dword [esp + 0x20]
push 0x20006
push ebx
push edx
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.004019f0
cmp eax, ebx
jne 0x40dca5
mov edi, dword [esp + 0x54]
lea eax, [esp + 0x16c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x40d9c1
cmp eax, 2
jne 0x40dca5
cmp edi, ebx
je 0x40d9d0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov ecx, dword [esp + 0x10]
mov ebx, esi
call fcn.0040d1b0
jmp 0x40d87c
mov cl, byte [esi]
mov eax, esi
test cl, cl
je 0x40da0c
lea esp, [esp]
cmp cl, 0x5c
je 0x40da04
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x40d9f0
jmp 0x40da0c
test eax, eax
jne 0x40dc7b
cmp dword [ebp + 0x10], 0
je 0x40daa2
mov edi, dword [esp + 0x20]
push 0x2001f
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.004019f0
test eax, eax
je 0x40da64
push 0x20019
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.004019f0
test eax, eax
je 0x40da64
push 0
push 0
push 0x2001f
push 0
push 0
push esi
push edi
lea ecx, [esp + 0x30]
call fcn.0040c850
mov edi, eax
test edi, edi
jne 0x40dcb0
mov ebx, dword [esp + 0x10]
mov eax, esi
mov edi, ebx
call fcn.0040d530
mov edi, eax
test edi, edi
js 0x40dcee
cmp byte [esi], 0x3d
jne 0x40d841
lea ecx, [esp + 0x14]
push ecx
push ebx
mov edx, esi
xor ecx, ecx
call fcn.0040ccc0
mov edi, eax
test edi, edi
js 0x40dcee
jmp 0x40d841
cmp dword [ebp + 0x14], 0
jne 0x40daf7
mov edx, dword [esp + 0x20]
push 0x20019
push esi
push edx
lea ecx, [esp + 0x20]
call fcn.004019f0
mov dword [esp + 0x24], eax
test eax, eax
je 0x40dacb
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x6c]
push 0x104
push eax
call fcn.00533117
add esp, 0x10
cmp eax, 0x50
ja case.0x40daf0.107
movzx ecx, byte [eax + 0x40dd38]
jmp dword [ecx*4 + 0x40dd28]
mov dword [esp + 0x24], 2
jmp 0x40dac4
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.0040d530
mov edi, eax
test edi, edi
js 0x40dcee
mov ecx, dword [esp + 0x10]
mov ebx, esi
call fcn.0040d1b0
mov edi, eax
test edi, edi
js 0x40dcee
cmp byte [esi], 0x7b
jne 0x40db76
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40db76
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push edx
push 0
push eax
push esi
mov ecx, ebx
call fcn.0040d6b0
mov edi, eax
test edi, edi
jns 0x40db63
cmp dword [ebp + 0x14], 0
je 0x40dcee
mov eax, esi
mov edi, ebx
call fcn.0040d530
mov edi, eax
test edi, edi
js 0x40dcee
cmp dword [esp + 0x24], 2
mov ecx, dword [esp + 0x38]
mov dword [ebp + 0x14], ecx
je 0x40d886
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40dba4
test ecx, ecx
jne 0x40d886
call fcn.0040d520
mov edi, eax
jmp 0x40dcee
mov ebx, dword [esp + 0x14]
test ecx, ecx
je 0x40dbe4
mov ecx, ebx
call fcn.0040d3a0
test eax, eax
je 0x40dbe4
lea ebx, [esp + 0x64]
call fcn.0040d210
test eax, eax
je 0x40d886
cmp dword [esp + 0x34], 0
je 0x40d886
mov edx, ebx
push edx
lea ecx, [esp + 0x18]
call fcn.0040d250
jmp 0x40d886
mov ecx, ebx
call fcn.0040d3a0
mov dword [esp + 0x60], eax
mov dword [esp + 0x24], 0
test ebx, ebx
je 0x40dc0e
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], 0
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x18], 0
test ebx, ebx
jne 0x40dccc
cmp dword [esp + 0x34], ebx
je 0x40d886
cmp dword [esp + 0x60], ebx
jne 0x40d886
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.0040d450
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
cmp eax, ebx
jne 0x40dcde
lea ecx, [esp + 0x48]
call fcn.00401930
jmp 0x40d886
lea ecx, [esp + 0x28]
call fcn.00401930
lea ecx, [esp + 0x14]
call fcn.00401930
mov eax, 0x80020009
jmp 0x40dcff
lea ecx, [esp + 0x28]
jmp 0x40dce9
lea ecx, [esp + 0x3c]
call fcn.00401930
lea ecx, [esp + 0x14]
call fcn.00401930
jmp 0x40dcfd
call fcn.0040d520
lea ecx, [esp + 0x54]
jmp 0x40dce7
lea ecx, [esp + 0x14]
call fcn.00401930
mov eax, edi
call fcn.0040d520
jmp 0x40dcff
call fcn.00431730
call fcn.00431768
lea ecx, [esp + 0x14]
call fcn.00401930
mov eax, ebx
call fcn.0040d520
jmp 0x40dcff
call fcn.0040d520
lea ecx, [esp + 0x48]
mov edi, eax
call fcn.00401930
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40dcfd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x1178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1160]
xor ecx, esp
call fcn.005319a6
mov esp, ebp
pop ebp
ret 0x10