Function at 0x7d2190
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [esp + 0x14], edx
mov esi, ecx
mov eax, dword [0x94b99c]
cmp eax, 2
jne 0x7d23ac
lea eax, [0x94b9a4]
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x94bfbc]
test eax, 0x7fffffff
jne 0x7d23b6
xor edx, edx
movzx eax, byte [0x94b9a8]
test al, al
jne 0x7d23cf
mov edi, dword [0x94b9b4]
mov dword [esp + 0x10], esi
test edi, edi
je 0x7d222c
mov ebp, edi
mov dword [esp + 4], edx
mov eax, 1
dec ebp
mov dword [0x94b9b4], ebp
mov esi, dword [0x94b9b0]
mov edx, dword [esi + edi*4 - 4]
je 0x7d2238
mov eax, dword [esi]
xor ebx, ebx
mov dword [esi], edx
mov dword [esp], eax
mov eax, ebp
sub eax, 2
cmovb eax, ebx
cmp edi, 4
jae 0x7d2269
xor ebx, ebx
mov ecx, 1
cmp ebp, 2
je 0x7d2293
jmp 0x7d22cc
xor eax, eax
cmp eax, 1
jne 0x7d2247
jmp 0x7d22e4
mov edi, edx
mov edx, dword [esp + 4]
cmp eax, 1
je 0x7d22e4
mov edi, dword [0x94b9b8]
lea esi, [edi + 1]
mov dword [0x94b9b8], esi
test esi, esi
je 0x7d22ef
bsr eax, esi
xor eax, 0x1f
jmp 0x7d22f4
mov ecx, 1
nop
mov ebp, ebx
mov ebx, dword [esi + ecx*4]
cmp ebx, dword [esi + ecx*4 + 4]
mov ebx, ecx
sbb ebx, 0xffffffff
mov ecx, dword [esi + ebx*4]
mov dword [esi + ebp*4], ecx
lea ecx, [ebx + ebx + 1]
cmp ecx, eax
jbe 0x7d2270
add edi, 0xfffffffe
cmp ecx, edi
jne 0x7d22a0
mov edi, dword [esi + ecx*4]
lea eax, [esi + ecx*4]
mov dword [esi + ebx*4], edi
mov ebx, ecx
jmp 0x7d22a3
lea eax, [esi + ebx*4]
mov dword [eax], edx
mov eax, ebx
nop word [eax + eax]
lea ecx, [eax - 1]
mov ebx, ecx
shr ebx, 1
mov edi, dword [esi + ebx*4]
cmp edi, edx
jbe 0x7d22ca
mov dword [esi + eax*4], edi
cmp ecx, 1
mov eax, ebx
ja 0x7d22b0
jmp 0x7d22cc
mov ebx, eax
mov dword [esi + ebx*4], edx
mov edi, dword [esp]
mov edx, dword [esp + 4]
mov eax, 1
cmp eax, 1
jne 0x7d2247
lea esi, [edi + 1]
test esi, esi
jne 0x7d225e
mov eax, 0x20
mov ebx, 0x1f
mov ebp, 1
sub ebx, eax
mov ecx, ebx
shl ebp, cl
sub esi, ebp
test dl, dl
jne 0x7d231a
mov eax, dword [0x94bfbc]
test eax, 0x7fffffff
jne 0x7d24b8
lea eax, [0x94b9a4]
push eax
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esp + 0x14]
mov dword [eax], 1
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], esi
mov eax, dword [0x94b9c0]
mov dword [esp], edi
test eax, eax
je 0x7d23fb
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x7d2366
cmp dword [eax + 4], 0
mov edi, eax
jne 0x7d2499
mov eax, dword [0x94b9c0]
test eax, eax
je 0x7d241a
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x7d2433
mov edi, eax
cmp eax, 1
jne 0x7d246f
lea eax, [esp + 8]
mov ecx, 0x93c0b4
mov edx, 0x46
push 0x93c14c
push 0x935cf8
push eax
call fcn.007c1f60
call fcn.007d2140
jmp 0x7d21ab
call fcn.007d1b30
mov edx, eax
xor dl, 1
movzx eax, byte [0x94b9a8]
test al, al
je 0x7d21d9
lea eax, [0x94b9a4]
mov ecx, 0x93b384
mov dword [esp + 8], eax
mov byte [esp + 0xc], dl
lea eax, [esp + 8]
mov edx, 0x2b
push 0x935dac
push 0x935d08
push eax
call fcn.007c1f60
mov ecx, 0x94b9c0
call fcn.007d1810
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x7d235a
jmp 0x7d2366
mov ecx, 0x94b9c0
call fcn.007d1810
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x7d2383
movzx eax, byte [0x94bfc5]
xor ecx, ecx
mov edx, 0xc
call fcn.0071ee80
test eax, eax
je 0x7d24dd
mov dword [eax], 0x94b9c0
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x94b9c0]
test eax, eax
je 0x7d24d1
dec eax
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
movq xmm0, qword [edi + 4]
movd eax, xmm0
movq qword [esp + 8], xmm0
mov dword [edi + 4], 1
mov dword [edi + 8], 0
test eax, eax
je 0x7d2499
lea ecx, [esp + 0xc]
call fcn.00722840
mov ecx, dword [esp]
mov eax, dword [esp + 0x10]
add edi, 8
mov dword [edi], ecx
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.007d1b30
test al, al
jne 0x7d231a
mov byte [0x94b9a8], 1
jmp 0x7d231a
mov ecx, 0x94b9c0
call fcn.007d1810
jmp 0x7d2467
mov ecx, 4
mov edx, 0xc
call fcn.007c1490
int3