Function at 0x411da0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afc3e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x503074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], edx
mov edi, ecx
mov dword [ebp - 0x14], edi
push 0x4c965c
push str.CCaslEventContainer::SetLatestData
push 0
call fcn.00422b80
push eax
call fcn.0047bd80
xor esi, esi
add esp, 0x10
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], esi
call fcn.00422b80
mov al, byte [eax + 0x38]
test al, al
je 0x411e2c
push 0x28
call fcn.00475970
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
push str.CCaslEventContainer::SetLatestData
mov byte [ebp - 4], 1
call fcn.00422b80
push eax
mov ecx, esi
call fcn.00477bf0
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x28], esi
mov ebx, 0x80004005
test edi, edi
jne 0x411e3f
mov ebx, 0x80004003
jmp 0x4120e6
cmp dword [0x509ea4], 0
jne 0x411e7c
push 8
call fcn.00475970
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 2
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.0040c7d0
mov dword [edi], eax
mov byte [ebp - 4], 0
mov dword [0x509ea4], edi
mov edi, dword [ebp - 0x14]
mov edx, edi
lea ecx, [ebp - 0x10]
call fcn.004116e0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x411ee2
mov ecx, dword [0x509ea4]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00417610
mov eax, dword [ebp - 0x1c]
add eax, 0x18
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ebx, eax
test ebx, ebx
js 0x411ee2
mov ecx, dword [0x509ea4]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00417610
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x24]
add eax, 0x18
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
mov ebx, eax
test ebx, ebx
jns 0x411efd
push ebx
push str.VariantCopy_latest_data_failed._hr:_0x_08lX
push str.CCaslEventContainer::SetLatestData
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411f1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor edi, edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.SOFTWAREPoliciesHPHP_CASL_Framework9C66BD86_EFC3_4A20_AD40_9FB9DD6A615F
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4120ae
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x4120ae
mov eax, dword [ebp - 0x24]
mov edx, 8
movzx ecx, word [eax]
cmp dx, cx
jne 0x411fbc
push dword [eax + 8]
lea ecx, [ebp - 0x24]
call fcn.0040d430
push ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x34]
push dword [ebp - 0x14]
call fcn.0041ace0
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412038
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x412038
mov edx, 0x2011
cmp dx, cx
jne 0x41205a
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
push ecx
push eax
call fcn.0047e6a0
add esp, 8
test eax, eax
js 0x412011
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
sub ecx, eax
push ecx
push eax
push 3
push 0
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x10], eax
jmp 0x41202c
push eax
push str.Failed_::VariantArrayToVector__hrCopy:_0x_08lX
push str.CCaslEventContainer::SetLatestData
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00416350
cmp dword [ebp - 0x10], 0
jne 0x41207b
push str.successfully_serialized_data_to_registry
push str.CCaslEventContainer::SetLatestData
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x10
jmp 0x41209f
push str.Unsupported_VARIANT_data_type_provided
push str.CCaslEventContainer::SetLatestData
push 2
mov dword [ebp - 0x10], 0xffffffff
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
push str.Failed_to_serialize_data_to_registry__lResult:_0x_08lX__GetLastError:_0x_08lX
push str.CCaslEventContainer::SetLatestData
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x18
test edi, edi
je 0x4120d7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
jmp 0x4120d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
push str.SOFTWAREPoliciesHPHP_CASL_Framework9C66BD86_EFC3_4A20_AD40_9FB9DD6A615F
push 0x4cc6e8
push str.CCaslEventContainer::SetLatestData
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x1c
mov byte [ebp - 4], 0
test edi, edi
je 0x4120e6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push str.hr:_0x_08lX
push str.CCaslEventContainer::SetLatestData
push 1
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
test esi, esi
je 0x412117
mov ecx, esi
call fcn.00478c00
push 0x28
push esi
call fcn.00475d73
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret