Function at 0x100a9c60
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 [0x101f1014]
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 0x100a9c93
cmp dword [eax + 0x30], 0
je 0x100a9c93
mov ebx, dword [esi + 0x14]
jmp 0x100a9c96
mov ebx, dword [eax + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100aa003
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
cmp dword [esi + 0x18], 0
je 0x100a9d04
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
cmp dword [esi + 0x34], 0
je 0x100a9d4d
mov eax, dword [esi]
cmp eax, 0x105
je 0x100a9d52
cmp eax, 0x104
mov dword [ebp - 0x28], edi
jne 0x100a9d9e
cmp dword [esi + 0x18], 0
mov eax, dword [esi + 0xc]
je 0x100a9f19
cmp dword [eax + 0x30], 0
je 0x100a9f19
lea eax, [esi + 0x14]
jmp 0x100a9f1c
mov edi, dword [esi + 0x20]
test edi, edi
je 0x100a9eea
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 0x100a9cbf
push eax
call fcn.100aaef0
add esp, 4
jmp 0x100a9eef
mov dword [ebp - 0x28], edi
jmp 0x100a9d9e
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 0x100a9e01
mov eax, 0x91
cmp ecx, 0x104
jne 0x100a9e3d
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 0x100a9e36
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 0x100a9e58
push eax
call fcn.100aaef0
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 0x100a9e5b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp dword [esi + 0x34], 0
je 0x100a9e97
cmp dword [esi], 0x104
jne 0x100a9e90
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 0x100a9e90
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 0x100a9ea2
mov eax, dword [esi + 0xc]
jmp 0x100a9ecf
lea eax, [esi + 0x24]
mov edx, dword [esi + 0x20]
mov ecx, esi
push eax
call fcn.100a8780
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.100a8f70
cmp dword [esi + 0x18], 0
mov eax, dword [esi + 0xc]
je 0x100a9eda
cmp dword [eax + 0x30], 0
je 0x100a9eda
push dword [esi + 0x14]
jmp 0x100a9edd
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100a9fef
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 0x100a9f11
cmp dword [eax + 0x30], 0
je 0x100a9f11
push dword [esi + 0x14]
jmp 0x100a9fe4
push dword [eax + 0x3c]
jmp 0x100a9fe4
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 0x100a9f4b
cmp dword [eax + 0x30], 0
je 0x100a9f4b
mov edi, dword [esi + 0x14]
jmp 0x100a9f4e
mov edi, dword [eax + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100aa020
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 0x100a9fc9
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 0x100a9dae
cmp dword [esi + 0x18], 0
mov eax, dword [esi + 0xc]
je 0x100a9fdf
cmp dword [eax + 0x30], 0
je 0x100a9fdf
add esi, 0x14
mov eax, esi
jmp 0x100a9fe2
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.10157a00
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov edi, eax
jmp 0x100a9cac
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov ebx, eax
jmp 0x100a9f64