Function at 0x100d1260
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov dword [ebp - 0x30], edx
mov edi, ecx
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], 1
lea eax, [ebx - 1]
lea ecx, [eax + eax*2]
cmp dword [edx + ecx*4], 0x161
cmove ebx, eax
mov esi, dword [ebp + 0xc]
push dword [esi + 8]
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100d134f
mov dword [ebp - 0x34], ebx
mov eax, dword [esi + 8]
mov dword [ebp - 0x18], eax
lea esi, [ebp - 0x28]
push esi
push edi
call fcn.100c3ab0
add esp, 8
cmp dword [esi], 0
mov dword [ebp - 0x2c], eax
mov esi, edi
je 0x100d12d6
mov ebx, eax
cmp dword [esi + 0x30], 0
jne 0x100d12ff
mov ebx, dword [esi + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100d150e
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov ebx, dword [ebp - 0x2c]
mov eax, dword [esi]
mov ecx, dword [eax + 0x86]
call dword [section..00cfg]
push dword [ebp - 0x30]
push dword [ebp + 8]
push ebx
call ecx
add esp, 0xc
test eax, eax
mov edi, dword [ebp + 0x24]
je 0x100d1376
mov ebx, eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100d132f
cmp dword [esi + 0x30], 0
jne 0x100d133d
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
push esi
call fcn.100c3b70
add esp, 0xc
jmp 0x100d13d5
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x100d1402
mov dword [eax], 2
jmp 0x100d1402
mov eax, dword [esi]
mov ecx, dword [eax + 0x8a]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 4]
mov dword [ebp - 0x30], edx
mov ebx, dword [eax + 8]
call dword [section..00cfg]
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call ecx
add esp, 0x14
mov ebx, eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100d13b3
cmp dword [esi + 0x30], 0
jne 0x100d13c1
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
push esi
call fcn.100c3b70
add esp, 0xc
test ebx, ebx
mov edi, dword [ebp + 0x24]
je 0x100d1416
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100d13e6
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push ebx
call fcn.100b1140
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
test edi, edi
je 0x100d1402
mov dword [edi], ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x10]
test eax, eax
jne 0x100d1423
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0
push edi
push esi
call sym.nss3.dll_PK11_DoesMechanism
add esp, 8
test eax, eax
mov ebx, dword [ebp + 0x14]
je 0x100d1487
lea eax, [ebp - 0x24]
mov ecx, esi
mov edx, edi
push dword [ebp + 0x20]
push eax
push dword [ebp - 0x34]
push ebx
push dword [ebp + 0x28]
push 4
call fcn.100cd9e0
add esp, 0x18
mov esi, eax
mov edi, dword [ebp + 0x24]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100d1470
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test edi, edi
je 0x100d1402
xor eax, eax
test esi, esi
mov ecx, 0x30
cmovne ecx, eax
mov dword [edi], ecx
jmp 0x100d1402
mov esi, dword [ebp + 0x28]
lea eax, [ebp - 0x14]
mov dword [eax], edi
xor ecx, ecx
push dword [ebp + 0x20]
push 1
push ecx
push ecx
push eax
call fcn.100d5860
add esp, 0x14
test eax, eax
je 0x100d14d6
mov ebx, eax
lea eax, [ebp - 0x24]
mov ecx, ebx
mov edx, edi
push dword [ebp + 0x20]
push eax
push dword [ebp - 0x34]
push dword [ebp + 0x14]
push esi
push 4
call fcn.100cd9e0
add esp, 0x18
mov esi, eax
lock dec dword [ebx + 0x48]
jne 0x100d145c
push ebx
call fcn.100d1c70
add esp, 4
jmp 0x100d145c
push 0
push 0xffffe040
call sym.nss3.dll_PR_SetError
add esp, 8
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100d14f6
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor esi, esi
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x100d1402
mov dword [eax], 0x30
jmp 0x100d1402
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov edi, eax
jmp 0x100d12ef