Function at 0x10032020
Capabilities:
Get thread local storage value
Set registry value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011f3d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov edi, dword [0x1017222c]
mov ecx, edi
call fcn.100326e0
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x20], eax
or eax, 1
push eax
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 0xc]
or ebx, 0xffffffff
mov eax, dword [edi + 4]
add eax, 3
add eax, dword [ecx - 0xc]
cmp eax, 0x1000
jb 0x100321d5
lea eax, [ebp - 0x14]
push str._BroadcastCmd:_queue_is_full__Changing_revision__note:_perf_impact_
push eax
call fcn.10044f30
add esp, 8
mov byte [ebp - 4], 1
mov ecx, str.CIpcCfgValidator
mov edx, dword [ebp - 0x14]
call fcn.10043b30
mov byte [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100320d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
lea esi, [ebp - 0x18]
push str.CIpcCfgValidator.BroadcastCmd.ChangeRevision
call fcn.10023fc0
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.1004a240
lea eax, [ebp - 0x14]
push str.BroadcastCmd:_about_to_save_data_to_disk__OnRevisionChangedByMe_
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, str.CIpcCfgValidator
mov edx, dword [ebp - 0x14]
call fcn.10043b30
mov byte [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10032133
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 8]
lea eax, [ebp - 0x14]
push str.BroadcastCmd:_about_to_broadcast_change_to_others__BroadcastRevisionChange_
push eax
call fcn.10044f30
add esp, 8
mov byte [ebp - 4], 3
mov ecx, str.CIpcCfgValidator
mov edx, dword [ebp - 0x14]
call fcn.10043b30
mov byte [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003217e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, edi
call fcn.10031d30
lea eax, [ebp - 0x14]
push str.BroadcastCmd:_done_emptying_queue
push eax
call fcn.10044f30
add esp, 8
mov byte [ebp - 4], 4
mov ecx, str.CIpcCfgValidator
mov edx, dword [ebp - 0x14]
call fcn.10043b30
mov byte [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100321c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
call fcn.1004a450
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
movzx eax, ax
push eax
lea eax, [ebp - 0x10]
push str._c_s_
push eax
call fcn.10044f30
mov byte [ebp - 4], 5
lea eax, [ebp + 8]
push dword [ebp - 0x10]
push str.BroadcastCmd:__s
push eax
call fcn.10044f30
add esp, 0x1c
mov byte [ebp - 4], 6
mov ecx, str.CIpcCfgValidator
mov edx, dword [ebp + 8]
call fcn.10043b30
mov byte [ebp - 4], 5
mov ecx, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10032234
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi + 0x18]
add ecx, 4
mov esi, ecx
mov dword [ebp + 8], ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10032242
mov eax, dword [ebp - 0x10]
sub esi, edx
sar esi, 1
mov edx, dword [eax - 0xc]
cmp esi, edx
jl 0x100322c7
push eax
mov eax, esi
sub eax, edx
lea eax, [ecx + eax*2]
push eax
call fcn.10103523
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x10]
jne 0x100322c7
mov ecx, dword [eax - 0xc]
cmp esi, ecx
je 0x10032287
sub esi, ecx
mov ecx, dword [ebp + 8]
cmp word [ecx + esi*2 - 2], 0x3e
jne 0x100322c7
push str._BroadcastCmd:_DUPLICATE__not_adding_
lea ecx, [ebp + 8]
call fcn.10023fc0
mov byte [ebp - 4], 7
mov ecx, str.CIpcCfgValidator
mov edx, dword [ebp + 8]
call fcn.10043b30
mov byte [ebp - 4], 5
mov ecx, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100322ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100322ee
mov ecx, dword [edi + 4]
push eax
mov eax, 0x1000
sub eax, ecx
push eax
mov eax, dword [edi + 0x18]
lea eax, [eax + ecx*2]
add eax, 4
push eax
call fcn.10104aec
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [eax - 0xc]
add dword [edi + 4], eax
push ecx
mov ecx, esp
lea esi, [ebp - 0x1c]
push str.CIpcCfgValidator.BroadcastCmd.DataIntegrity
call fcn.10023fc0
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.1004a240
mov esi, dword [edi + 0x14]
add esp, 4
test esi, esi
je 0x10032345
mov edx, dword [edi + 0x18]
add edx, 4
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10032320
sub ecx, dword [ebp + 8]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push 1
push 0
push str.DataIntegrity
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
call fcn.1004a450
mov byte [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10032370
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x100323d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 8]
push str._Lock:_failed_releasing__LE_d
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 8
mov ecx, str.CIpcCfgValidator
mov edx, dword [ebp + 8]
call fcn.10043b30
mov byte [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100323d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x100323f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
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 8