Function at 0x409c50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474278
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4bc00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x24], ebx
call fcn.00403ac0
mov ecx, eax
test ecx, ecx
je 0x40a0a4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREWOW6432NodeMicrosoftOffice16.0lync
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push str.EnableP2PScreenSharingOverVideo
push dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call edi
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push str.EnableConferenceScreenSharingOverVideo
push dword [ebp - 0x14]
call edi
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftOffice16.0Lync
push SysReAllocString
call esi
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push str.EnableP2PScreenSharingOverVideo
push dword [ebp - 0x14]
call edi
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push str.EnableConferenceScreenSharingOverVideo
push dword [ebp - 0x14]
call edi
cmp dword [ebp - 0x20], 0
je 0x409e6f
push str.Failed_to_create_the_registry
lea ecx, [ebp - 0x18]
call fcn.0045fc60
push ecx
mov dword [ebp - 0x2c], esp
mov dword [ebp - 0x28], esp
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
lea eax, [esi - 4]
cmp dword [eax], 0
jl 0x409d89
cmp ecx, dword [esi - 0x10]
jne 0x409d89
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x409db3
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x40a0ae
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
inc edx
push edx
push esi
lea ecx, [edi + 0x10]
call fcn.004031f0
add esp, 8
lea eax, [edi + 0x10]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.ErrorInRegistryCreation
call fcn.0045fcf0
mov byte [ebp - 4], 5
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
call fcn.00462c10
add esp, 4
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x48d10a
call fcn.0045fcf0
mov byte [ebp - 4], 6
push ecx
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x28], esp
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
lea eax, [esi - 4]
cmp dword [eax], 0
jl 0x409e1f
cmp ecx, dword [esi - 0x10]
jne 0x409e1f
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x409e49
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x40a0b3
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
inc edx
push edx
push esi
lea ecx, [edi + 0x10]
call fcn.004031f0
add esp, 8
lea eax, [edi + 0x10]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov byte [ebp - 4], 7
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.Failure
call fcn.0045fcf0
mov byte [ebp - 4], 9
jmp 0x409eab
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x48d10a
call fcn.0045fcf0
mov byte [ebp - 4], 0xa
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.Necessary_changes_have_been_done.
call fcn.0045fcf0
mov byte [ebp - 4], 0xb
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x48d168
call fcn.0045fcf0
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 2
mov ecx, ebx
call fcn.00463120
add esp, 0xc
mov dword [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409ee2
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
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 0x80004005
call fcn.00403880
call fcn.004031e0
call fcn.004031e0
call fcn.004031e0
call fcn.004031e0
int3