Function at 0x10135410
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 ebx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [0x101d2014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebx - 1]
mov dword [ebp - 0x28], 1
lea ecx, [eax + eax*2]
cmp dword [edx + ecx*4], 0x161
cmove ebx, eax
push dword [esi + 8]
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
mov dword [ebp - 0x20], eax
je 0x101354ff
mov eax, dword [esi + 8]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x18], eax
push esi
push edi
call fcn.10127d30
add esp, 8
cmp dword [esi], 0
mov esi, edi
mov dword [ebp - 0x2c], eax
je 0x10135486
cmp dword [esi + 0x30], 0
mov ebx, eax
jne 0x101354af
mov ebx, dword [esi + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x101356be
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
mov edi, dword [ebp + 0x24]
test eax, eax
je 0x10135526
mov ebx, eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x101354df
cmp dword [esi + 0x30], 0
jne 0x101354ed
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.10127df0
add esp, 0xc
jmp 0x10135585
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
mov eax, dword [ebp + 0x24]
xor esi, esi
test eax, eax
je 0x101355b2
mov dword [eax], 2
jmp 0x101355b2
mov eax, dword [esi]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x20]
mov edx, dword [ebx + 4]
mov ecx, dword [eax + 0x8a]
mov ebx, dword [ebx + 8]
mov dword [ebp - 0x30], edx
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 0x10135563
cmp dword [esi + 0x30], 0
jne 0x10135571
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.10127df0
add esp, 0xc
mov edi, dword [ebp + 0x24]
test ebx, ebx
je 0x101355c6
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10135596
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push ebx
call fcn.10115520
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
test edi, edi
je 0x101355b2
mov dword [edi], ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
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 0x101355d3
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
mov ebx, dword [ebp + 0x14]
test eax, eax
je 0x10135637
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.10131b60
add esp, 0x18
mov esi, eax
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp + 0x24]
test eax, eax
je 0x10135620
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test edi, edi
je 0x101355b2
xor eax, eax
test esi, esi
mov ecx, 0x30
cmovne ecx, eax
mov dword [edi], ecx
jmp 0x101355b2
mov esi, dword [ebp + 0x28]
lea eax, [ebp - 0x14]
xor ecx, ecx
mov dword [eax], edi
push dword [ebp + 0x20]
push 1
push ecx
push ecx
push eax
call fcn.101396c0
add esp, 0x14
test eax, eax
je 0x10135686
mov ebx, eax
lea eax, [ebp - 0x24]
mov edx, edi
mov ecx, ebx
push dword [ebp + 0x20]
push eax
push dword [ebp - 0x34]
push dword [ebp + 0x14]
push esi
push 4
call fcn.10131b60
add esp, 0x18
lock dec dword [ebx + 0x48]
mov esi, eax
jne 0x1013560c
push ebx
call fcn.10135de0
add esp, 4
jmp 0x1013560c
push 0
push 0xffffe040
call sym.nss3.dll_PR_SetError
add esp, 8
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x101356a6
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp + 0x24]
xor esi, esi
test eax, eax
je 0x101355b2
mov dword [eax], 0x30
jmp 0x101355b2
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov edi, eax
jmp 0x1013549f