Function at 0x1009e660
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x14]
mov edx, dword [eax + 0x44]
test esi, esi
jne 0x1009e68a
mov esi, dword [ecx + 0x24]
test esi, esi
je 0x1009e6a9
cmp dword [esi + 4], 0
je 0x1009e6a9
mov eax, dword [ebp + 0x10]
cmp eax, 1
mov dword [ebp - 0x44], edx
jne 0x1009e6bd
mov dword [ebp - 0x28], 1
mov eax, 0x101a7669
jmp 0x1009e6d1
push 0
push 0xffffe041
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1009e80d
and eax, 0xfffffffe
cmp eax, 2
jne 0x1009e6e0
mov dword [ebp - 0x28], 1
mov eax, 0x101a7668
lea edi, [ebp - 0x1c]
mov dword [edi - 8], eax
mov dword [edi - 4], 1
jmp 0x1009e6e3
lea edi, [ebp - 0x28]
mov dword [edi], 0
mov dword [edi + 4], 0x101a766c
mov dword [edi + 8], 4
call fcn.1009a3e0
test eax, eax
je 0x1009e80d
mov ebx, eax
mov dword [ebp - 0x38], esi
push 0x40
push eax
call fcn.1009a460
add esp, 8
test eax, eax
je 0x1009e804
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ebx
lea eax, [ebp - 0x28]
neg eax
add eax, edi
add eax, 0xc
sar eax, 2
imul eax, eax, 0xaaaaaaab
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax]
test ebx, ebx
je 0x1009e764
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1009e920
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov edi, dword [ebp - 0x44]
mov ecx, dword [edi + 0x6a]
mov esi, dword [ebp - 0x38]
mov ebx, dword [esi + 4]
call dword [section..00cfg]
push dword [ebp - 0x34]
lea eax, [ebp - 0x28]
push eax
push ebx
call ecx
add esp, 0xc
test eax, eax
je 0x1009e78b
mov eax, dword [esi]
jmp 0x1009e7f4
xor ebx, ebx
mov edi, 0x10
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x44]
mov ecx, dword [ecx + 0x6e]
mov esi, edi
sub esi, ebx
mov dword [ebp - 0x3c], eax
lea eax, [eax + ebx*4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
call dword [section..00cfg]
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call ecx
add esp, 0x10
test eax, eax
jne 0x1009e7ef
mov eax, dword [ebp - 0x2c]
lea esi, [eax + ebx]
cmp esi, edi
jb 0x1009e824
lea ebx, [edi + edi]
shl edi, 3
push edi
push dword [ebp - 0x3c]
call fcn.1009a980
add esp, 8
mov edi, ebx
mov ebx, esi
test eax, eax
jne 0x1009e795
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
test eax, eax
mov ebx, dword [ebp - 0x40]
je 0x1009e804
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
push ebx
call fcn.1009a6f0
add esp, 4
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x48], ebx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x72]
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebx + 4]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov edi, eax
mov eax, dword [ebx]
test eax, eax
je 0x1009e853
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
test edi, edi
mov ebx, dword [ebp - 0x40]
jne 0x1009e804
test esi, esi
je 0x1009e910
lea eax, [esi*4 + 4]
push eax
push 0
call fcn.1009a460
add esp, 8
mov ecx, dword [ebp - 0x3c]
test eax, eax
je 0x1009e910
mov dword [ebp - 0x30], eax
test esi, esi
mov edi, dword [ebp + 8]
jle 0x1009e8b6
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
xor esi, esi
push dword [ecx + esi*4]
push dword [ebp - 0x38]
push edi
call fcn.1009e9a0
add esp, 0xc
mov ecx, dword [ebp - 0x30]
mov dword [ecx + esi*4], eax
test eax, eax
je 0x1009e8ec
inc esi
cmp dword [ebp - 0x34], esi
mov ecx, dword [ebp - 0x3c]
jne 0x1009e894
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
test ecx, ecx
mov esi, dword [ebp + 0x14]
je 0x1009e8e7
mov edi, dword [ebp - 0x30]
add edi, 4
mov dword [ebp - 0x3c], ecx
mov ecx, esi
call dword [section..00cfg]
push dword [ebp + 0x18]
push dword [ebp - 0x3c]
call esi
add esp, 8
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
jne 0x1009e8c8
push dword [ebp - 0x30]
jmp 0x1009e908
cmp esi, 2
mov edi, dword [ebp - 0x30]
jb 0x1009e907
inc esi
push dword [edi + esi*4 - 8]
call fcn.1009ea70
add esp, 4
dec esi
cmp esi, 2
jg 0x1009e8f5
push edi
call fcn.1009a580
add esp, 4
push ebx
call fcn.1009a6f0
add esp, 4
xor esi, esi
jmp 0x1009e810
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x1009e757