Function at 0x10115250
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [ebp + 8]
test edi, edi
je 0x10115289
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x10115289
mov eax, dword [edi + 8]
cmp eax, dword [edx + 8]
je 0x1011529d
xor ecx, ecx
push edx
push ecx
push ecx
push 0x108
push 0x381
push eax
call fcn.10132150
add esp, 0x18
jmp 0x101152a3
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x101153e4
lock inc dword [edx + 0x2c]
mov eax, edx
mov dword [edi + 0x28], 0
mov dword [ebp - 0x14], eax
cmp dword [edi + 0x14], 0
mov eax, dword [edi + 8]
je 0x101152c1
cmp dword [eax + 0x30], 0
je 0x101152c1
mov esi, dword [edi + 0x10]
jmp 0x101152c4
mov esi, dword [eax + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10115471
mov ebx, eax
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
cmp dword [edi + 0x14], 0
je 0x10115314
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x10115326
mov eax, dword [edi + 8]
mov esi, dword [edi + 0xc]
mov ebx, dword [edx + 4]
mov eax, dword [eax]
mov ecx, dword [eax + 0xa2]
call dword [section..00cfg]
push ebx
push esi
call ecx
add esp, 8
jmp 0x10115358
mov eax, dword [edi + 4]
mov esi, dword [edi + 0x20]
mov ebx, dword [edi + 0x1c]
test eax, eax
je 0x10115367
mov eax, dword [eax + 4]
jmp 0x10115369
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 0x1c]
test esi, esi
je 0x101153e9
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov ebx, dword [edx + 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 0x9e]
call dword [section..00cfg]
push ebx
push esi
push dword [ebp - 0x10]
call ecx
add esp, 0xc
test eax, eax
jne 0x101153ee
xor ebx, ebx
jmp 0x10115405
xor eax, eax
test ebx, ebx
je 0x101153a6
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], edx
mov ecx, dword [eax + 0x46]
call dword [section..00cfg]
push 0
push dword [ebp - 0x18]
push esi
push ebx
push dword [ebp - 0x10]
call ecx
add esp, 0x14
test eax, eax
je 0x101152ed
push eax
call fcn.10115520
add esp, 4
jmp 0x101153ab
mov eax, 0xffffe001
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [edi + 0x14], 0
mov eax, dword [edi + 8]
je 0x101153cc
cmp dword [eax + 0x30], 0
je 0x101153cc
add edi, 0x10
mov eax, edi
jmp 0x101153cf
add eax, 0x3c
push dword [eax]
call sym.nss3.dll_PR_Unlock
add esp, 4
push dword [ebp - 0x14]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
xor ebx, ebx
dec ebx
jmp 0x10115467
mov eax, 0x63
push eax
call fcn.10115520
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
cmp dword [edi + 0x14], 0
je 0x10115410
mov eax, dword [edi + 8]
jmp 0x1011543d
mov edx, dword [edi + 0x1c]
lea eax, [edi + 0x20]
mov ecx, edi
push eax
call fcn.10112ff0
add esp, 4
xor ecx, ecx
cmp eax, 1
mov dword [edi + 0x1c], eax
sbb ecx, ecx
or ebx, ecx
mov ecx, edi
call fcn.10113840
cmp dword [edi + 0x14], 0
mov eax, dword [edi + 8]
je 0x1011544a
cmp dword [eax + 0x30], 0
je 0x1011544a
add edi, 0x10
mov eax, edi
jmp 0x1011544d
add eax, 0x3c
push dword [eax]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10115467
push eax
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x101152d8