Function at 0x100c6c30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov esi, dword [ebp + 0x14]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [ebp - 0x18]
mov dword [eax], ebx
lea ecx, [ebp - 0x1c]
mov dword [ecx], ebx
mov dword [ebp - 0x2c], 1
mov edi, dword [ebp + 0x10]
push ecx
push eax
push edi
push esi
push 0x106
push 0x104
push dword [ebp + 8]
call fcn.100c6ab0
add esp, 0x1c
test eax, eax
je 0x100c6cb5
lea ebx, [esi + 0x18]
cmp dword [esi + 0x1c], 0
je 0x100c6df6
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x100c6e25
mov ecx, edi
push dword [ebp + 0x18]
push ebx
push dword [ebp + 8]
call fcn.100c6f50
add esp, 0xc
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
jmp 0x100c6eee
mov eax, dword [ebp - 0x18]
test eax, eax
mov dword [ebp - 0x4c], eax
cmovne esi, eax
mov dword [ebp - 0x40], esi
mov eax, dword [ebp - 0x1c]
test eax, eax
mov dword [ebp - 0x48], eax
cmovne edi, eax
mov dword [ebp - 0x3c], edi
mov edx, dword [edi + 8]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], esi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov dword [ebp - 0x30], edx
jne 0x100c6d00
xor eax, eax
push eax
push eax
push esi
call fcn.100b7ec0
mov edx, dword [ebp - 0x30]
add esp, 0xc
mov ebx, eax
mov ecx, eax
test eax, eax
je 0x100c6ef6
mov eax, dword [ecx + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ecx + 8]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x20], eax
mov esi, dword [ebp + 0x18]
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], eax
lea ebx, [ebp - 0x2c]
push ebx
push edx
call fcn.100bc280
mov ecx, dword [ebp - 0x30]
add esp, 8
mov dword [ebp - 0x44], eax
cmp dword [ebx], 0
mov esi, dword [ebp - 0x40]
je 0x100c6d3c
cmp dword [ecx + 0x30], 0
jne 0x100c6d65
mov edi, dword [ecx + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100c6f29
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx]
mov ecx, dword [eax + 0xf2]
mov eax, dword [ebp + 0x18]
mov ebx, dword [eax + 4]
mov esi, dword [esi + 4]
mov eax, dword [ebp - 0x3c]
mov edi, dword [eax + 4]
call dword [section..00cfg]
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x28]
push eax
push ebx
push esi
push edi
push edx
mov esi, dword [ebp - 0x44]
push esi
call ecx
mov ecx, dword [ebp - 0x30]
add esp, 0x18
mov ebx, eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x100c6da8
cmp dword [ecx + 0x30], 0
jne 0x100c6db9
push dword [ecx + 0x3c]
call sym.nss3.dll_PR_Unlock
mov ecx, dword [ebp - 0x30]
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
push esi
push ecx
call fcn.100bc340
add esp, 0xc
test ebx, ebx
je 0x100c6e5b
mov ecx, dword [ebp - 0x40]
lea edi, [ecx + 0x18]
cmp dword [ecx + 0x1c], 0
mov esi, dword [ebp + 0x18]
je 0x100c6e90
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x34]
push esi
push edi
push dword [ebp + 8]
call fcn.100c6f50
add esp, 0xc
mov ebx, eax
jmp 0x100c6e66
mov eax, dword [esi + 8]
test eax, eax
je 0x100c6ec1
push ebx
push 0
push 0x11
push dword [esi + 4]
push eax
call fcn.100bbb50
add esp, 0x14
test eax, eax
jne 0x100c6ed0
mov eax, dword [esi + 0x20]
mov dword [esi + 0x30], eax
jmp 0x100c6c86
mov esi, edi
xor eax, eax
push eax
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.100b7ec0
add esp, 0xc
mov edi, eax
mov ecx, esi
mov edx, eax
push dword [ebp + 0x18]
push ebx
push dword [ebp + 8]
call fcn.100c6f50
add esp, 0xc
mov ebx, eax
test edi, edi
je 0x100c6ee2
push 1
push edi
jmp 0x100c6e86
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 8], eax
xor ebx, ebx
push dword [ebp - 0x4c]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
push dword [ebp - 0x48]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x100c6ee2
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
jmp 0x100c6ee2
mov eax, dword [ecx + 8]
test eax, eax
je 0x100c6f12
push edi
push 0
push 0x11
push dword [ecx + 4]
push eax
mov dword [ebp - 0x30], edi
mov edi, ecx
call fcn.100bbb50
add esp, 0x14
mov ebx, eax
test eax, eax
jne 0x100c6e66
mov eax, dword [edi + 0x20]
mov dword [edi + 0x30], eax
mov edi, dword [ebp - 0x30]
jmp 0x100c6ddf
push 0
push 0xffffe028
call sym.nss3.dll_PR_SetError
add esp, 8
push 0
push 0xffffe040
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, ebx
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x34], 0
jmp 0x100c6d0f
push 0
push 0xffffe028
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
jmp 0x100c6e66
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov ebx, eax
jmp 0x100c6d55