Function at 0x100957f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov esi, edx
mov ebx, ecx
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + 0x3c]
test edx, edx
jne 0x10095818
mov esi, dword [ebx + 0x24]
test esi, esi
je 0x1009583b
cmp dword [esi + 4], 0
je 0x1009583b
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x10]
test eax, eax
mov ecx, 0x10
cmovne ecx, eax
cmp ecx, 0x11
mov dword [ebp - 0x58], ecx
jae 0x10095868
lea edi, [ebp - 0x50]
jmp 0x10095884
mov esi, 0xb3
mov ebx, dword [ebp + 0x14]
push esi
call fcn.10093490
add esp, 4
push 0x26
call fcn.10093490
add esp, 4
xor edi, edi
test ebx, ebx
je 0x10095936
xor eax, eax
dec eax
jmp 0x10095934
lea eax, [ecx*4]
push eax
push 0
call fcn.10092ca0
add esp, 8
mov edi, eax
test eax, eax
je 0x10095a20
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x5c], esi
mov esi, dword [esi]
test esi, esi
je 0x100958b3
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x10095b1c
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0x6a]
mov ebx, dword [ebp - 0x5c]
mov esi, dword [ebx + 4]
call dword [section..00cfg]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call ecx
add esp, 0xc
test eax, eax
je 0x1009594a
mov esi, eax
mov eax, dword [ebx]
test eax, eax
je 0x100958e6
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 0x50]
cmp edi, eax
je 0x100958f9
push edi
call fcn.10092db0
add esp, 4
lea eax, [esi - 0x12]
cmp eax, 0xf
ja 0x1009590b
mov ecx, 0xc003
bt ecx, eax
jb 0x1009591f
lea eax, [esi - 0xd0]
cmp eax, 2
jb 0x1009591f
cmp esi, 0x54
jne 0x10095843
push 0x1b
call fcn.10093490
add esp, 4
xor eax, eax
mov edi, 0
test ebx, ebx
je 0x10095936
mov dword [ebx], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, edi
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
mov esi, dword [ebp - 0x58]
mov edx, edi
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0x6e]
mov edi, esi
sub esi, ebx
mov dword [ebp - 0x58], edx
lea eax, [edx + ebx*4]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x64], eax
call dword [section..00cfg]
lea eax, [ebp - 0x54]
push eax
push esi
push dword [ebp - 0x68]
push dword [ebp - 0x64]
call ecx
add esp, 0x10
test eax, eax
jne 0x10095a2a
mov ecx, dword [ebp - 0x54]
lea eax, [ecx + ebx]
cmp dword [ebp + 0x10], 0
jne 0x10095a49
mov esi, edi
cmp eax, edi
jb 0x10095a49
mov ebx, eax
lea eax, [esi*8]
mov ecx, dword [ebp - 0x58]
lea edx, [ebp - 0x50]
cmp ecx, edx
je 0x100959c6
push eax
push ecx
call fcn.100931b0
add esp, 8
mov edx, eax
jmp 0x100959f6
push eax
push 0
call fcn.10092ca0
add esp, 8
test eax, eax
je 0x10095a00
mov edx, eax
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [eax + 0x30], xmm0
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x50]
movups xmm1, xmmword [ebp - 0x40]
movups xmmword [eax + 0x10], xmm1
movups xmmword [eax], xmm0
add esi, esi
test edx, edx
jne 0x10095951
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
mov esi, 2
test eax, eax
je 0x10095840
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x10095840
mov esi, 2
jmp 0x10095840
mov esi, eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
test eax, eax
je 0x10095a3e
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp - 0x58]
jmp 0x100958e9
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ebx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0x72]
mov edi, dword [ebp - 0x5c]
mov esi, dword [edi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov esi, eax
mov eax, dword [edi]
test eax, eax
mov edi, dword [ebp - 0x58]
je 0x10095a7e
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
jne 0x100958e6
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x10095ad3
lea eax, [esi*4 + 4]
push eax
push 0
call fcn.10092ca0
add esp, 8
test eax, eax
je 0x10095afd
mov edi, eax
test esi, esi
jle 0x10095aff
mov ebx, dword [ebp - 0x6c]
add ebx, dword [ebp - 0x64]
xor esi, esi
mov eax, dword [ebp - 0x58]
push dword [eax + esi*4]
push dword [ebp - 0x5c]
push dword [ebp - 0x70]
call fcn.100971d0
add esp, 0xc
mov dword [edi + esi*4], eax
test eax, eax
je 0x10095adc
inc esi
cmp ebx, esi
jne 0x10095ab1
jmp 0x10095aff
push 0x1b
call fcn.10093490
jmp 0x10095afa
cmp esi, 2
jb 0x10095af4
inc esi
push dword [edi + esi*4 - 8]
call fcn.100972a0
add esp, 4
dec esi
cmp esi, 2
jg 0x10095ae2
push edi
call fcn.10092db0
add esp, 4
xor edi, edi
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x50]
cmp eax, ecx
je 0x10095b15
push eax
call fcn.10092db0
add esp, 4
xor eax, eax
jmp 0x10095930
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov ebx, eax
jmp 0x100958a6