Function at 0x100cbe80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x8c
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
cmp dword [ecx + 0x18], 0
je 0x100cbeb5
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, ebx
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, ecx
cmp dword [ecx + 0xc], 0
je 0x100cbec8
cmp dword [esi + 0x38], 0
je 0x100cbec8
xor ebx, ebx
inc ebx
jmp 0x100cbe9e
mov ebx, dword [esi + 0x140]
mov eax, dword [0x101f25a4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
test eax, eax
je 0x100cc08f
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [ebx + 8], edi
mov edi, dword [esi + 0x13c]
test edi, edi
je 0x100cbf3d
lock inc dword [edi + 8]
mov eax, dword [esi + 0x140]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
mov eax, dword [edi + 0x14]
mov dword [esp], eax
call fcn.10094f30
mov esi, eax
mov dword [esp], edi
call fcn.10095540
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
jmp 0x100cbeaa
mov eax, dword [esi + 0x140]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
lea eax, [ebp - 0x78]
mov dword [esp + 4], eax
mov dword [esp], esi
call sym.nss3.dll_PK11_GetSlotInfo
test eax, eax
je 0x100cbf65
xor ebx, ebx
jmp 0x100cbe9e
mov edi, dword [esi + 0x38]
test byte [ebp - 0x18], 1
mov ebx, 0
jne 0x100cbfe7
test edi, edi
je 0x100cbe9e
cmp dword [esi + 0x30], 0
jne 0x100cbfb6
mov ebx, dword [esi + 0x3c]
mov eax, dword [0x101f25a4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
test eax, eax
je 0x100cc0bd
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [ebx + 8], edi
mov edi, dword [esi + 0x38]
xor ebx, ebx
mov eax, dword [esi]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
mov dword [esp], edi
call ecx
mov dword [esi + 0x38], 0
cmp dword [esi + 0x30], 0
jne 0x100cbe9e
mov eax, dword [esi + 0x3c]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
jmp 0x100cbe9e
test edi, edi
je 0x100cc07b
cmp dword [esi + 0x30], 0
je 0x100cc028
mov ebx, dword [esi + 0x3c]
mov eax, dword [0x101f25a4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
test eax, eax
je 0x100cc0a6
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [ebx + 8], edi
mov edi, dword [esi + 0x38]
mov eax, dword [esi]
mov ecx, dword [eax + 0x3e]
call dword [section..00cfg]
lea eax, [ebp - 0x88]
mov dword [esp + 4], eax
mov dword [esp], edi
call ecx
test eax, eax
je 0x100cc060
mov eax, dword [esi]
mov edi, dword [esi + 0x38]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
mov dword [esp], edi
call ecx
mov dword [esi + 0x38], 0
cmp dword [esi + 0x30], 0
je 0x100cc071
mov eax, dword [esi + 0x3c]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
cmp dword [esi + 0x38], 0
jne 0x100cbec3
mov dword [esp], esi
call fcn.100caf50
xor ebx, ebx
test eax, eax
sete bl
jmp 0x100cbe9e
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
mov edi, eax
jmp 0x100cbee9
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
mov edi, eax
jmp 0x100cc013
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
mov edi, eax
jmp 0x100cbf9f