Function at 0x414a40
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ecx, str._nullptr_
push edi
mov edi, dword [ebp + 0xc]
mov eax, ecx
test esi, esi
cmovne eax, esi
test edi, edi
push eax
cmovne ecx, edi
push ecx
push str.EventName___s__DataValueName___s
push str.CCaslEventContainer::GetData
push 0
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x18
xor eax, eax
mov dword [esp + 0x2c], eax
call fcn.00422b80
cmp byte [eax + 0x38], 0
je 0x414ab5
push 0x28
call fcn.00475970
add esp, 4
mov esi, eax
push str.CCaslEventContainer::GetData
call fcn.00422b80
push eax
mov ecx, esi
call fcn.00477bf0
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
mov ebx, 1
test edi, edi
je 0x414f6e
cmp dword [ebp + 0x14], 0
je 0x414f6e
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.004116e0
mov eax, dword [esp + 0x14]
or edi, 0xffffffff
cmp dword [eax - 0xc], 0
jne 0x414b08
push str.EventName_is_zero_length
push str.CCaslEventContainer::GetData
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x10
mov ebx, 0x80070057
jmp 0x414f53
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
jne 0x414b34
push str.NULL__this._Doing_nothing.
push str.CCaslEventContainer::GetData
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x10
mov ebx, 0x80004003
jmp 0x414f53
lea ecx, [esp + 0x10]
call fcn.0040cac0
push esi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x414b9d
push esi
lea ecx, [esp + 0x2c]
call fcn.0040d430
push eax
lea ecx, [esp + 0x14]
call fcn.0040ca50
lea ecx, [esp + 0x28]
call fcn.0040caf0
push str.Bust.The.Cache.Data
lea ecx, [esp + 0x14]
call fcn.0040a080
test eax, eax
jne 0x414b9d
push str.Default.Data
lea ecx, [esp + 0x2c]
call fcn.0040d430
push eax
lea ecx, [esp + 0x14]
call fcn.0040ca50
lea ecx, [esp + 0x28]
call fcn.0040caf0
jmp 0x414e8c
push 0
push 0
push 0xf003f
push 0
push 0
push str.SOFTWAREPoliciesHPHP_CASL_Framework9C66BD86_EFC3_4A20_AD40_9FB9DD6A615F
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call fcn.0041ade0
mov esi, eax
test esi, esi
je 0x414c14
push esi
push str.SOFTWAREPoliciesHPHP_CASL_Framework9C66BD86_EFC3_4A20_AD40_9FB9DD6A615F
push str.reg.Create__s__failed:__d
push str.CCaslEventContainer::GetData
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x18
test esi, esi
jg 0x414c06
mov ebx, esi
jmp 0x414e7b
movzx ebx, si
or ebx, 0x80070000
jmp 0x414e7b
cmp dword [0x50bf74], ebx
jne 0x414e41
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
je 0x414c40
push str.Default.Data
lea ecx, [esp + 0x14]
call fcn.0040a080
test eax, eax
jne 0x414e41
lea ecx, [esp + 0x1c]
call fcn.0040cac0
mov edi, dword [esp + 0x1c]
mov edx, 2
mov dword [esp + 0x18], 0x2000
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0x2000
mov eax, dword [esp + 0x18]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00475bfe
mov esi, eax
add esp, 4
test esi, esi
je 0x414d3a
mov eax, dword [esp + 0x18]
add eax, eax
push eax
push 0
push esi
call fcn.0048b3f0
add esp, 0xc
lea eax, [esp + 0x18]
lea ecx, [esp + 0x34]
push eax
push esi
push dword [esp + 0x1c]
call fcn.00419be0
mov dword [esp + 0x28], eax
cmp eax, 0xea
jne 0x414cf0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
inc ecx
push ecx
add eax, 0x2000
mov dword [esp + 0x24], ecx
push eax
push str.ERROR_MORE_DATA_result.__Allocate__d_WCHARS_for_try___d
push str.CCaslEventContainer::GetData
push 2
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], eax
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x18
jmp 0x414d66
test eax, eax
jne 0x414d34
push esi
lea ecx, [esp + 0x34]
call fcn.0040d430
push eax
lea ecx, [esp + 0x20]
call fcn.0040ca50
lea ecx, [esp + 0x30]
call fcn.0040caf0
mov edi, dword [esp + 0x1c]
push edi
push str.csRegData:__s
push str.CCaslEventContainer::GetData
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
xor ebx, ebx
jmp 0x414d66
jg 0x414d5d
mov ebx, eax
jmp 0x414d66
push str.Unable_to_allocate_memory_for_pszRegData
push str.CCaslEventContainer::GetData
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
mov eax, 8
add esp, 0x10
mov dword [esp + 0x28], eax
movzx ebx, ax
or ebx, 0x80070000
test esi, esi
je 0x414d73
push esi
call fcn.00475c07
add esp, 4
cmp dword [esp + 0x28], 0xea
mov edx, 2
je 0x414c66
test ebx, ebx
js 0x414e33
mov ecx, edi
call fcn.0040d3b0
test eax, eax
jne 0x414dd7
push str.Registry_data_does_not_exist___will_get_data_from_source.
push str.CCaslEventContainer::GetData
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x10
push dword [esp + 0x14]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [esp + 0x1c]
mov ebx, 0x80004005
call fcn.0040caf0
or edi, 0xffffffff
jmp 0x414e72
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ecx + 8], eax
mov eax, 8
mov word [ecx], ax
mov eax, 1
lock xadd dword [0x509e98], eax
inc eax
cmp eax, 2
jle 0x414e33
push dword [esp + 0x14]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
call fcn.00414940
test eax, eax
jns 0x414e33
push eax
push str.FAILED_UseCachedDataAtStartup__hrCache:_0x_08lX
push str.CCaslEventContainer::GetData
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
lea ecx, [esp + 0x1c]
call fcn.0040caf0
or edi, 0xffffffff
jmp 0x414e72
push dword [esp + 0x14]
push str.s_bUseCachedDataAtStartup_was_FALSE_or_DataValueName_was_neither_empty_nor_Default.Data.__Will_get_data_from_source.
push str.CCaslEventContainer::GetData
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
push dword [esp + 0x14]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, 0x80004005
lea ecx, [esp + 0x34]
call fcn.0040c940
lea ecx, [esp + 0x34]
call fcn.0040c970
test ebx, ebx
jns 0x414f38
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
je 0x414ea8
push str.Default.Data
lea ecx, [esp + 0x14]
call fcn.0040a080
test eax, eax
jne 0x414ef7
push dword [0x503a00]
push str.s_bForceRetrievalOfDataFromSource:__d
push str.CCaslEventContainer::GetData
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
cmp dword [0x503a00], 0
jne 0x414ef7
cmp dword [0x509ea4], 0
je 0x414ef7
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00415500
mov ecx, dword [0x509ea4]
mov eax, dword [esp + 0x30]
cmp dword [ecx], eax
jne 0x414f0e
push dword [ebp + 0x14]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
call fcn.00427600
add esp, 4
mov ebx, eax
jmp 0x414f38
add eax, 0x18
push eax
push dword [ebp + 0x14]
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
mov ebx, eax
push ebx
push str.Successfully_retrieved_latest_data._hr:_0x_08lX
push str.CCaslEventContainer::GetData
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
mov edx, dword [esp + 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414f53
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x414f73
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x414f73
mov ebx, 0x80004003
push ebx
push str.hr:_0x_08lX
push str.CCaslEventContainer::GetData
push 1
call fcn.00422b80
push eax
call fcn.0047bd80
mov esi, dword [esp + 0x40]
add esp, 0x14
test esi, esi
je 0x414fa8
mov ecx, esi
call fcn.00478c00
push 0x28
push esi
call fcn.00475d73
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10