Function at 0x100a74f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, dword [ebp + 8]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 0x30]
push dword [edi + 0x1c]
push dword [edi + 0x28]
push dword [edi + 8]
push dword [edi + 4]
push dword [edi]
call fcn.100a72e0
add esp, 0x14
xor ebx, ebx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100a7714
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100a754c
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0x30], 0
mov eax, dword [0x101f25a4]
je 0x100a755a
mov esi, dword [edi + 0x14]
jmp 0x100a755d
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x14], eax
jmp 0x100a7614
mov esi, dword [ecx + 0x3c]
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100a773d
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
mov eax, dword [edi + 0xc]
mov ebx, dword [edi + 0x10]
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
je 0x100a75ea
mov ebx, eax
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x18], ecx
mov eax, dword [eax]
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 0x100a75ee
mov esi, eax
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push esi
call fcn.100a9930
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
jmp 0x100a75f0
mov esi, ebx
cmp dword [edi + 0x18], 0
mov eax, dword [edi + 0xc]
mov ebx, 0
je 0x100a7609
cmp dword [eax + 0x30], 0
je 0x100a7609
push dword [edi + 0x14]
jmp 0x100a760c
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov edi, dword [ebp - 0x1c]
test esi, esi
je 0x100a7705
cmp dword [edi + 0x18], 0
mov dword [ebp - 0x18], esi
je 0x100a763b
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0x30], 0
mov eax, dword [0x101f25a4]
je 0x100a7665
mov esi, dword [edi + 0x14]
jmp 0x100a7668
mov eax, dword [edi + 0x20]
test eax, eax
je 0x100a764e
mov ecx, dword [ebp - 0x14]
cmp dword [edi + 0x24], ecx
jae 0x100a7728
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
jmp 0x100a76ef
mov esi, dword [ecx + 0x3c]
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100a775a
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
mov esi, dword [ebp - 0x14]
mov edx, edi
mov edi, dword [edi + 8]
mov eax, dword [edx + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x46]
mov ebx, dword [edx + 0x10]
call dword [section..00cfg]
push 0
push edi
push esi
push dword [ebp - 0x18]
push ebx
call ecx
add esp, 0x14
test eax, eax
je 0x100a76c9
push eax
call fcn.100a9930
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
jmp 0x100a76cb
xor esi, esi
xor ebx, ebx
mov edi, dword [ebp - 0x1c]
cmp dword [edi + 0x18], 0
mov eax, dword [edi + 0xc]
je 0x100a76e4
cmp dword [eax + 0x30], 0
je 0x100a76e4
push dword [edi + 0x14]
jmp 0x100a76e7
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x100a7701
push dword [ebp - 0x18]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test esi, esi
je 0x100a7712
push 1
push edi
call sym.nss3.dll_PK11_DestroyContext
add esp, 8
jmp 0x100a7714
mov ebx, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push ecx
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x24], eax
xor esi, esi
jmp 0x100a76ef
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov ebx, eax
jmp 0x100a756e
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov ebx, eax
jmp 0x100a7679