Function at 0x1013b710
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x101d2014]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [0x101d59b0], 0
je 0x1013b746
mov ecx, esi
push dword [ebp + 0x10]
call fcn.1013b480
add esp, 4
mov edi, eax
jmp 0x1013b836
cmp byte [esi + 0x6c], 2
jne 0x1013b752
cmp byte [esi + 0x6d], 0
je 0x1013b732
mov edi, dword [esi + 0x20]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x1013b8dc
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x68]
test al, 1
jne 0x1013b814
or eax, 4
mov dword [esi + 0x68], eax
push dword [esi + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x10e]
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp + 0xc]
call ecx
add esp, 0xc
mov edi, dword [esi + 0x20]
mov dword [ebp - 0x18], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x1013b8f2
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov ecx, dword [esi + 0x68]
mov eax, ecx
and eax, 0xfffffffb
test cl, 1
mov dword [esi + 0x68], eax
jne 0x1013b814
push dword [esi + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1013b84a
cmp eax, 0x190
je 0x1013b825
cmp eax, 0x54
jne 0x1013b8cb
mov edx, dword [ebp + 0xc]
jmp 0x1013b732
and eax, 0xfffffffe
mov dword [esi + 0x68], eax
push dword [esi + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
push 0
push 0xffffe098
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [ebp - 0x14]
push esi
call fcn.1013aa60
add esp, 8
mov edi, eax
test eax, eax
jne 0x1013b877
push esi
call sym.nss3.dll_SECMOD_UpdateSlotList
add esp, 4
push dword [ebp - 0x14]
push esi
call fcn.1013aa60
add esp, 8
mov edi, eax
test eax, eax
je 0x1013b834
mov eax, dword [edi + 0x13c]
test eax, eax
je 0x1013b836
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x1013b836
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0x1c], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x1013b908
mov esi, dword [ebp - 0x1c]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x18]
mov dword [esi + 8], eax
mov dword [ebx + 0x3c], 0
push dword [ebx + 0x4c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x1013b836
push eax
call fcn.10115520
add esp, 4
push 0
push eax
jmp 0x1013b82c
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov ebx, eax
jmp 0x1013b76b
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov ebx, eax
jmp 0x1013b7cd
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x18], eax
jmp 0x1013b8a1