Function at 0x100944b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x100944e7
push eax
call fcn.10092fd0
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x100944ee
jmp 0x100946d8
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp + 0xc]
mov esi, dword [edi]
test esi, esi
je 0x1009451d
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100946fc
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x10094600
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x62]
call dword [section..00cfg]
push esi
push ebx
mov esi, dword [ebp + 8]
push esi
push dword [ebp - 0x20]
call ecx
add esp, 0x10
mov edi, eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
test eax, eax
je 0x10094563
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp edi, 0x12
ja 0x10094684
mov eax, 0x60001
bt eax, edi
jae 0x10094684
cmp dword [ebp + 0x14], 0
je 0x100945ac
cmp dword [ebp - 0x18], 0
jne 0x100945ac
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
push 0
call fcn.100930c0
add esp, 4
test eax, eax
je 0x100945ac
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
push 1
call fcn.100930c0
jmp 0x100946d5
xor eax, eax
mov ecx, dword [ebp + 0x10]
cmp ecx, 2
jb 0x100946db
add edi, 0xffffffef
cmp edi, 1
ja 0x100946db
mov edi, dword [ebp + 0x18]
mov eax, dword [ebx + 8]
inc eax
cmp eax, 1
ja 0x100945f3
mov dword [ebx + 8], 0
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
push 1
push ebx
push esi
mov esi, ecx
call fcn.100944b0
mov ecx, esi
mov esi, dword [ebp + 8]
add esp, 0x18
add ebx, 0xc
dec ecx
jne 0x100945c9
xor eax, eax
jmp 0x100946db
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x62]
call dword [section..00cfg]
push esi
push ebx
push dword [ebp + 8]
push dword [ebp - 0x20]
call ecx
add esp, 0x10
cmp eax, 0x12
ja 0x100946bf
mov ecx, 0x60001
bt ecx, eax
jae 0x100946bf
test esi, esi
je 0x10094535
lea edi, [ebx + 8]
mov eax, dword [edi]
lea ecx, [eax + 1]
cmp ecx, 1
ja 0x1009464e
xor eax, eax
mov dword [edi - 4], eax
mov dword [edi], eax
jmp 0x10094673
mov edx, dword [edi - 8]
cmp edx, 0xce534352
cmove eax, ecx
cmp edx, 3
cmove eax, ecx
push eax
push dword [ebp + 0x14]
call fcn.10092ca0
add esp, 8
mov dword [edi - 4], eax
test eax, eax
je 0x100946e3
add edi, 0xc
dec esi
jne 0x1009463b
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
jmp 0x10094535
push 0x22
call fcn.10093490
add esp, 4
xor eax, eax
dec eax
cmp dword [ebp - 0x18], 0
jne 0x100946db
cmp dword [ebp + 0x14], 0
jne 0x1009459a
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x100946db
mov esi, eax
add ebx, 4
push dword [ebx]
call fcn.10092db0
add esp, 4
add ebx, 0xc
dec edi
jne 0x100946ad
jmp 0x100946f8
mov eax, dword [edi]
test eax, eax
je 0x100946ce
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
push 0x22
call fcn.10093490
add esp, 4
xor eax, eax
dec eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
xor esi, esi
dec esi
test eax, eax
je 0x100946f8
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, esi
jmp 0x100946db
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov edi, eax
jmp 0x1009450d