Function at 0x10128140
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov eax, dword [0x101d2014]
xorps xmm0, xmm0
xor eax, ebp
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x10], ecx
mov ebx, dword [ecx + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x50], eax
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x18], 0x14
mov eax, dword [ecx + 4]
lea ecx, [eax - 1]
cmp ecx, 5
ja 0x10128190
mov eax, dword [eax*4 + 0x101a157c]
jmp 0x10128193
xor eax, eax
dec eax
mov dword [esp + 0x20], eax
cmp dword [ebx + 0x30], 0
jne 0x101281c3
mov esi, dword [ebx + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x1012840d
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
mov eax, dword [ebx]
mov esi, dword [ebx + 0x40]
mov ecx, dword [eax + 0x32]
call dword [section..00cfg]
lea eax, [esp + 0x2c]
push eax
push sym.nss3.dll_PR_DuplicateEnvironment
push ebx
push 4
push esi
call ecx
add esp, 0x14
test eax, eax
je 0x101281f3
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x2c], eax
mov al, 1
jmp 0x101281f5
xor eax, eax
cmp dword [ebx + 0x30], 0
jne 0x1012820a
push dword [ebx + 0x3c]
mov esi, eax
call sym.nss3.dll_PR_Unlock
mov eax, esi
add esp, 4
mov edi, dword [esp + 0x2c]
test al, al
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edi
jne 0x10128220
cmp dword [ebx + 0x30], 0
jne 0x1012824a
mov esi, dword [ebx + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x101283f7
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
mov edi, dword [esp + 0x14]
mov eax, dword [ebx]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + 0xaa]
mov esi, dword [edx + 0xc]
call dword [section..00cfg]
lea eax, [esp + 0x20]
push esi
push eax
push edi
call ecx
add esp, 0xc
test eax, eax
je 0x101282f3
cmp byte [esp + 0xc], 0
mov esi, eax
jne 0x101282e2
cmp dword [ebx + 0x30], 0
jne 0x101282cb
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebx + 0x30], 0
jne 0x101282cb
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0xc], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [esp + 0x10], eax
je 0x10128423
mov edi, dword [esp + 0xc]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x10]
mov dword [edi + 8], eax
mov edi, dword [esp + 0x14]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
cmp dword [ebx + 0x30], 0
jne 0x101282ed
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
push esi
jmp 0x101283c6
xor esi, esi
lea edi, [esp + 0x1c]
mov dword [edi], esi
mov eax, dword [ebx]
mov ecx, dword [eax + 0xae]
call dword [section..00cfg]
mov eax, 0x14
lea edx, [esp + 0x40]
push edi
mov edi, dword [esp + 0x18]
push esi
push eax
push edx
mov esi, edx
push edi
call ecx
add esp, 0x14
mov ecx, dword [ebx]
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 0xae]
call dword [section..00cfg]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x30]
push eax
mov eax, 0x14
push eax
push esi
push edi
call ecx
add esp, 0x14
cmp byte [esp + 0xc], 0
jne 0x101283b2
cmp dword [ebx + 0x30], 0
jne 0x1012839b
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebx + 0x30], 0
jne 0x1012839b
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0xc], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1012843b
mov edi, dword [esp + 0xc]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov edi, dword [esp + 0x14]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
cmp dword [ebx + 0x30], 0
jne 0x101283bd
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x101283f1
push eax
call fcn.10115520
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [esp + 0x1c]
jmp 0x101283dc
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov edi, eax
jmp 0x10128239
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov edi, eax
jmp 0x101281b6
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [esp + 0x10], eax
jmp 0x101282b2
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x10128386