Function at 0x10041410
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x248
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x244], eax
mov edx, dword [ebp + 8]
mov eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], ecx
push esi
push edi
test ecx, ecx
jne 0x1004145d
mov ecx, eax
call sym.HncFoundation.dll_protected:_struct_HKEY______thiscall_CHncRegistry::GetRegistryKey_void_
mov edx, dword [esp + 0x10]
mov edi, eax
mov dword [esp + 0x1c], edi
jmp 0x10041463
mov edi, ecx
mov dword [esp + 0x1c], ecx
test edi, edi
je 0x10041680
xorps xmm0, xmm0
lea eax, [esp + 0x28]
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push 0x2001f
push 0
push edx
push edi
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.10010900
test esi, esi
je 0x100414d1
cmp dword [esp + 8], 0
jne 0x10041680
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1004153a
push eax
push dword [esp + 0x18]
xorps xmm0, xmm0
lea ecx, [esp + 0x30]
movdqa xmmword [esp + 0x28], xmm0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [esp + 0x20]
mov edi, eax
call fcn.10010900
push dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [esp + 0x1c]
call esi
test edi, edi
je 0x10041645
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
push 0x206
push eax
mov word [esp + 0x48], ax
lea eax, [esp + 0x4a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x3c], 0x104
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0xc]
mov esi, 2
push dword [eax + 0x420]
lea eax, [esp + 0x1c]
push 0
push 0
push 0
push 0
push 0
push 0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x44]
call sym.HncFoundation.dll__HncRegQueryInfoKey_52
test eax, eax
jne 0x1004166a
cmp dword [esp + 0x1c], eax
jbe 0x1004160f
mov eax, dword [esp + 0x18]
xor ecx, ecx
inc eax
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1009427d
mov ecx, dword [esp + 0x1c]
add esp, 4
mov esi, eax
inc ecx
mov eax, dword [esp + 0xc]
push dword [eax + 0x420]
push ecx
push esi
push 0
push dword [esp + 0x24]
call sym.HncFoundation.dll_HncRegEnumKey
test eax, eax
jne 0x10041660
push dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push esi
call sym.HncFoundation.dll_public:_int___thiscall_CHncRegistry::DeleteSubKey_unsigned_short_int_const___unsigned_short_int_const___struct_HKEY____
push esi
test eax, eax
je 0x10041661
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp dword [esp + 0x1c], 0
ja 0x10041564
push dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
mov eax, dword [esp + 0xc]
push dword [eax + 0x420]
push dword [esp + 0x14]
push edi
call sym.HncFoundation.dll_HncRegDeleteKey
cmp dword [esp + 8], 0
mov dword [esp + 0x10], eax
jne 0x10041641
push edi
call esi
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10041680
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
push dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
cmp dword [esp + 8], 0
jne 0x10041680
push edi
call esi
mov ecx, dword [esp + 0x24c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc