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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100832b8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ebx, dword [0x100b0b2c]
mov ecx, ebx
call fcn.1002f290
push dword [0x100af300]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x20], eax
or eax, 1
push eax
push dword [0x100af300]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 0xc]
or edi, 0xffffffff
mov eax, dword [ebx + 4]
add eax, 3
add eax, dword [ecx - 0xc]
cmp eax, 0x1000
jb 0x1002ed19
lea eax, [ebp - 0x14]
push str._BroadcastCmd:_queue_is_full__Changing_revision__note:_perf_impact_
push eax
call fcn.1003a800
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
call fcn.100394f0
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002ec22
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.10022bb0
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.1003e870
add esp, 4
lea eax, [ebp - 0x14]
push str.BroadcastCmd:_about_to_save_data_to_disk__OnRevisionChangedByMe_
push eax
call fcn.1003a800
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
call fcn.100394f0
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002ec7c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax + 4]
lea eax, [ebp - 0x14]
push str.BroadcastCmd:_about_to_broadcast_change_to_others__BroadcastRevisionChange_
push eax
call fcn.1003a800
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
call fcn.100394f0
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002ecc2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, ebx
call fcn.1002e880
lea eax, [ebp - 0x14]
push str.BroadcastCmd:_done_emptying_queue
push eax
call fcn.1003a800
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
call fcn.100394f0
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002ed06
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.1003ea90
mov ecx, dword [ebp + 0xc]
add esp, 4
mov eax, dword [ebp + 8]
push ecx
movzx eax, ax
push eax
lea eax, [ebp - 0x10]
push str._c_s_
push eax
call fcn.1003a800
mov byte [ebp - 4], 5
lea eax, [ebp + 8]
push dword [ebp - 0x10]
push str.BroadcastCmd:__s
push eax
call fcn.1003a800
add esp, 0x1c
mov byte [ebp - 4], 6
mov edx, dword [ebp + 8]
call fcn.100394f0
mov byte [ebp - 4], 5
mov ecx, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002ed73
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx + 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 0x1002ed81
mov eax, dword [ebp - 0x10]
sub esi, edx
sar esi, 1
mov edx, dword [eax - 0xc]
cmp esi, edx
jl 0x1002ee01
push eax
mov eax, esi
sub eax, edx
lea eax, [ecx + eax*2]
push eax
call fcn.1006af63
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x10]
jne 0x1002ee01
mov ecx, dword [eax - 0xc]
cmp esi, ecx
je 0x1002edc6
sub esi, ecx
mov ecx, dword [ebp + 8]
cmp word [ecx + esi*2 - 2], 0x3e
jne 0x1002ee01
push str._BroadcastCmd:_DUPLICATE__not_adding_
lea ecx, [ebp + 8]
call fcn.10022bb0
mov byte [ebp - 4], 7
mov edx, dword [ebp + 8]
call fcn.100394f0
mov byte [ebp - 4], 5
mov ecx, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002ee28
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1002ee28
mov ecx, dword [ebx + 4]
push eax
mov eax, 0x1000
sub eax, ecx
push eax
mov eax, dword [ebx + 0x18]
lea eax, [eax + ecx*2]
add eax, 4
push eax
call fcn.1006c0e1
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [eax - 0xc]
add dword [ebx + 4], eax
push ecx
mov ecx, esp
lea esi, [ebp - 0x1c]
push str.CIpcCfgValidator.BroadcastCmd.DataIntegrity
call fcn.10022bb0
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.1003e870
mov esi, dword [ebx + 0x14]
add esp, 4
test esi, esi
je 0x1002ee85
mov edx, dword [ebx + 0x18]
add edx, 4
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 8], eax
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002ee60
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]
push 1
call fcn.1003ea90
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0x10]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002eeb5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
push dword [0x100af300]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x1002ef15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 8]
push str._Lock:_failed_releasing__LE_d
push eax
call fcn.1003a800
add esp, 0xc
mov byte [ebp - 4], 8
mov edx, dword [ebp + 8]
call fcn.100394f0
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002ef15
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], edi
dec edi
test edi, edi
jg 0x1002ef36
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