Function at 0x1011bc70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x101bac5c]
cmp eax, 0xffffffff
je 0x1011bc95
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb bl
jmp 0x1011bc97
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1011be50
mov edi, dword [ebp + 8]
test bl, bl
je 0x1011bcc7
cmp dword [esi + 8], 0
jne 0x1011bdf4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 8], eax
mov bl, 1
jmp 0x1011be40
mov ecx, esi
call fcn.1011bb10
mov eax, dword [0x102cf518]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1011be5c
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, 0xffffffff
and eax, 0xfffffffc
je 0x1011bd28
mov ebx, edi
mov edx, dword [0x102cf510]
mov edi, dword [eax + edx*8 + 4]
cmp edi, dword [0x102cf514]
jne 0x1011bd26
mov eax, dword [eax + edx*8]
test eax, eax
mov edi, ebx
je 0x1011bd28
mov ecx, dword [eax]
jmp 0x1011bd28
mov edi, ebx
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x1011bd3a
mov bl, 1
cmp eax, ecx
je 0x1011be40
cmp dword [esi + 0x10], 0xffffffff
je 0x1011bdf4
mov eax, dword [0x102cf508]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1011bea8
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, 0xffffffff
and eax, 0xfffffffc
je 0x1011bd9e
mov ebx, edi
mov edx, dword [0x102cf500]
mov edi, dword [eax + edx*8 + 4]
cmp edi, dword [0x102cf504]
jne 0x1011bd9c
mov eax, dword [eax + edx*8]
test eax, eax
mov edi, ebx
je 0x1011bd9e
mov ecx, dword [eax]
jmp 0x1011bd9e
mov edi, ebx
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x1011be01
cmp eax, ecx
jne 0x1011be01
mov eax, dword [0x101ce540]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1011bef4
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x1011be01
mov ecx, dword [0x101ce538]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x101ce53c]
jne 0x1011be01
cmp dword [eax + ecx*8], 0
je 0x1011be01
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov bl, 1
cmp dword [esi + 8], eax
je 0x1011be40
test edi, edi
je 0x1011be3e
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x1011be3e
push 0x3ec
call fcn.10145ba4
add esp, 4
mov edi, eax
push 0x3ec
push ebx
push eax
call fcn.10148eb0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [ecx], edi
test eax, eax
je 0x1011be3e
push eax
call fcn.10145bd4
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, esi
call fcn.10083990
jmp 0x1011bca6
push 0x102cf518
call fcn.10145c47
add esp, 4
cmp dword [0x102cf518], 0xffffffff
jne 0x1011bcef
mov dword [0x102cf514], 0
mov dword [0x102cf510], 0xffffffff
mov ecx, 0x102cf510
push 0
call fcn.1007a5a0
push 0x102cf518
call fcn.10145cbd
add esp, 4
jmp 0x1011bcef
push 0x102cf508
call fcn.10145c47
add esp, 4
cmp dword [0x102cf508], 0xffffffff
jne 0x1011bd65
mov dword [0x102cf504], 0
mov dword [0x102cf500], 0xffffffff
mov ecx, 0x102cf500
push 0
call fcn.1007a5a0
push 0x102cf508
call fcn.10145cbd
add esp, 4
jmp 0x1011bd65
push 0x101ce540
call fcn.10145c47
add esp, 4
cmp dword [0x101ce540], 0xffffffff
jne 0x1011bdcb
mov dword [0x101ce53c], 0
mov dword [0x101ce538], 0xffffffff
mov ecx, 0x101ce538
push 0
call fcn.1007a5a0
push 0x101ce540
call fcn.10145cbd
add esp, 4
jmp 0x1011bdcb