Function at 0x1009fa10
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 0x100a0059
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor edx, edx
mov esi, dword [eax + edx*4]
test esi, esi
je 0x100a0059
mov dword [ebp - 0x28], edx
push 0
push esi
call fcn.1009cf90
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x24], 1
jne 0x1009fa56
mov ecx, esi
xor edx, edx
call fcn.1009b6a0
mov dword [ebp - 0x14], esi
mov eax, dword [ebx + 0x14]
mov edi, dword [eax]
push dword [0x101f45d4]
mov eax, dword [sym.imp.kernel32.dll_TlsGetValue]
call eax
mov esi, eax
test eax, eax
je 0x1009ffc8
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 [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1009ffe5
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 0x1009fb83
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 0x1009faee
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.10094350
add esp, 4
push esi
call fcn.1009d090
add esp, 4
test eax, eax
je 0x100a008e
mov ebx, eax
mov dword [ebp - 0x10], edi
mov eax, dword [eax]
test eax, eax
je 0x1009fb54
xor edi, edi
push eax
call fcn.10098870
add esp, 4
test eax, eax
je 0x100a0066
mov esi, eax
push eax
push dword [ebp - 0x10]
call fcn.1009cac0
add esp, 8
test eax, eax
jne 0x100a005d
mov eax, dword [ebx + edi*4 + 4]
inc edi
test eax, eax
jne 0x1009fb24
push ebx
call fcn.10098960
add esp, 4
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x54], 0
je 0x1009fb70
mov ecx, esi
xor edx, edx
inc edx
call fcn.1009b6a0
push dword [ebp - 0x14]
call fcn.10099ca0
add esp, 4
mov ebx, dword [ebp + 8]
jmp 0x1009fc86
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x1c], eax
push 0x18
push dword [esi]
call fcn.10094240
add esp, 8
mov edi, eax
test eax, eax
je 0x1009fbb9
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.10094c30
add esp, 0xc
test eax, eax
jne 0x100a0187
call fcn.100941c0
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100a00a2
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 [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100a0002
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 0x1009fca0
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.10095380
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x1c]
jne 0x100a00a2
push eax
call fcn.100944c0
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.10094350
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 0x1009fa2b
jmp 0x100a0059
push 0
mov edi, dword [ebp - 0x1c]
push edi
call fcn.10094fc0
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
mov esi, dword [ebp - 0x10]
je 0x100a00a2
push 0x18
push edi
call fcn.10094240
add esp, 8
test eax, eax
je 0x100a00a2
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 0x1009fd28
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.10094240
add esp, 8
mov edi, eax
test eax, eax
je 0x1009fd1f
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], 0x1009a3b0
push dword [ebp - 0x14]
push eax
call fcn.10095380
add esp, 8
test eax, eax
jne 0x100a00a2
push 0
push edi
push dword [ebp - 0x18]
call fcn.10094ee0
add esp, 0xc
test eax, eax
je 0x100a00a2
push ebx
push eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0xc]
call fcn.10094c30
add esp, 0xc
test eax, eax
jne 0x100a00a2
test esi, esi
je 0x1009fe60
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 [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100a001f
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 0x100a00a5
push 0x18
mov edi, dword [ebp - 0x1c]
push edi
call fcn.10094240
add esp, 8
test eax, eax
je 0x100a00a5
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.10094240
add esp, 8
test eax, eax
je 0x100a01b7
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.10094c30
add esp, 0xc
mov dword [ebp - 0x18], 3
test eax, eax
mov ebx, 2
je 0x1009fe67
jmp 0x100a00a5
mov dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax + 0x50]
test ebx, ebx
je 0x1009fc68
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 [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100a003c
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 0x1009fefd
push dword [ebp - 0x24]
push dword [ebx]
call fcn.10095380
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 0x1009fc68
jmp 0x100a00a5
call fcn.100941c0
test eax, eax
je 0x100a01af
push 1
mov dword [ebp - 0x20], eax
push eax
call fcn.10094fc0
add esp, 8
test eax, eax
je 0x100a01a4
mov esi, eax
push dword [ebp - 0x24]
push eax
call fcn.10095380
add esp, 8
test eax, eax
jne 0x100a01a4
push 0x18
push dword [ebp - 0x20]
call fcn.10094240
add esp, 8
test eax, eax
je 0x100a01a4
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 0x1009ff85
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.10094240
add esp, 8
test eax, eax
je 0x100a01a4
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.10094c30
add esp, 0xc
test eax, eax
je 0x1009fc68
jmp 0x100a01a4
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x1009fa75
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x1009faa2
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x1009fc0c
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x1009fda1
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x1009fea0
xor eax, eax
jmp 0x100a009a
push esi
call fcn.10098840
add esp, 4
test edi, edi
je 0x100a0082
xor esi, esi
mov eax, dword [ebx + esi*4]
push dword [eax + 4]
push dword [ebp - 0x10]
call fcn.1009cc80
add esp, 8
inc esi
cmp edi, esi
jne 0x100a006c
push ebx
call fcn.10098960
add esp, 4
mov edi, dword [ebp - 0x10]
push edi
call fcn.10099ca0
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.10094350
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.10094cc0
add esp, 8
cmp ebx, 2
jb 0x100a0178
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 [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100a01c1
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 0x100a0192
push dword [ebp - 0x14]
push dword [ebx]
call fcn.10095430
add esp, 8
mov esi, dword [ebx]
mov edi, dword [ebx + 0x10]
cmp dword [ebp - 0x28], 3
jne 0x100a0154
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x100a0154
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x14]
push eax
push dword [ecx + 0x10]
call fcn.10094cc0
add esp, 8
mov dword [ebp - 0x1c], edi
test esi, esi
je 0x100a0178
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
push dword [ebp - 0x10]
push dword [eax + 0xc]
call fcn.10094cc0
add esp, 8
push esi
call fcn.10095060
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100a0192
push eax
call fcn.100944c0
jmp 0x100a018f
push dword [ebp - 0x10]
call fcn.10094350
add esp, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
push dword [eax]
call sym.nss3.dll_PR_Unlock
jmp 0x100a0094
push dword [ebp - 0x20]
call fcn.100944c0
add esp, 4
mov ebx, dword [ebp - 0x18]
jmp 0x100a00a5
mov ebx, 2
jmp 0x100a00a5
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x100a00f6