Function at 0x4af620
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1338
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x541100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ebx, dword [0x546f78]
mov edi, ebx
call fcn.004afdb0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
mov ecx, dword [ebx + 4]
lea edx, [ecx + eax + 3]
cmp edx, 0x1000
jb 0x4af78f
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
push str._BroadcastCmd:_queue_is_full__Changing_revision__note:_perf_impact_
push eax
call fcn.004777e0
add esp, 8
call fcn.004af360
add esp, 4
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
push ecx
mov esi, esp
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x18], esi
call fcn.004bdbe3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4af6bc
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.CIpcCfgValidator.BroadcastCmd.ChangeRevision
mov byte [ebp - 4], 1
test ecx, 0xffff0000
jne 0x4af6f5
mov edx, ecx
movzx edi, dx
push edi
call fcn.004c5d7f
test eax, eax
je 0x4af70f
push edi
push eax
mov ecx, esi
call fcn.00422eb3
jmp 0x4af70f
push str.CIpcCfgValidator.BroadcastCmd.ChangeRevision
call fcn.004ccd1a
add esp, 4
push eax
push str.CIpcCfgValidator.BroadcastCmd.ChangeRevision
mov ecx, esi
call fcn.00423404
mov byte [ebp - 4], 0
call fcn.004801a0
add esp, 8
mov eax, esp
mov dword [ebp - 0x1c], esp
push str.BroadcastCmd:_about_to_save_data_to_disk__OnRevisionChangedByMe_
push eax
call fcn.004777e0
add esp, 8
call fcn.004af360
mov edx, dword [ebx]
mov eax, dword [edx + 8]
add esp, 4
push 0
mov ecx, ebx
call eax
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.BroadcastCmd:_about_to_broadcast_change_to_others__BroadcastRevisionChange_
push ecx
call fcn.004777e0
add esp, 8
call fcn.004af360
add esp, 4
mov eax, ebx
call fcn.004af3d0
push ecx
mov edx, esp
mov dword [ebp - 0x1c], esp
push str.BroadcastCmd:_done_emptying_queue
push edx
call fcn.004777e0
add esp, 8
call fcn.004af360
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
add esp, 4
push eax
call fcn.004803e0
add esp, 4
mov ecx, dword [ebp + 0xc]
movzx edx, word [ebp + 8]
push ecx
push edx
lea eax, [ebp - 0x10]
push str._c_s_
push eax
call fcn.004777e0
add esp, 0xc
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x10]
mov ecx, esp
mov dword [ebp + 8], esp
push edx
push str.BroadcastCmd:__s
push ecx
call fcn.004777e0
add esp, 0xc
call fcn.004af360
mov esi, dword [ebx + 0x18]
add esp, 4
add esi, 4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af7d7
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
cmp edi, ecx
jl 0x4af8b7
push eax
mov eax, edi
sub eax, ecx
lea ecx, [esi + eax*2]
push ecx
call fcn.004cca64
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x10]
jne 0x4af8b7
mov ecx, dword [eax - 0xc]
cmp edi, ecx
je 0x4af827
sub edi, ecx
cmp word [esi + edi*2 - 2], 0x3e
jne 0x4af8b7
push ecx
mov esi, esp
mov dword [ebp + 8], esp
mov dword [ebp + 8], esi
call fcn.004bdbe3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4af84a
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str._BroadcastCmd:_DUPLICATE__not_adding_
mov byte [ebp - 4], 3
test ecx, 0xffff0000
jne 0x4af88f
mov edx, ecx
movzx edi, dx
push edi
call fcn.004c5d7f
test eax, eax
je 0x4af8a9
push edi
push eax
mov ecx, esi
call fcn.00422eb3
mov byte [ebp - 4], 2
call fcn.004af360
add esp, 4
jmp 0x4af8dc
push str._BroadcastCmd:_DUPLICATE__not_adding_
call fcn.004ccd1a
add esp, 4
push eax
push str._BroadcastCmd:_DUPLICATE__not_adding_
mov ecx, esi
call fcn.00423404
mov byte [ebp - 4], 2
call fcn.004af360
add esp, 4
jmp 0x4af8dc
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0x18]
push eax
mov eax, 0x1000
sub eax, ecx
push eax
lea eax, [edx + ecx*2 + 4]
push eax
call fcn.004d16c5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 0xc]
add esp, 0xc
add dword [ebx + 4], eax
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x18]
push eax
push ecx
mov esi, esp
mov dword [ebp + 8], esp
mov dword [ebp + 8], esi
call fcn.004bdbe3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4af907
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.CIpcCfgValidator.BroadcastCmd.DataIntegrity
mov byte [ebp - 4], 4
test ecx, 0xffff0000
jne 0x4af940
mov edx, ecx
movzx edi, dx
push edi
call fcn.004c5d7f
test eax, eax
je 0x4af95a
push edi
push eax
mov ecx, esi
call fcn.00422eb3
jmp 0x4af95a
push str.CIpcCfgValidator.BroadcastCmd.DataIntegrity
call fcn.004ccd1a
add esp, 4
push eax
push str.CIpcCfgValidator.BroadcastCmd.DataIntegrity
mov ecx, esi
call fcn.00423404
mov byte [ebp - 4], 2
call fcn.004801a0
mov esi, dword [ebx + 0x14]
add esp, 0xc
test esi, esi
je 0x4af9a3
mov edx, dword [ebx + 0x18]
add edx, 4
mov eax, edx
lea edi, [eax + 2]
jmp 0x4af980
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af980
sub eax, edi
sar eax, 1
add eax, eax
push eax
push edx
push 1
push 0
push str.DataIntegrity
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.004803e0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4af9d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x4afa06
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov edx, esp
mov dword [ebp + 8], esp
push eax
push str._Lock:_failed_releasing__LE_d
push edx
call fcn.004777e0
add esp, 0xc
call fcn.004af360
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4afa2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8