Function at 0x100c8d10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x94
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x2c]
mov ecx, dword [0x101f1014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov ebx, dword [esi + 8]
xor edi, edi
inc edi
mov ecx, ebx
push eax
push edi
push edi
call fcn.100c6b90
add esp, 0xc
xor edi, edi
test eax, eax
je 0x100c8eca
mov dword [ebp - 0x90], ebx
mov ecx, dword [ebp + 0x24]
mov edx, ecx
and edx, 0xff000000
mov ebx, ecx
and ebx, 0xffffff
cmp edx, 0x82000000
cmovne ebx, ecx
mov ecx, eax
mov dword [ebp - 0x8c], eax
mov dword [eax + 0x34], 1
mov ecx, dword [esi + 4]
cmp ecx, 8
ja case.default.0x100c8d99
mov dword [ebp - 0x9c], eax
mov esi, dword [ebp + 0x28]
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
jmp dword [ecx*4 + 0x101c0118]
push 0
push 0xffffe00e
jmp 0x100c8eb4
mov edi, eax
mov ebx, edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov byte [ebp - 0x40], dl
mov edx, dword [ecx + 8]
mov dword [ebp - 0x3f], edx
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x3b], ecx
mov dword [ebp - 0x37], 0x101f5268
mov byte [0x101f52e7], 1
test eax, eax
je 0x100c8de0
mov eax, dword [eax + 4]
mov dword [ebp - 0x37], eax
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x4c]
lea edx, [ebp - 0x40]
mov dword [edx + 0xd], ecx
mov dword [edx + 0x11], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], 0x15
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0x28], 0
mov eax, dword [eax + 8]
je 0x100c8e11
cmp dword [eax + 0x30], 0
jne 0x100c8e37
mov ebx, dword [eax + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c93d1
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov eax, dword [ebp - 0x90]
mov eax, dword [eax]
mov ecx, dword [eax + 0xfa]
mov esi, dword [ebp - 0x9c]
add esi, 4
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0xc]
mov edi, dword [ebp - 0x8c]
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x90], eax
call dword [section..00cfg]
lea eax, [ebp - 0x78]
push esi
xor edx, edx
push edx
push edx
push ebx
push eax
push dword [ebp - 0x90]
call ecx
add esp, 0x18
mov esi, eax
mov eax, dword [edi + 8]
xor ecx, ecx
cmp dword [edi + 0x28], ecx
je 0x100c8e90
cmp dword [eax + 0x30], 0
jne 0x100c8e9b
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
mov edi, 0
je 0x100c9287
push esi
call fcn.100aaef0
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [ebp - 0x8c]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, edi
add esp, 0x94
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [ebp - 0x84], 1
mov dword [ebp - 0x6c], 4
mov dword [ebp - 0x4c], 0x10
mov dword [ebp - 0x7c], 0
cmp dword [edx + 4], 4
jne case.0x100c8d99.0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x3c], ecx
mov edi, 4
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 0x100
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x84]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x161
lea ebx, [ebp - 0x7c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
push esi
push dword [ebp + 0x20]
call fcn.100b8950
add esp, 8
lea ecx, [ebp - 0x4c]
mov dword [ecx], eax
mov dword [ebx], esi
mov ecx, dword [ebp - 0x8c]
mov dword [ecx + 0x30], esi
cmp esi, 1
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x78], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x74], eax
sbb edi, 0
mov dword [ebp - 0x98], edi
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x70], eax
cmp dword [ecx + 0x28], 0
mov eax, dword [ecx + 8]
je 0x100c8f9b
cmp dword [eax + 0x30], 0
jne 0x100c8fc1
mov ebx, dword [eax + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c93ee
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov eax, dword [ebp - 0x90]
mov eax, dword [eax]
mov ecx, dword [eax + 0xfa]
mov esi, dword [ebp - 0x9c]
add esi, 4
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc]
mov ebx, dword [ebp - 0x8c]
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x90], eax
call dword [section..00cfg]
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x78]
push esi
push dword [ebp - 0x98]
push eax
push edi
push edx
push dword [ebp - 0x90]
call ecx
add esp, 0x18
mov esi, eax
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
jne 0x100c8e8a
jmp 0x100c8e90
mov byte [ebp - 0x7d], 1
mov dword [ebp - 0x7c], 4
mov dword [ebp - 0x84], 0x10
mov dword [ebp - 0x88], 0
cmp dword [edx + 4], 6
jne case.0x100c8d99.0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x3c], ecx
mov ecx, 4
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0x100
lea eax, [ebp - 0x84]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x7d]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x161
lea edi, [ebp - 0x88]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x98], 4
mov dword [ebp - 0x14], ecx
push esi
push dword [ebp + 0x20]
call fcn.100b8950
add esp, 8
lea ecx, [ebp - 0x84]
mov dword [ecx], eax
mov dword [edi], esi
test esi, esi
jne 0x100c90f4
lea ecx, [eax - 0x13]
cmp ecx, 0xa
ja 0x100c90cc
mov edx, 0x707
bt edx, ecx
jb 0x100c90dd
mov dword [ebp - 0x88], 0x14
mov esi, 0x14
jmp 0x100c90f4
mov esi, dword [eax*4 + 0x101c00a0]
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x98], 3
mov edi, dword [ebp - 0x8c]
mov dword [edi + 0x30], esi
mov esi, 0x14
push esi
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
mov ebx, eax
mov dword [eax], 2
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x28]
mov dword [ebx + 0xc], eax
mov eax, dword [edx + 0x24]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], esi
mov eax, dword [edi + 8]
cmp dword [edi + 0x28], ecx
mov ecx, dword [ebp - 0x90]
je 0x100c9150
cmp dword [eax + 0x30], 0
jne 0x100c917c
mov ebx, dword [eax + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c940b
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov ecx, dword [ebp - 0x90]
mov eax, dword [ecx]
mov ecx, dword [eax + 0xfa]
mov esi, dword [ebp - 0x9c]
add esi, 4
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc]
mov ebx, dword [ebp - 0x8c]
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0xa0], eax
call dword [section..00cfg]
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x78]
mov dword [ebp - 0x9c], esi
push esi
push dword [ebp - 0x98]
push edx
push edi
push eax
push dword [ebp - 0xa0]
call ecx
add esp, 0x18
mov esi, eax
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
je 0x100c91da
cmp dword [eax + 0x30], 0
jne 0x100c91e5
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov dword [ebp - 0xa0], esi
test esi, esi
mov edi, 0
je 0x100c9278
lea esi, [ebp - 0x6c]
mov dword [esi + 0x1c], 0x3f16bb09
push 8
push 0x800
push str.security
push esi
call sym.nss3.dll_PL_InitArenaPool
add esp, 0x10
mov eax, dword [ebp + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x4c]
push eax
push sym.nss3.dll_SEC_ObjectIDTemplate_Util
push ecx
push esi
call sym.nss3.dll_SEC_QuickDERDecodeItem_Util
add esp, 0x10
mov ebx, 2
test eax, eax
jne 0x100c9255
lea eax, [ebp - 0x4c]
push eax
call sym.nss3.dll_SECOID_FindOID_Util
add esp, 4
xor ebx, ebx
test eax, eax
je 0x100c9255
cmp dword [eax + 0xc], 0x163
sete bl
push 0x100dd160
push 0x101f59fc
call sym.nss3.dll_PR_CallOnce
add esp, 8
cmp dword [0x101f5a08], 0
je 0x100c9292
push esi
call sym.nss3.dll_PL_FreeArenaPool
jmp 0x100c9298
push dword [ebp - 0x94]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov edi, dword [ebp - 0x8c]
jmp 0x100c8eca
push esi
call sym.nss3.dll_PL_FinishArenaPool
add esp, 4
cmp ebx, 1
mov ecx, dword [ebp + 0xc]
jne 0x100c92bd
push dword [ebp - 0x94]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0xa0]
jmp 0x100c93b7
add ecx, 0x20
xor eax, eax
push sym.nss3.dll_SEC_OctetStringTemplate_Util
push ecx
push eax
push eax
call sym.nss3.dll_SEC_ASN1EncodeItem_Util
add esp, 0x10
test eax, eax
je 0x100c93bd
mov esi, eax
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x94]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 4]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0x28], 0
mov eax, dword [eax + 8]
je 0x100c9303
cmp dword [eax + 0x30], 0
jne 0x100c9329
mov ebx, dword [eax + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100c9428
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov eax, dword [ebp - 0x90]
mov eax, dword [eax]
mov ecx, dword [eax + 0xfa]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc]
mov ebx, dword [ebp - 0x8c]
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x90], eax
call dword [section..00cfg]
push dword [ebp - 0x9c]
push dword [ebp - 0x98]
lea eax, [ebp - 0x40]
push eax
push edi
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x90]
call ecx
add esp, 0x18
mov edi, eax
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
je 0x100c9383
cmp dword [eax + 0x30], 0
jne 0x100c938e
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
push 1
push esi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push dword [ebp - 0x94]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test edi, edi
mov eax, edi
mov edi, 0
je 0x100c9287
push eax
jmp 0x100c8ea9
push dword [ebp - 0x94]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp case.default.0x100c8d99
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x100c8e2a
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x100c8fb4
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x100c9169
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov edi, eax
jmp 0x100c931c