Function at 0x10108480
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov eax, dword [0x101d2014]
mov edi, edx
mov edx, dword [ebp + 8]
lea ebx, [ecx + 0xc]
xorps xmm0, xmm0
xor eax, ebp
mov dword [esp + 0x38], eax
movaps xmmword [esp + 0x20], xmm0
mov dword [edx], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [ebx]
cmp ebx, dword [esp + 0x10]
je 0x10108591
mov esi, dword [ebx + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, 1
je 0x101084de
cmp eax, 2
jne 0x10108516
push dword [esi + 8]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
jmp 0x10108516
mov eax, dword [esi + 8]
mov dword [esp + 0xc], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1010857d
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
add eax, 0x1c
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
mov dword [ecx + 8], eax
cmp dword [esi + 0x14], 0
mov cl, 1
je 0x1010854b
mov dword [esp + 0xc], ebx
xor ebx, ebx
mov eax, dword [esi + 0x10]
push edi
push dword [eax + ebx*4]
call fcn.101037b0
add esp, 8
test eax, eax
jne 0x10108545
inc ebx
cmp ebx, dword [esi + 0x14]
jb 0x10108524
mov ebx, dword [esp + 0xc]
mov cl, 1
jmp 0x1010854b
mov ebx, dword [esp + 0xc]
xor ecx, ecx
mov eax, dword [esi + 0xc]
cmp eax, 1
je 0x10108564
cmp eax, 2
jne 0x10108573
push dword [esi + 8]
mov esi, ecx
call sym.nss3.dll_PR_ExitMonitor
jmp 0x1010856e
push dword [esi + 8]
mov esi, ecx
call sym.nss3.dll_PR_Unlock
mov ecx, esi
add esp, 4
test cl, cl
jne 0x101084b5
jmp 0x101085df
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x101084f9
mov ebx, dword [esp + 0x14]
push dword [ebx]
call fcn.100ff5c0
add esp, 4
test eax, eax
je 0x101085d2
mov ecx, dword [ebx + 0x24]
mov esi, dword [ebx]
mov dword [esp + 0xc], eax
call dword [section..00cfg]
lea eax, [esp + 0x20]
push esi
push eax
push edi
call ecx
add esp, 0xc
test eax, eax
je 0x10108606
mov ecx, dword [ebx]
mov edx, dword [esp + 0xc]
push 1
call fcn.100ff690
add esp, 4
push edi
call fcn.10103710
add esp, 4
xor ebx, ebx
jmp 0x101085f1
push edi
call fcn.10103710
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.10192ef0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x10]
mov ebx, dword [eax]
cmp ebx, eax
je 0x10108648
lea esi, [esp + 0x1c]
lea eax, [ebx + 0x10]
push esi
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.100fff60
add esp, 0xc
test eax, eax
je 0x10108640
lea eax, [ebx + 0x18]
push esi
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.100fff60
add esp, 0xc
test eax, eax
jne 0x101086bf
mov ebx, dword [ebx]
cmp ebx, dword [esp + 0x10]
jne 0x10108614
push 0x20
mov ebx, dword [esp + 0x18]
push dword [ebx]
call fcn.100ff2b0
add esp, 8
test eax, eax
je 0x101085c2
mov esi, eax
push dword [ebx + 0x2c]
push dword [ebx + 8]
push dword [ebx + 4]
push edi
push 0
call fcn.101077e0
add esp, 0x14
test eax, eax
mov dword [esi + 0xc], eax
je 0x101085c2
movsd xmm0, qword [esp + 0x20]
mov edi, esi
movsd qword [esi + 0x10], xmm0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x1c], ecx
mov dword [esi + 8], 0
mov dword [esi + 4], esi
mov dword [esi], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [eax], esi
mov dword [ebx + 0x10], esi
inc dword [ebx + 0x14]
jmp 0x101086d5
test ebx, ebx
je 0x10108648
push edi
mov edi, ebx
push dword [ebx + 0xc]
call fcn.101078a0
add esp, 8
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx]
mov edx, dword [esp + 0xc]
push 0
call fcn.100ff690
add esp, 4
mov ebx, edi
jmp 0x101085f1