Function at 0x417ad0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f1280
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x6b7e40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x20], ecx
push ebx
lea ecx, [ebp - 0x10]
call fcn.004021e0
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.004021e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
or esi, 0xffffffff
cmp dword [eax - 0xc], 0
jne 0x417b36
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00404570
jmp 0x417b86
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x417b86
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push 0x63eebc
push eax
call fcn.00404060
add esp, 0xc
mov byte [ebp - 4], 2
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00404910
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417b86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jl 0x417d31
push 0x63eebc
push eax
call fcn.005bda07
add esp, 8
test eax, eax
je 0x417d31
sub eax, dword [ebp - 0x10]
sar eax, 1
js 0x417d31
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417bd4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417bf7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0xc]
cmp edi, 1
je 0x417cf0
mov eax, dword [0x6c1e7c]
test eax, eax
jne 0x417c16
call fcn.0041eb60
mov eax, dword [0x6c1e7c]
cmp eax, 2
jne 0x417cf0
push 0x63bfdc
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 4
call fcn.004021e0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 6
call fcn.004021e0
push ebx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 7
call fcn.004021e0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 8
push dword [ebp - 0x20]
mov edx, 3
mov ecx, edi
call fcn.00417e00
mov byte [ebp - 4], 7
mov edi, dword [ebp + 0xc]
add edi, 0xfffffff0
add esp, 0x14
mov bl, al
lea ecx, [edi + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417c9b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417cbb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x417cdc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push 0
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417de2
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x63bfdc
call fcn.004021e0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push str.INTERNAL_ERROR:_ATTEMPT_TO_DELETE_TOP_LEVEL_REGISTRY_KEY_OR_VALUE:
push eax
mov byte [ebp - 4], 3
call fcn.00404060
add esp, 0xc
mov byte [ebp - 4], 4
push 0
push eax
push 0xc82
push str.C:_amintegration_tools_setupishield_sldim_baseUtilities.cpp
push 1
push 1
xor ecx, ecx
call fcn.004051a0
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004022e0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417da1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417dc1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x417de2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret