Function at 0x410b60
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x46e780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [0x46fb34]
push 0xa
lea ecx, [ebp - 0x28]
mov ebx, eax
call fcn.00428a45
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0xc], esp
mov esi, esp
push eax
mov dword [ebp - 0xc], eax
call fcn.00402470
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040b8a0
add esp, 8
cmp eax, 3
je 0x410c1c
lea ecx, [ebp - 0xc]
push str._DeleteRegValue__Invalid_arguments__nArg_3_:
push ecx
lea ecx, [ebp + 8]
call fcn.00402290
mov edi, dword [eax]
xor esi, esi
add esp, 8
cmp edi, esi
jne 0x410bd4
mov dword [ebp - 8], esi
jmp 0x410c02
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x410bea
mov dword [ebp - 8], esi
jmp 0x410c02
lea esi, [eax + eax]
mov eax, esi
call fcn.00441030
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00408280
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x34]
call fcn.0043b4a4
push 0x4686c8
lea eax, [ebp - 0x34]
push eax
call fcn.0043e342
push 0
lea ecx, [ebp - 0x28]
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00428a21
test eax, eax
jne 0x410c34
jmp fcn.00423abe
add eax, 8
push str.HKEY_CURRENT_USER
push eax
call fcn.004038a0
add esp, 8
test al, al
je 0x410c50
mov ebx, SysReAllocString
jmp 0x410c7d
push 0
lea ecx, [ebp - 0x28]
call fcn.00428a21
test eax, eax
jne 0x410c63
jmp fcn.00423abe
add eax, 8
push str.HKEY_CLASSES_ROOT
push eax
call fcn.004038a0
add esp, 8
test al, al
je 0x410c7d
mov ebx, SysReAllocString
push 1
lea ecx, [ebp - 0x28]
call fcn.00428a21
test eax, eax
jne 0x410c90
jmp fcn.00423abe
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402470
add esp, 4
mov esi, eax
push 2
lea ecx, [ebp - 0x28]
add esi, 0x10
call fcn.00428a21
test eax, eax
jne 0x410cb7
jmp fcn.00423abe
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402470
mov edi, eax
add esp, 4
add edi, 0x10
cmp dword [esi - 0xc], 0
je 0x410d03
cmp dword [edi - 0xc], 0
je 0x410d03
lea ecx, [ebp - 8]
push ecx
push 0xf003f
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410d03
mov edx, dword [ebp - 8]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410d1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410d3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x28]
call fcn.00428b7d
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410d5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439c98
mov esp, ebp
pop ebp
ret