Function at 0x1009e450
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
cmp dword [ebp + 0x10], 0
je 0x1009ea99
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor edx, edx
mov esi, dword [eax + edx*4]
test esi, esi
je 0x1009ea99
mov dword [ebp - 0x28], edx
push 0
push esi
call fcn.1009b9d0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x24], 1
jne 0x1009e496
mov ecx, esi
xor edx, edx
call fcn.1009a0e0
mov dword [ebp - 0x14], esi
mov eax, dword [ebx + 0x14]
mov edi, dword [eax]
push dword [0x101f25a4]
mov eax, dword [sym.imp.kernel32.dll_TlsGetValue]
call eax
mov esi, eax
test eax, eax
je 0x1009ea08
lea eax, [edi + 0x1c]
push eax
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
call eax
mov dword [edi + 8], esi
mov eax, dword [ebx + 0x14]
mov ebx, dword [eax + 8]
mov edi, dword [ebx + 8]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1009ea25
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov esi, dword [ebp - 0x14]
push esi
push dword [ebx + 0xc]
call sym.nss3.dll_PL_HashTableLookup
add esp, 8
mov edi, eax
push dword [ebx + 8]
call sym.nss3.dll_PR_Unlock
add esp, 4
test edi, edi
je 0x1009e5c3
inc dword [edi + 4]
call sym.nss3.dll_PR_Now
mov dword [edi + 0xc], edx
mov dword [edi + 8], eax
mov edi, dword [edi]
test edi, edi
mov eax, dword [ebp + 8]
je 0x1009e52e
lock inc dword [edi + 4]
mov eax, dword [eax + 0x14]
push dword [eax]
call sym.nss3.dll_PR_Unlock
add esp, 4
push dword [ebp - 0x10]
call fcn.10092db0
add esp, 4
push esi
call fcn.1009bad0
add esp, 4
test eax, eax
je 0x1009eace
mov ebx, eax
mov dword [ebp - 0x10], edi
mov eax, dword [eax]
test eax, eax
je 0x1009e594
xor edi, edi
push eax
call fcn.100972d0
add esp, 4
test eax, eax
je 0x1009eaa6
mov esi, eax
push eax
push dword [ebp - 0x10]
call fcn.1009b500
add esp, 8
test eax, eax
jne 0x1009ea9d
mov eax, dword [ebx + edi*4 + 4]
inc edi
test eax, eax
jne 0x1009e564
push ebx
call fcn.100973c0
add esp, 4
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x54], 0
je 0x1009e5b0
mov ecx, esi
xor edx, edx
inc edx
call fcn.1009a0e0
push dword [ebp - 0x14]
call fcn.100986e0
add esp, 4
mov ebx, dword [ebp + 8]
jmp 0x1009e6c6
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x1c], eax
push 0x18
push dword [esi]
call fcn.10092ca0
add esp, 8
mov edi, eax
test eax, eax
je 0x1009e5f9
mov dword [edi], esi
mov dword [edi + 4], 1
call sym.nss3.dll_PR_Now
mov dword [edi + 0xc], edx
mov dword [edi + 8], eax
mov dword [edi + 0x14], 0
push edi
push esi
mov eax, dword [ebp - 0x1c]
push dword [eax + 8]
call fcn.10093690
add esp, 0xc
test eax, eax
jne 0x1009ebc7
call fcn.10092c20
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1009eae2
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebp - 0x14]
add eax, 0x40
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], ecx
mov edi, dword [ecx + 0xc]
mov ebx, dword [edi + 8]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1009ea42
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov eax, dword [ebp - 0x18]
push eax
push dword [edi + 0xc]
call sym.nss3.dll_PL_HashTableLookup
add esp, 8
mov ebx, eax
push dword [edi + 8]
call sym.nss3.dll_PR_Unlock
add esp, 4
test ebx, ebx
je 0x1009e6e0
inc dword [ebx + 4]
call sym.nss3.dll_PR_Now
mov dword [ebx + 0xc], edx
mov dword [ebx + 8], eax
push dword [ebp - 0x14]
push dword [ebx]
call fcn.10093de0
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x1c]
jne 0x1009eae2
push eax
call fcn.10092f20
add esp, 4
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
push dword [eax]
call sym.nss3.dll_PR_Unlock
add esp, 4
push dword [ebp - 0x10]
call fcn.10092db0
add esp, 4
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x28]
mov dword [ecx + edx*4], esi
mov eax, ecx
inc edx
cmp edx, dword [ebp + 0x10]
jne 0x1009e46b
jmp 0x1009ea99
push 0
mov edi, dword [ebp - 0x1c]
push edi
call fcn.10093a20
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
mov esi, dword [ebp - 0x10]
je 0x1009eae2
push 0x18
push edi
call fcn.10092ca0
add esp, 8
test eax, eax
je 0x1009eae2
mov ebx, eax
mov eax, dword [ebp - 0x24]
mov dword [ebx], eax
mov dword [ebx + 4], 1
call sym.nss3.dll_PR_Now
mov dword [ebx + 0xc], edx
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], 0
test esi, esi
je 0x1009e768
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
inc esi
push esi
push edi
call fcn.10092ca0
add esp, 8
mov edi, eax
test eax, eax
je 0x1009e75f
push esi
push dword [ebp - 0x10]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebx + 0x14], edi
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x14], 0x10098df0
push dword [ebp - 0x14]
push eax
call fcn.10093de0
add esp, 8
test eax, eax
jne 0x1009eae2
push 0
push edi
push dword [ebp - 0x18]
call fcn.10093940
add esp, 0xc
test eax, eax
je 0x1009eae2
push ebx
push eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0xc]
call fcn.10093690
add esp, 0xc
test eax, eax
jne 0x1009eae2
test esi, esi
je 0x1009e8a0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
mov edi, dword [eax + 0x10]
mov ebx, dword [edi + 8]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1009ea5f
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
push dword [ebp - 0x10]
push dword [edi + 0xc]
call sym.nss3.dll_PL_HashTableLookup
add esp, 8
mov esi, eax
push dword [edi + 8]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov ebx, 2
test esi, esi
jne 0x1009eae5
push 0x18
mov edi, dword [ebp - 0x1c]
push edi
call fcn.10092ca0
add esp, 8
test eax, eax
je 0x1009eae5
mov ebx, eax
mov eax, dword [ebp - 0x24]
mov dword [ebx], eax
mov dword [ebx + 4], 1
call sym.nss3.dll_PR_Now
mov dword [ebx + 0xc], edx
mov dword [ebx + 8], eax
mov dword [ebx + 0x14], 0
push dword [ebp - 0x10]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
inc esi
push esi
push edi
call fcn.10092ca0
add esp, 8
test eax, eax
je 0x1009ebf7
mov edi, eax
push esi
push dword [ebp - 0x10]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push ebx
push edi
mov eax, dword [ebp - 0x18]
push dword [eax + 0x10]
call fcn.10093690
add esp, 0xc
mov dword [ebp - 0x18], 3
test eax, eax
mov ebx, 2
je 0x1009e8a7
jmp 0x1009eae5
mov dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax + 0x50]
test ebx, ebx
je 0x1009e6a8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1009ea7c
mov edi, dword [ebp - 0x20]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
push ebx
mov esi, dword [ebp - 0x30]
push dword [esi + 0xc]
call sym.nss3.dll_PL_HashTableLookup
add esp, 8
mov ebx, eax
push dword [esi + 8]
call sym.nss3.dll_PR_Unlock
add esp, 4
test ebx, ebx
je 0x1009e93d
push dword [ebp - 0x24]
push dword [ebx]
call fcn.10093de0
add esp, 8
mov esi, eax
inc dword [ebx + 4]
call sym.nss3.dll_PR_Now
mov dword [ebx + 0xc], edx
mov dword [ebx + 8], eax
mov ebx, dword [ebp - 0x18]
test esi, esi
je 0x1009e6a8
jmp 0x1009eae5
call fcn.10092c20
test eax, eax
je 0x1009ebef
push 1
mov dword [ebp - 0x20], eax
push eax
call fcn.10093a20
add esp, 8
test eax, eax
je 0x1009ebe4
mov esi, eax
push dword [ebp - 0x24]
push eax
call fcn.10093de0
add esp, 8
test eax, eax
jne 0x1009ebe4
push 0x18
push dword [ebp - 0x20]
call fcn.10092ca0
add esp, 8
test eax, eax
je 0x1009ebe4
mov ebx, eax
mov dword [eax], esi
mov dword [eax + 4], 1
call sym.nss3.dll_PR_Now
mov dword [ebx + 0xc], edx
mov dword [ebx + 8], eax
mov esi, dword [ebp - 0x20]
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], 0
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + 0x50]
xor eax, eax
inc eax
test edi, edi
je 0x1009e9c5
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
inc eax
mov dword [ebp - 0x24], edi
mov edi, eax
push eax
push esi
call fcn.10092ca0
add esp, 8
test eax, eax
je 0x1009ebe4
mov esi, eax
push edi
push dword [ebp - 0x24]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push ebx
push esi
mov eax, dword [ebp - 0x2c]
push dword [eax + 0x14]
call fcn.10093690
add esp, 0xc
test eax, eax
je 0x1009e6a8
jmp 0x1009ebe4
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x1009e4b5
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x1009e4e2
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x1009e64c
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x1009e7e1
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x1009e8e0
xor eax, eax
jmp 0x1009eada
push esi
call fcn.100972a0
add esp, 4
test edi, edi
je 0x1009eac2
xor esi, esi
mov eax, dword [ebx + esi*4]
push dword [eax + 4]
push dword [ebp - 0x10]
call fcn.1009b6c0
add esp, 8
inc esi
cmp edi, esi
jne 0x1009eaac
push ebx
call fcn.100973c0
add esp, 4
mov edi, dword [ebp - 0x10]
push edi
call fcn.100986e0
add esp, 4
xor eax, eax
dec eax
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
inc ebx
push dword [ebp - 0x10]
call fcn.10092db0
add esp, 4
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
mov edi, dword [ebp - 0x14]
push edi
push dword [eax + 8]
call fcn.10093720
add esp, 8
cmp ebx, 2
jb 0x1009ebb8
mov dword [ebp - 0x28], ebx
mov eax, dword [esi + 0x14]
lea ecx, [edi + 0x40]
mov dword [ebp - 0x10], ecx
mov edi, dword [eax + 0xc]
mov ebx, dword [edi + 8]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1009ec01
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov eax, dword [ebp - 0x10]
push eax
push dword [edi + 0xc]
call sym.nss3.dll_PL_HashTableLookup
add esp, 8
mov ebx, eax
push dword [edi + 8]
call sym.nss3.dll_PR_Unlock
add esp, 4
test ebx, ebx
je 0x1009ebd2
push dword [ebp - 0x14]
push dword [ebx]
call fcn.10093e90
add esp, 8
mov esi, dword [ebx]
mov edi, dword [ebx + 0x10]
cmp dword [ebp - 0x28], 3
jne 0x1009eb94
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x1009eb94
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x14]
push eax
push dword [ecx + 0x10]
call fcn.10093720
add esp, 8
mov dword [ebp - 0x1c], edi
test esi, esi
je 0x1009ebb8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
push dword [ebp - 0x10]
push dword [eax + 0xc]
call fcn.10093720
add esp, 8
push esi
call fcn.10093ac0
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1009ebd2
push eax
call fcn.10092f20
jmp 0x1009ebcf
push dword [ebp - 0x10]
call fcn.10092db0
add esp, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
push dword [eax]
call sym.nss3.dll_PR_Unlock
jmp 0x1009ead4
push dword [ebp - 0x20]
call fcn.10092f20
add esp, 4
mov ebx, dword [ebp - 0x18]
jmp 0x1009eae5
mov ebx, 2
jmp 0x1009eae5
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x1009eb36