Function at 0x100068b0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10014590
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10016334]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push ecx
push ebx
lea ecx, [ebp - 0x44]
call fcn.10007a10
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 6
lea eax, [ebx + 0x24]
mov byte [ebp - 4], 1
mov ecx, eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.MSDART.DLL_public:_void___thiscall_CReaderWriterLock3AR::WriteLock_void_]
mov eax, dword [ebx]
push 1
push 0
mov esi, dword [eax + 0x40]
mov ecx, esi
call dword [0x10017168]
mov ecx, ebx
call esi
mov dword [ebp - 0x2c], eax
test eax, eax
jns 0x1000694f
lea ecx, [ebp - 0x44]
call fcn.10011800
test byte [0x1001669c], 2
je 0x10006a0f
mov eax, dword [0x10018004]
jmp 0x10006a0f
mov edi, dword [ebp + 8]
mov ecx, ebx
sub ecx, dword [ebx + 0x10]
neg ecx
mov eax, dword [edi]
sbb ecx, ecx
and ecx, dword [ebx + 0x10]
push ecx
mov esi, dword [eax + 0x4c]
mov ecx, esi
call dword [0x10017168]
mov ecx, edi
call esi
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
push edi
mov esi, dword [eax + 0x58]
mov ecx, esi
call dword [0x10017168]
call esi
mov dword [ebp - 0x2c], eax
test eax, eax
js 0x10006930
push dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
call fcn.10013370
mov eax, dword [ebx]
push edi
mov esi, dword [eax + 0xac]
mov ecx, esi
call dword [0x10017168]
mov ecx, ebx
call esi
mov esi, dword [ebx + 0x20]
xor ecx, ecx
mov edx, dword [esi + 8]
test edx, edx
je 0x100069d0
mov eax, dword [esi + 4]
lea ebx, [ebx]
cmp dword [eax], edi
je 0x10006a7f
inc ecx
add eax, 4
cmp ecx, edx
jb 0x100069c0
push edi
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
push edx
call fcn.100101c0
mov dword [ebp - 0x2c], eax
test eax, eax
jns 0x10006a0f
lea ecx, [ebp - 0x44]
call fcn.10011800
test byte [0x1001669c], 2
je 0x100069fa
mov eax, dword [0x10018004]
mov eax, dword [ebx]
push edi
mov esi, dword [eax + 0xb0]
mov ecx, esi
call dword [0x10017168]
mov ecx, ebx
call esi
mov ecx, dword [ebp - 0x24]
call dword [sym.imp.MSDART.DLL_public:_void___thiscall_CReaderWriterLock3AR::WriteUnlock_void_]
test byte [ebp - 0x1c], 2
mov edi, dword [ebp - 0x2c]
je 0x10006a2a
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x44]
add dword [eax + 4], 0xffffffff
jne 0x10006aaa
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10006a66
push ecx
push 0
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10017168]
call esi
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0x12], 0
jne 0x10006a99
mov ecx, dword [0x10016698]
push 0
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x10006aaa
test byte [0x1001669c], 2
je 0x10006a8d
mov eax, dword [0x10018010]
mov dword [ebp - 0x2c], 0x800a0d27
jmp 0x100069e4
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x44]
mov dword [eax + 0xc], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10013ec0
mov esp, ebp
pop ebp
ret 4