Function at 0x10113360
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x101d2014]
mov edi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edx, dword [edi + 8]
mov ecx, dword [edi + 0x2c]
push dword [edi + 0x24]
push dword [edi + 4]
push dword [edi]
call fcn.10113100
add esp, 0xc
xor esi, esi
test eax, eax
je 0x101135ab
cmp dword [edi + 0x14], 0
mov ebx, eax
mov dword [ebp - 0x20], eax
je 0x101133af
mov eax, dword [edi + 8]
cmp dword [eax + 0x30], 0
je 0x101133bf
mov esi, dword [edi + 0x10]
jmp 0x101133c2
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
mov dword [ebp - 0x14], eax
mov al, 1
jmp 0x1011348c
mov esi, dword [eax + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x101135d9
mov ebx, eax
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x42]
call dword [section..00cfg]
lea esi, [ebp - 0x14]
push esi
push 0
push ebx
call ecx
add esp, 0xc
push dword [esi]
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
mov dword [ebp - 0x1c], 0
je 0x10113460
mov ebx, eax
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x42]
call dword [section..00cfg]
push esi
push ebx
push dword [ebp - 0x18]
call ecx
add esp, 0xc
test eax, eax
je 0x1011345d
mov esi, eax
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push esi
call fcn.10115520
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10113460
mov dword [ebp - 0x1c], ebx
cmp dword [edi + 0x14], 0
mov eax, dword [edi + 8]
mov ebx, dword [ebp - 0x20]
mov esi, 0
je 0x1011347c
cmp dword [eax + 0x30], 0
je 0x1011347c
push dword [edi + 0x10]
jmp 0x1011347f
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov ecx, dword [ebp - 0x1c]
xor eax, eax
test ecx, ecx
je 0x1011359c
cmp dword [ebx + 0x14], 0
mov edi, ecx
mov dword [ebp - 0x24], eax
je 0x101134b0
mov eax, dword [ebx + 8]
mov dword [ebp - 0x1c], edi
cmp dword [eax + 0x30], 0
je 0x101134dd
mov esi, dword [ebx + 0x10]
jmp 0x101134e0
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x101134c3
mov ecx, dword [ebp - 0x14]
cmp dword [ebx + 0x20], ecx
jae 0x101135bf
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
xor eax, eax
dec eax
mov dword [ebp - 0x18], eax
jmp 0x10113586
mov esi, dword [eax + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x101135ed
mov ebx, eax
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], ebx
mov ebx, 0
mov dword [ebp - 0x18], 0
mov edi, dword [ebp - 0x14]
mov eax, dword [eax + 4]
test eax, eax
je 0x1011351f
mov ebx, dword [eax + 4]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x46]
call dword [section..00cfg]
push 0
push ebx
push edi
mov edi, dword [ebp - 0x1c]
push edi
push esi
call ecx
add esp, 0x14
test eax, eax
je 0x1011355f
push eax
call fcn.10115520
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor eax, eax
dec eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x20]
mov esi, 0
cmp dword [ebx + 0x14], 0
mov eax, dword [ebx + 8]
je 0x1011357b
cmp dword [eax + 0x30], 0
je 0x1011357b
push dword [ebx + 0x10]
jmp 0x1011357e
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp byte [ebp - 0x24], 0
jne 0x10113596
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x101135a9
push 1
push ebx
call sym.nss3.dll_PK11_DestroyContext
add esp, 8
jmp 0x101135ab
mov esi, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
push ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
mov dword [ebx + 0x20], eax
jmp 0x10113586
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x101133d6
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x101134f4