Function at 0x1009ef10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov ecx, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
mov edi, dword [eax + 0x14]
lock inc dword [edi + 8]
push edi
call fcn.1009c6a0
add esp, 4
mov esi, eax
push edi
call fcn.1009c620
add esp, 4
test esi, esi
je 0x1009ef6c
mov eax, dword [ebp + 0xc]
cmp eax, 0xce534351
je 0x1009ef73
cmp eax, 1
mov edi, dword [ebp + 8]
je 0x1009ef7f
cmp eax, 0xce534353
jne 0x1009f20c
xor eax, eax
inc eax
mov dword [ebp - 0x18], eax
jmp 0x1009ef86
xor ecx, ecx
jmp 0x1009f20f
mov dword [ebp - 0x18], 2
mov edi, dword [ebp + 8]
jmp 0x1009ef86
mov dword [ebp - 0x18], 0
mov ebx, dword [edi + 4]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1009f4a4
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
cmp dword [edi + eax*4 + 0xc], 0
je 0x1009f201
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
lock inc dword [esi + 8]
push dword [esi + 0x48]
call sym.nss3.dll_PK11_IsFriendly
add esp, 4
test eax, eax
jne 0x1009eff7
mov eax, dword [esi + 0x48]
cmp dword [eax + 0x24], 0
je 0x1009eff0
push 0
push eax
call sym.nss3.dll_PK11_IsLoggedIn
add esp, 8
test eax, eax
je 0x1009f253
mov dword [edi + 8], 1
push esi
call fcn.1009c620
add esp, 4
mov eax, dword [ebp - 0x18]
cmp dword [edi + eax*4 + 0x18], 0
je 0x1009f21f
mov esi, dword [edi + eax*4 + 0x24]
test esi, esi
je 0x1009f216
call fcn.1009a3e0
test eax, eax
je 0x1009f216
mov dword [ebp - 0x20], esi
push 0x20
mov dword [ebp - 0x2c], eax
push eax
call fcn.1009a460
add esp, 8
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1009f3d1
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], 0
cmp eax, 1
mov ecx, 0
sbb ecx, ecx
or ecx, eax
mov dword [ebp - 0x34], ecx
mov ebx, 0
je 0x1009f2de
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov ebx, 0
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1009f2de
mov eax, 8
xor esi, esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], esi
mov ebx, 0
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0x10]
je 0x1009f0ee
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 0xc]
xor ebx, ebx
mov dword [ebp - 0x38], esi
test esi, esi
je 0x1009f0ec
lea eax, [ebx + ebx*2]
mov edx, dword [edi + eax*4]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 8]
add ecx, 8
cmp dword [ecx - 8], edx
je 0x1009f0c2
add ecx, 0xc
dec esi
jne 0x1009f0b5
jmp 0x1009f0ee
mov edi, dword [ebp + 0x10]
mov edx, dword [edi + eax*4 + 8]
cmp edx, dword [ecx]
jne 0x1009f0ee
push edx
push dword [ecx - 4]
push dword [edi + eax*4 + 4]
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x1009f0ee
inc ebx
cmp ebx, dword [ebp + 0x14]
mov esi, dword [ebp - 0x38]
jne 0x1009f0a2
jmp 0x1009f0f3
xor ebx, ebx
cmp ebx, dword [ebp + 0x14]
jne 0x1009f12a
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov dword [ecx + esi*4], eax
inc esi
mov edi, dword [ebp - 0x30]
cmp esi, edi
jne 0x1009f132
lea eax, [edi*8]
push eax
push ecx
call fcn.1009a980
add esp, 8
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1009f3d1
lea eax, [edi + edi]
mov esi, edi
jmp 0x1009f134
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x24]
jmp 0x1009f134
mov eax, edi
cmp esi, dword [ebp - 0x34]
jae 0x1009f150
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 4]
add ecx, 4
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], edx
test edx, edx
jne 0x1009f083
test esi, esi
je 0x1009f2dc
lea eax, [esi*4 + 4]
push eax
push 0
call fcn.1009a460
add esp, 8
test eax, eax
je 0x1009f3d1
mov ebx, eax
mov dword [ebp - 0x24], esi
test esi, esi
jle 0x1009f2de
xor edi, edi
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + edi*4]
mov ebx, dword [eax + 4]
push 0x10
push 0
call fcn.1009a460
add esp, 8
test eax, eax
je 0x1009f38b
mov esi, eax
mov eax, dword [ebx]
mov dword [esi], eax
mov eax, dword [ebx + 4]
lock inc dword [eax + 8]
mov dword [esi + 4], eax
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x1009f1f0
mov dword [ebp - 0x20], eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
inc ebx
push ebx
push 0
call fcn.1009a460
add esp, 8
test eax, eax
je 0x1009f1ed
push ebx
push dword [ebp - 0x20]
push eax
mov ebx, eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, ebx
add esp, 0xc
mov dword [esi + 0xc], eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx + edi*4], esi
inc edi
cmp dword [ebp - 0x24], edi
jne 0x1009f184
jmp 0x1009f2de
xor eax, eax
dec eax
mov dword [ebp - 0x1c], eax
jmp 0x1009f3e8
xor ecx, ecx
dec ecx
xor ebx, ebx
jmp 0x1009f3f6
mov dword [ebp - 0x1c], 0
jmp 0x1009f24c
cmp dword [edi + eax*4 + 0xc], 0
je 0x1009f00e
lea esi, [ebp - 0x14]
push esi
push 0xa
push 3
push dword [ebp + 0xc]
push 0
push dword [edi]
call fcn.1009db00
add esp, 0x18
mov ebx, eax
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1009f278
xor ebx, ebx
jmp 0x1009f3e8
cmp dword [edi + 8], 0
je 0x1009f267
mov ecx, edi
call fcn.1009ed10
mov dword [edi + 8], 0
push esi
call fcn.1009c620
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x1009f00e
test ebx, ebx
je 0x1009f2b7
cmp dword [ebx], 0
je 0x1009f2b7
xor esi, esi
mov eax, 4
dec esi
cmp dword [ebx + eax], 0
lea eax, [eax + 4]
jne 0x1009f288
mov ecx, esi
neg ecx
mov dword [ebp - 0x20], ecx
cmp ecx, 0xa
jb 0x1009f2ee
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword [edi + ecx*4 + 0xc], eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [edi + ecx*4 + 0x24], eax
jmp 0x1009f36e
xor eax, eax
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
mov dword [edi + ecx*4 + 0x24], eax
push ebx
call fcn.1009a580
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [edi + eax*4 + 0x18], 1
jmp 0x1009f37a
xor ebx, ebx
push dword [ebp - 0x2c]
call fcn.1009a6f0
add esp, 4
jmp 0x1009f3e5
push eax
push 0
call fcn.1009a460
add esp, 8
xor ecx, ecx
test eax, eax
sete cl
neg ecx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
mov dword [edi + edx*4 + 0x24], eax
test eax, eax
je 0x1009f36e
test esi, esi
je 0x1009f2c3
xor esi, esi
mov ecx, dword [ebx + esi*4]
cmp edx, 1
je 0x1009f32f
test edx, edx
jne 0x1009f33c
mov edx, 0x101a76c8
lea eax, [ebp - 0x14]
push eax
push 0xa
jmp 0x1009f347
mov edx, 0x101a76f0
lea eax, [ebp - 0x14]
push eax
push 0xb
jmp 0x1009f347
mov edx, 0x101a771c
lea eax, [ebp - 0x14]
push eax
push 7
call fcn.1009fc80
add esp, 8
mov edx, dword [ebp - 0x18]
mov ecx, dword [edi + edx*4 + 0x24]
mov dword [ecx + esi*4], eax
cmp dword [ebp - 0x14], 0
jne 0x1009f413
inc esi
cmp dword [ebp - 0x20], esi
jne 0x1009f316
jmp 0x1009f2c3
push ebx
call fcn.1009a580
mov eax, dword [ebp - 0x18]
add esp, 4
xor ebx, ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x1009f3e8
jmp 0x1009f00e
mov ebx, dword [ebp - 0x18]
mov dword [ebx + edi*4], 0
mov esi, dword [ebx]
test esi, esi
je 0x1009f3c8
mov edi, ebx
add edi, 4
push dword [esi + 4]
call fcn.1009cd70
add esp, 4
push dword [esi + 0xc]
call fcn.1009a580
add esp, 4
push esi
call fcn.1009a580
add esp, 4
mov esi, dword [edi]
add edi, 4
test esi, esi
jne 0x1009f3a0
push ebx
call fcn.1009a580
add esp, 4
push dword [ebp - 0x2c]
call fcn.1009a6f0
add esp, 4
mov dword [ebp - 0x1c], 0
xor ebx, ebx
mov edi, dword [ebp + 8]
push dword [edi + 4]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x1009f3ff
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
test esi, esi
mov ecx, edi
je 0x1009f448
xor edi, edi
mov eax, dword [ecx + edx*4 + 0x24]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
lock inc dword [eax + 8]
mov eax, dword [ecx + edx*4 + 0x24]
mov eax, dword [eax + edi*4]
push dword [eax]
call fcn.1009a6f0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
add esp, 4
inc edi
cmp esi, edi
jne 0x1009f41b
push dword [ecx + edx*4 + 0x24]
mov esi, edx
mov edi, ecx
call fcn.1009a580
add esp, 4
mov dword [edi + esi*4 + 0x24], 0
mov esi, dword [ebx]
test esi, esi
je 0x1009f493
mov edi, ebx
add edi, 4
push dword [esi + 4]
call fcn.1009cd70
add esp, 4
push dword [esi + 0xc]
call fcn.1009a580
add esp, 4
push esi
call fcn.1009a580
add esp, 4
mov esi, dword [edi]
add edi, 4
test esi, esi
jne 0x1009f46b
push ebx
call fcn.1009a580
add esp, 4
mov edi, dword [ebp + 8]
jmp 0x1009f2cc
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x1009ef9f