Function at 0x10006ad0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100145c8
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
lea eax, [ebx + 0x24]
mov dword [ebp - 4], 0
mov ecx, eax
mov dword [ebp - 0x18], 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
js 0x10006c1b
mov eax, dword [ebx]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 8]
mov esi, dword [eax + 0x78]
mov ecx, esi
call dword [0x10017168]
mov ecx, ebx
call esi
mov dword [ebp - 0x2c], eax
test eax, eax
js 0x10006c1b
mov edi, dword [ebp - 0x1c]
lea ecx, [ebx + 0x24]
call dword [sym.imp.MSDART.DLL_public:_void___thiscall_CReaderWriterLock3AR::WriteLock_void_]
mov eax, dword [edi]
push 0
mov esi, dword [eax + 0x4c]
mov ecx, esi
call dword [0x10017168]
mov ecx, edi
call esi
mov ecx, dword [ebx + 0x20]
xor edx, edx
mov dword [ebp - 0x24], ecx
mov esi, dword [ecx + 8]
test esi, esi
je 0x10006bd5
mov eax, dword [ecx + 4]
cmp dword [eax], edi
je 0x10006ba0
inc edx
add eax, 4
cmp edx, esi
jb 0x10006b92
jmp 0x10006bd5
cmp edx, esi
jae 0x10006bd5
lea eax, [esi - 1]
cmp edx, eax
je 0x10006bcf
mov eax, dword [ecx + 4]
sub esi, edx
lea ecx, [eax + edx*4]
lea eax, [esi*4 - 4]
push eax
lea eax, [ecx + 4]
push eax
push ecx
call dword [sym.imp.msvcrt.dll_memmove]
mov ecx, dword [ebp - 0x24]
add esp, 0xc
mov esi, dword [ecx + 8]
lea eax, [esi - 1]
mov dword [ecx + 8], eax
push edi
add ecx, 0xc
call fcn.1000ff60
mov esi, eax
test esi, esi
jns 0x10006bf4
test byte [0x1001669c], 2
je 0x10006c0b
mov eax, dword [0x10018004]
jmp 0x10006c0b
mov eax, dword [ebx]
push edi
mov esi, dword [eax + 0xb0]
mov ecx, esi
call dword [0x10017168]
mov ecx, ebx
call esi
mov esi, eax
mov ecx, dword [ebp - 0x18]
call dword [sym.imp.MSDART.DLL_public:_void___thiscall_CReaderWriterLock3AR::WriteUnlock_void_]
mov dword [ebp - 0x2c], esi
test esi, esi
jns 0x10006c31
lea ecx, [ebp - 0x44]
call fcn.10011800
test byte [0x1001669c], 2
je 0x10006c31
mov eax, dword [0x10018004]
mov ecx, dword [ebp - 0x18]
call dword [sym.imp.MSDART.DLL_public:_void___thiscall_CReaderWriterLock3AR::WriteUnlock_void_]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x44]
add dword [eax + 4], 0xffffffff
jne 0x10006ca3
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10006c79
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 0x10006c92
mov ecx, dword [0x10016698]
push 0
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x10006ca3
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