Function at 0x100a3940
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov dword [esp + 0x10], edx
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [esp + 0x38], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
mov dword [ecx], 0
lea esi, [edi + 0xc]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], edi
mov esi, dword [esi]
cmp esi, dword [esp + 0x14]
je 0x100a3a4b
mov dword [esp + 0x18], esi
mov esi, dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, 1
je 0x100a39a6
cmp eax, 2
jne 0x100a39c8
push dword [esi + 8]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
jmp 0x100a39c8
mov ebx, dword [esi + 8]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100a3a2e
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
cmp dword [esi + 0x14], 0
je 0x100a39f1
xor edi, edi
mov eax, dword [esi + 0x10]
push dword [esp + 0x10]
push dword [eax + edi*4]
call fcn.1009eb10
add esp, 8
test eax, eax
sete bl
jne 0x100a39f3
inc edi
cmp edi, dword [esi + 0x14]
jb 0x100a39d0
jmp 0x100a39f3
mov bl, 1
mov eax, dword [esi + 0xc]
cmp eax, 1
je 0x100a3a11
cmp eax, 2
mov edi, dword [esp + 0xc]
jne 0x100a3a20
push dword [esi + 8]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
jmp 0x100a3a20
push dword [esi + 8]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov edi, dword [esp + 0xc]
test bl, bl
mov esi, dword [esp + 0x18]
jne 0x100a3979
jmp 0x100a3aa3
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov edi, eax
jmp 0x100a39bb
push dword [edi]
call fcn.1009a7a0
add esp, 4
test eax, eax
je 0x100a3a93
mov ebx, eax
mov eax, dword [esp + 0xc]
mov edi, dword [eax]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x24]
call dword [section..00cfg]
lea esi, [esp + 0x20]
push edi
mov edi, dword [esp + 0x10]
push esi
push dword [esp + 0x18]
call ecx
add esp, 0xc
test eax, eax
je 0x100a3acd
mov ecx, dword [edi]
mov edx, ebx
push 1
call fcn.1009a890
add esp, 4
push dword [esp + 0x10]
call fcn.1009ea70
add esp, 4
xor esi, esi
jmp 0x100a3ab8
push dword [esp + 0x10]
call fcn.1009ea70
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
mov edi, dword [eax]
cmp edi, eax
je 0x100a3b13
lea ebx, [esp + 0x1c]
lea eax, [edi + 0x10]
push ebx
push esi
push eax
call fcn.1009b1a0
add esp, 0xc
test eax, eax
je 0x100a3b0b
lea eax, [edi + 0x18]
push ebx
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.1009b1a0
add esp, 0xc
test eax, eax
jne 0x100a3b91
mov edi, dword [edi]
cmp edi, dword [esp + 0x14]
jne 0x100a3adf
push 0x20
mov edi, dword [esp + 0x10]
push dword [edi]
call fcn.1009a460
add esp, 8
test eax, eax
mov ebx, dword [esp + 0x18]
je 0x100a3a85
push dword [edi + 0x2c]
push dword [edi + 8]
push dword [edi + 4]
push dword [esp + 0x1c]
push 0
mov esi, eax
call fcn.100a2c70
add esp, 0x14
mov dword [esi + 0xc], eax
test eax, eax
je 0x100a3a85
mov edx, esi
movsd xmm0, qword [esp + 0x20]
movsd qword [esi + 0x10], xmm0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], eax
mov dword [esi + 8], 0
mov dword [esi + 4], esi
mov eax, dword [esp + 0x14]
mov dword [esi], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x10]
mov dword [eax], esi
mov dword [edi + 0x10], esi
inc dword [edi + 0x14]
jmp 0x100a3bb2
test edi, edi
je 0x100a3b13
push dword [esp + 0x10]
mov esi, edi
push dword [edi + 0xc]
call fcn.100a2d30
add esp, 8
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
mov ecx, dword [edi]
mov edx, ebx
push 0
call fcn.1009a890
add esp, 4
jmp 0x100a3ab8