Function at 0x100c7750
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 [0x101ef014]
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.100c55e0
add esp, 0xc
xor edi, edi
test eax, eax
je 0x100c790a
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.0x100c77d9
mov dword [ebp - 0x9c], eax
mov esi, dword [ebp + 0x28]
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
jmp dword [ecx*4 + 0x101bdf38]
push 0
push 0xffffe00e
jmp 0x100c78f4
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], 0x101f3238
mov byte [0x101f32b7], 1
test eax, eax
je 0x100c7820
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 0x100c7851
cmp dword [eax + 0x30], 0
jne 0x100c7877
mov ebx, dword [eax + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c7e11
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 0x100c78d0
cmp dword [eax + 0x30], 0
jne 0x100c78db
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
mov edi, 0
je 0x100c7cc7
push esi
call fcn.100a9930
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.10156ff0
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.0x100c77d9.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.100b7390
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 0x100c79db
cmp dword [eax + 0x30], 0
jne 0x100c7a01
mov ebx, dword [eax + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c7e2e
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 0x100c78ca
jmp 0x100c78d0
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.0x100c77d9.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.100b7390
add esp, 8
lea ecx, [ebp - 0x84]
mov dword [ecx], eax
mov dword [edi], esi
test esi, esi
jne 0x100c7b34
lea ecx, [eax - 0x13]
cmp ecx, 0xa
ja 0x100c7b0c
mov edx, 0x707
bt edx, ecx
jb 0x100c7b1d
mov dword [ebp - 0x88], 0x14
mov esi, 0x14
jmp 0x100c7b34
mov esi, dword [eax*4 + 0x101bdec0]
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 0x100c7b90
cmp dword [eax + 0x30], 0
jne 0x100c7bbc
mov ebx, dword [eax + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c7e4b
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 0x100c7c1a
cmp dword [eax + 0x30], 0
jne 0x100c7c25
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 0x100c7cb8
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 0x100c7c95
lea eax, [ebp - 0x4c]
push eax
call sym.nss3.dll_SECOID_FindOID_Util
add esp, 4
xor ebx, ebx
test eax, eax
je 0x100c7c95
cmp dword [eax + 0xc], 0x163
sete bl
push 0x100dbba0
push 0x101f39cc
call sym.nss3.dll_PR_CallOnce
add esp, 8
cmp dword [0x101f39d8], 0
je 0x100c7cd2
push esi
call sym.nss3.dll_PL_FreeArenaPool
jmp 0x100c7cd8
push dword [ebp - 0x94]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov edi, dword [ebp - 0x8c]
jmp 0x100c790a
push esi
call sym.nss3.dll_PL_FinishArenaPool
add esp, 4
cmp ebx, 1
mov ecx, dword [ebp + 0xc]
jne 0x100c7cfd
push dword [ebp - 0x94]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0xa0]
jmp 0x100c7df7
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 0x100c7dfd
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 0x100c7d43
cmp dword [eax + 0x30], 0
jne 0x100c7d69
mov ebx, dword [eax + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100c7e68
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 0x100c7dc3
cmp dword [eax + 0x30], 0
jne 0x100c7dce
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 0x100c7cc7
push eax
jmp 0x100c78e9
push dword [ebp - 0x94]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp case.default.0x100c77d9
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x100c786a
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x100c79f4
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x100c7ba9
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov edi, eax
jmp 0x100c7d5c