Function at 0x101111b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x101d2014]
mov ecx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [ecx + 0x13c]
push dword [ebp + 0xc]
call fcn.10111140
add esp, 4
xor ebx, ebx
test eax, eax
je 0x10111464
mov edi, eax
mov dword [ebp - 0x1c], esi
push eax
call sym.nss3.dll_PK11_MakeIDFromPubKey
add esp, 4
mov esi, eax
push 1
push edi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
test esi, esi
mov dword [ebp - 0x18], esi
je 0x10111464
cmp dword [ebp - 0x1c], 0
je 0x1011127c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov ebx, dword [ebp - 0x18]
cmp dword [eax + 0x14], 0
je 0x10111230
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x118]
test eax, eax
je 0x10111230
xor ecx, ecx
cmp byte [eax], 0
cmovne ecx, eax
mov esi, dword [0x101d5788]
mov dword [ebp - 0x24], ecx
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x101114d7
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 0x15c]
push dword [0x101d5788]
call sym.nss3.dll_PR_Unlock
add esp, 4
test edi, edi
je 0x10111293
mov dword [ebp - 0x14], edi
jmp 0x101112a9
push 0
push 0xffffe041
call sym.nss3.dll_PR_SetError
add esp, 8
mov ebx, dword [ebp - 0x18]
jmp 0x10111464
push esi
call fcn.10106d10
add esp, 4
mov edi, eax
test eax, eax
mov dword [ebp - 0x14], eax
je 0x10111464
lea eax, [edi + 0x28]
push dword [ebx + 4]
push dword [ebx + 8]
push eax
push dword [edi]
call fcn.100ffe70
add esp, 0x10
cmp dword [edi + 0x28], 0
je 0x10111464
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
test eax, eax
je 0x10111325
mov edi, eax
push 0x10
push 0
call fcn.100ff2b0
add esp, 8
test eax, eax
je 0x1011128b
mov ebx, eax
mov eax, dword [ebp - 0x1c]
lock inc dword [eax + 8]
mov dword [ebx + 4], eax
mov dword [ebx], edi
mov dword [ebx + 8], 1
mov edi, dword [ebp - 0x14]
lea eax, [edi + 0x40]
lea ecx, [edi + 0x28]
push eax
push ecx
push esi
push 0
push ebx
call fcn.10101250
add esp, 0x14
mov dword [ebp - 0x20], eax
push ebx
call fcn.10103710
add esp, 4
cmp dword [ebp - 0x20], 0
jne 0x1011128b
lea eax, [edi + 0x48]
lea ecx, [edi + 0x40]
lea edx, [edi + 0x38]
lea ebx, [edi + 0x30]
mov dword [ebp - 0x28], eax
lea eax, [edi + 0x28]
mov dword [ebp - 0x20], eax
xor eax, eax
inc eax
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push ecx
push edx
push ebx
push esi
push dword [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x1c]
call fcn.101020c0
add esp, 0x2c
test eax, eax
je 0x101114a8
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x10111414
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x101114ed
mov ebx, dword [ebp - 0x20]
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 8], eax
push edi
push dword [esi + 0x14]
call fcn.101091e0
add esp, 8
mov eax, dword [esi + 0x14]
push dword [eax + 8]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov dword [edi + 0x1c], 0
mov esi, dword [0x101d5788]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x10111504
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], ebx
mov dword [eax + 0x150], 0
mov dword [eax + 0x14c], 1
push dword [0x101d5788]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
push edi
call fcn.101078a0
add esp, 8
lock inc dword [edi + 4]
lea esi, [ebp - 0x14]
push 1
push esi
push dword [0x101d5808]
call fcn.1010a6a0
add esp, 0xc
mov ecx, dword [esi]
cmp dword [ecx + 0x54], 0
je 0x10111449
xor edx, edx
inc edx
call fcn.101064f0
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
push ecx
call fcn.10104ae0
add esp, 4
push 1
push esi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
xor esi, esi
jmp 0x10111494
call fcn.100f0030
push 1
push ebx
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
call sym.nss3.dll_PR_GetCurrentThread
xor esi, esi
dec esi
cmp dword [eax + 0x28], 0xffffe09b
je 0x10111494
push 0
push 0xffffe018
call sym.nss3.dll_PR_SetError
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.100ff930
cmp eax, 0x23
jne 0x1011128b
push 0
push 0xffffe08a
call sym.nss3.dll_PR_SetError
add esp, 8
push 1
push dword [ebp - 0x18]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
xor esi, esi
dec esi
jmp 0x10111494
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov edi, eax
jmp 0x1011124f
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x1c], eax
jmp 0x1011138f
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov ebx, eax
jmp 0x101113df