Function at 0x1009bc10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ecx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ecx + 0x44]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x1009bc47
push eax
call fcn.1009a7a0
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1009bc4e
jmp 0x1009be38
mov dword [ebp - 0x14], 0
mov edi, dword [ebp + 0xc]
mov esi, dword [esi]
test esi, esi
je 0x1009bc7a
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x1009be5c
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
mov esi, dword [ebp + 0x10]
mov ecx, dword [edi + 8]
xor ebx, ebx
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x1009bd53
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x62]
call dword [section..00cfg]
push esi
push edi
mov esi, dword [ebp + 8]
push esi
push dword [ebp - 0x10]
call ecx
add esp, 0x10
mov ecx, eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x10], ecx
je 0x1009bcc1
push eax
call sym.nss3.dll_PR_Unlock
mov ecx, dword [ebp - 0x10]
add esp, 4
cmp ecx, 0x12
mov edx, dword [ebp + 0x14]
ja 0x1009bdd9
mov eax, 0x60001
bt eax, ecx
jae 0x1009bdd9
test edx, edx
je 0x1009bcff
cmp dword [ebp - 0x18], 0
jne 0x1009bcff
mov ecx, edx
mov edx, dword [ebp - 0x14]
push 0
call fcn.1009a890
mov edx, dword [ebp + 0x14]
add esp, 4
test eax, eax
jne 0x1009bdec
xor eax, eax
mov ecx, dword [ebp + 0x10]
cmp ecx, 2
jb 0x1009be3b
mov ebx, dword [ebp - 0x10]
add ebx, 0xffffffef
cmp ebx, 1
ja 0x1009be3b
mov eax, dword [edi + 8]
inc eax
cmp eax, 1
ja 0x1009bd46
mov dword [edi + 8], 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push edx
push 1
push edi
push esi
mov ebx, ecx
call fcn.1009bc10
mov edx, dword [ebp + 0x14]
mov ecx, ebx
add esp, 0x18
add edi, 0xc
dec ecx
jne 0x1009bd1c
xor eax, eax
jmp 0x1009be3b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x62]
call dword [section..00cfg]
push esi
push edi
push dword [ebp + 8]
push dword [ebp - 0x10]
call ecx
add esp, 0x10
cmp eax, 0x12
ja 0x1009be1c
mov ecx, 0x60001
bt ecx, eax
jae 0x1009be1c
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1009bc8d
lea ebx, [edi + 8]
mov ecx, dword [ebx]
lea eax, [ecx + 1]
cmp eax, 1
ja 0x1009bda4
xor eax, eax
mov dword [ebx - 4], eax
mov dword [ebx], eax
jmp 0x1009bdc9
mov edx, dword [ebx - 8]
cmp edx, 0xce534352
je 0x1009bdb6
cmp edx, 3
je 0x1009bdb6
mov eax, ecx
push eax
push dword [ebp + 0x14]
call fcn.1009a460
add esp, 8
mov dword [ebx - 4], eax
test eax, eax
je 0x1009be43
add ebx, 0xc
dec esi
jne 0x1009bd91
mov esi, dword [ebp + 0x10]
mov ebx, esi
jmp 0x1009bc8d
push 0x22
call fcn.1009ac70
mov edx, dword [ebp + 0x14]
add esp, 4
cmp dword [ebp - 0x18], 0
jne 0x1009be38
test edx, edx
je 0x1009bdfe
mov ecx, edx
mov edx, dword [ebp - 0x14]
push 1
call fcn.1009a890
jmp 0x1009be35
xor eax, eax
dec eax
test ebx, ebx
je 0x1009be3b
mov esi, eax
add edi, 4
push dword [edi]
call fcn.1009a580
add esp, 4
add edi, 0xc
dec ebx
jne 0x1009be0a
jmp 0x1009be58
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
test eax, eax
je 0x1009be2e
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
push 0x22
call fcn.1009ac70
add esp, 4
xor eax, eax
dec eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
xor esi, esi
dec esi
test eax, eax
je 0x1009be58
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, esi
jmp 0x1009be3b
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov ebx, eax
jmp 0x1009bc6d