Function at 0x100a86a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
cmp dword [esi + 0x18], 0
mov eax, dword [esi + 0xc]
je 0x100a86d3
cmp dword [eax + 0x30], 0
je 0x100a86d3
mov ebx, dword [esi + 0x14]
jmp 0x100a86d6
mov ebx, dword [eax + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100a8a43
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
cmp dword [esi + 0x18], 0
je 0x100a8744
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
cmp dword [esi + 0x34], 0
je 0x100a878d
mov eax, dword [esi]
cmp eax, 0x105
je 0x100a8792
cmp eax, 0x104
mov dword [ebp - 0x28], edi
jne 0x100a87de
cmp dword [esi + 0x18], 0
mov eax, dword [esi + 0xc]
je 0x100a8959
cmp dword [eax + 0x30], 0
je 0x100a8959
lea eax, [esi + 0x14]
jmp 0x100a895c
mov edi, dword [esi + 0x20]
test edi, edi
je 0x100a892a
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x46]
mov ebx, dword [esi + 0x10]
call dword [section..00cfg]
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push edi
push ebx
call ecx
add esp, 0x14
test eax, eax
je 0x100a86ff
push eax
call fcn.100a9930
add esp, 4
jmp 0x100a892f
mov dword [ebp - 0x28], edi
jmp 0x100a87de
mov edx, 8
lea eax, [ebp - 0x1c]
mov dword [eax], edx
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0x8e]
call dword [section..00cfg]
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x1c]
push edx
push eax
mov eax, 8
push eax
push edi
push ebx
mov ebx, dword [ebp + 0xc]
call ecx
mov edx, dword [ebp + 0x1c]
add esp, 0x14
lea eax, [ebp - 0x1c]
mov eax, dword [eax]
sub edx, eax
add edi, eax
mov dword [ebp - 0x28], edi
mov dword [esi + 0x34], 0
mov dword [ebp - 0x30], 0
xor edi, edi
mov dword [ebp - 0x2c], 0
mov ecx, dword [esi]
cmp ecx, 0x105
je 0x100a8841
mov eax, 0x91
cmp ecx, 0x104
jne 0x100a887d
mov dword [ebp - 0x24], edi
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 0x7e]
mov edi, edx
call dword [section..00cfg]
lea eax, [ebp - 0x1c]
push eax
push ebx
push edi
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call ecx
add esp, 0x14
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x1c]
add dword [edx], ecx
jmp 0x100a8876
mov dword [ebp - 0x24], edi
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 0x8e]
mov edi, edx
call dword [section..00cfg]
lea eax, [ebp - 0x1c]
push eax
push ebx
push edi
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call ecx
add esp, 0x14
test eax, eax
mov ebx, dword [ebp - 0x24]
je 0x100a8898
push eax
call fcn.100a9930
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
xor eax, eax
jmp 0x100a889b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp dword [esi + 0x34], 0
je 0x100a88d7
cmp dword [esi], 0x104
jne 0x100a88d0
push dword [ebp - 0x1c]
mov edi, dword [ebp - 0x2c]
push edi
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
test edi, edi
je 0x100a88d0
push dword [ebp - 0x2c]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [esi + 0x34], 0
cmp dword [esi + 0x18], 0
je 0x100a88e2
mov eax, dword [esi + 0xc]
jmp 0x100a890f
lea eax, [esi + 0x24]
mov edx, dword [esi + 0x20]
mov ecx, esi
push eax
call fcn.100a71c0
add esp, 4
mov dword [esi + 0x20], eax
xor ecx, ecx
cmp eax, 1
sbb ecx, ecx
or ebx, ecx
mov ecx, esi
call fcn.100a79b0
cmp dword [esi + 0x18], 0
mov eax, dword [esi + 0xc]
je 0x100a891a
cmp dword [eax + 0x30], 0
je 0x100a891a
push dword [esi + 0x14]
jmp 0x100a891d
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100a8a2f
mov eax, 0xffffe001
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [esi + 0x18], 0
mov eax, dword [esi + 0xc]
je 0x100a8951
cmp dword [eax + 0x30], 0
je 0x100a8951
push dword [esi + 0x14]
jmp 0x100a8a24
push dword [eax + 0x3c]
jmp 0x100a8a24
add eax, 0x3c
push dword [eax]
call sym.nss3.dll_PR_Unlock
add esp, 4
lea eax, [ebp - 0x18]
push 8
push eax
call sym.nss3.dll_PK11_GenerateRandom
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [esi + 0x18], 0
mov eax, dword [esi + 0xc]
je 0x100a898b
cmp dword [eax + 0x30], 0
je 0x100a898b
mov edi, dword [esi + 0x14]
jmp 0x100a898e
mov edi, dword [eax + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100a8a60
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov ebx, dword [ebp + 0x14]
push ebx
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100a8a09
mov ecx, dword [esi + 0xc]
mov edi, eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx]
mov ecx, dword [eax + 0x7e]
call dword [section..00cfg]
lea eax, [ebp - 0x1c]
push eax
push edi
push 8
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
call ecx
add esp, 0x14
lea eax, [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x2c], edi
add edi, eax
mov dword [ebp - 0x30], eax
sub ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, edi
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp + 0x1c]
jmp 0x100a87ee
cmp dword [esi + 0x18], 0
mov eax, dword [esi + 0xc]
je 0x100a8a1f
cmp dword [eax + 0x30], 0
je 0x100a8a1f
add esi, 0x14
mov eax, esi
jmp 0x100a8a22
add eax, 0x3c
push dword [eax]
call sym.nss3.dll_PR_Unlock
add esp, 4
xor ebx, ebx
dec ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov edi, eax
jmp 0x100a86ec
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov ebx, eax
jmp 0x100a89a4