Function at 0x10084880
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x101f1014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 4]
lea esi, [ebp - 0x30]
mov dword [esi], ecx
mov eax, dword [eax + 8]
mov dword [esi + 4], eax
lea eax, [ebp - 0x3c]
mov dword [eax], 1
xor edi, edi
push edi
push eax
push edi
push esi
push dword [0x101f50a4]
call fcn.1009a970
add esp, 0x14
mov ebx, eax
push edi
push edi
push edi
push esi
push dword [ebp + 8]
call fcn.100a0b20
add esp, 0x14
test eax, eax
je 0x10084926
mov esi, eax
push edi
lea eax, [ebp - 0x3c]
push eax
push edi
push esi
call fcn.1009d280
add esp, 0x10
mov edi, eax
push esi
call fcn.1009d180
add esp, 4
test ebx, ebx
je 0x10084991
test edi, edi
je 0x1008492e
lea eax, [ebp - 0x1c]
mov dword [eax], ebx
mov dword [eax + 4], edi
xor ecx, ecx
mov dword [eax + 8], ecx
lea edx, [ebp - 0x28]
mov dword [edx], 1
push ecx
push edx
push ecx
push eax
call fcn.1009d280
add esp, 0x10
mov dword [ebp - 0x40], eax
jmp 0x10084937
test ebx, ebx
je 0x100849c5
lock inc dword [ebx + 4]
xor edi, edi
mov dword [ebp - 0x40], ebx
mov ecx, ebx
xor edx, edx
call fcn.1009b6a0
test eax, eax
je 0x100849a5
mov esi, eax
mov ebx, dword [0x101f5020]
test ebx, ebx
je 0x1008499b
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x10084a7d
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x44]
mov dword [ebx + 8], eax
mov eax, dword [0x101f5020]
mov ebx, dword [esi + 0x15c]
test eax, eax
je 0x100849a1
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100849a1
test edi, edi
je 0x100849c3
lock inc dword [edi + 4]
jmp 0x100849c5
mov ebx, dword [esi + 0x15c]
test ebx, ebx
je 0x100849b0
push ebx
call fcn.10099ca0
add esp, 4
jmp 0x100849c8
mov eax, dword [esi]
test eax, eax
je 0x100849c8
push 0
push eax
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
jmp 0x100849c8
xor edi, edi
mov dword [ebp - 0x40], edi
test edi, edi
je 0x10084a35
mov ecx, edi
xor edx, edx
call fcn.1009b6a0
test eax, eax
je 0x10084a2c
mov esi, eax
mov ebx, dword [0x101f5020]
test ebx, ebx
je 0x10084a22
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x10084a9b
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov eax, dword [0x101f5020]
mov edi, dword [esi + 0x15c]
test eax, eax
je 0x10084a28
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x10084a28
mov edi, dword [esi + 0x15c]
test edi, edi
je 0x10084a6a
push edi
call fcn.10099ca0
add esp, 4
mov edi, dword [ebp - 0x40]
test edi, edi
je 0x10084a54
mov ecx, edi
xor edx, edx
call fcn.1009b6a0
mov esi, eax
test eax, eax
jne 0x10084a56
push edi
call fcn.10099ca0
add esp, 4
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x10084a35
push 0
push eax
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
jmp 0x10084a35
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov dword [ebp - 0x44], eax
jmp 0x10084967
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov edi, eax
jmp 0x100849fb