Function at 0x100a8a80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x88
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp + 0x30]
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov edx, dword [0x101ef014]
xor edx, ebp
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0x3c]
cmp edi, 0x4020
jg 0x100a8b19
cmp edi, 0xce53436c
je 0x100a8b28
mov esi, dword [ebp + 0x34]
cmp edi, 0x1087
je 0x100a8b7f
cmp edi, 0x1088
jne 0x100a8d19
lea ebx, [ebp - 0x6c]
mov edi, dword [ebp + 0x3c]
mov dword [ebx], edi
mov edi, dword [ebp + 0x14]
mov dword [ebx + 4], edi
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x14], ecx
mov dword [ebp - 0x78], ebx
mov dword [ebx + 0x18], esi
mov ebx, 0x18
mov al, 1
mov dword [ebp - 0x74], 0
mov ecx, dword [ebp + 0x3c]
mov dword [ebp - 0x70], ecx
jmp 0x100a8bad
add edi, 0xffffbfdf
cmp edi, 1
ja 0x100a8d19
lea edi, [ebp - 0x6c]
mov dword [edi], ebx
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov ebx, 0xc
mov cl, 1
mov dword [ebp - 0x74], ecx
cmp dword [esi], 0x82000104
jne 0x100a8b72
mov ecx, esi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.100a9270
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x100a8f13
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x78], edi
xor eax, eax
mov ebx, 0xc
jmp 0x100a8bb0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x78], edi
xor eax, eax
jmp 0x100a8bb0
lea edi, [ebp - 0x6c]
mov dword [ebp - 0x70], ebx
mov dword [edi], ebx
mov dword [edi + 4], eax
mov dword [edi + 0xc], edx
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], eax
mov dword [edi + 0x10], ecx
shl esi, 3
mov dword [ebp - 0x78], edi
mov dword [edi + 0x14], esi
mov ebx, 0x18
mov al, 1
mov dword [ebp - 0x74], 0
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x2c]
mov edi, dword [ebp + 0x28]
mov dword [ebp - 0x50], edx
mov dword [edi], 0
movzx ecx, byte [esi + 3]
shl ecx, 0x18
cmp ecx, 0x82000000
jne 0x100a8f01
mov dword [ebp - 0x7c], ebx
mov ebx, dword [ebp + 0x1c]
cmp dword [esi + 0x38], 0
je 0x100a8c1b
mov dword [ebp - 0x14], edx
mov ecx, dword [esi + 0x3c]
mov dword [ebp - 0x7c], ecx
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], ecx
mov dword [edi], ecx
mov ecx, dword [esi]
cmp ecx, 0x82000104
je 0x100a8c96
cmp ecx, 0x82000105
jne 0x100a8f01
mov cl, 1
mov dword [ebp - 0x88], ecx
jmp 0x100a8ca0
cmp dword [esi + 0x18], 0
mov eax, dword [esi + 0xc]
je 0x100a8c2f
cmp dword [eax + 0x30], 0
je 0x100a8c2f
mov ebx, dword [esi + 0x14]
jmp 0x100a8c32
mov ebx, dword [eax + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100a9222
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
cmp dword [esi + 0x18], 0
je 0x100a8d25
mov eax, 0x91
mov ecx, 0x7dfffefc
add ecx, dword [esi]
cmp ecx, 6
ja case.0x100a8c74.2
jmp dword [ecx*4 + 0x101bb1a8]
lea edi, [ebp - 0x50]
mov eax, dword [ebp + 0x2c]
mov dword [edi], eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0x126]
jmp 0x100a8f58
mov dword [ebp - 0x88], 0
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0x4020
jg 0x100a8cd1
cmp ecx, 0xce53436c
je 0x100a8d72
cmp ecx, 0x1087
je 0x100a8e3f
cmp ecx, 0x1088
je 0x100a8f01
jmp 0x100a8d19
lea eax, [ecx - 0x4021]
cmp eax, 1
ja 0x100a8d19
cmp byte [ebp - 0x74], 0
je 0x100a8f01
mov dword [ebp - 0x8c], edx
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x70]
mov dword [eax], ecx
mov edx, dword [ebp - 0x78]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov ecx, dword [ebp + 0x20]
mov dword [eax + 0xc], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x84], ecx
mov ecx, 0x10
jmp 0x100a8db1
push 0
push 0xffffe006
jmp 0x100a8f08
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x100a9029
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x74], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x46]
mov edi, dword [esi + 0x10]
call dword [section..00cfg]
push 0
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push ebx
push edi
call ecx
add esp, 0x14
test eax, eax
je 0x100a8c5f
push eax
call fcn.100a9930
add esp, 4
jmp 0x100a902e
cmp byte [ebp - 0x74], 0
je 0x100a8f01
mov dword [ebp - 0x8c], edx
mov ecx, dword [ebp - 0x78]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x70]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov ecx, dword [ebp + 0x20]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0x10
mov ecx, 0x14
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x74], 0x10
cmp byte [ebp - 0x88], 0
jne 0x100a8ea3
mov edx, dword [ebp + 0x3c]
mov esi, dword [ebp + 0x2c]
cmp esi, edx
jl 0x100a8f01
mov eax, dword [ebp - 0x74]
lea ecx, [eax + edx]
mov dword [ebp - 0x70], 0
mov eax, dword [ebp + 0x24]
cmp ecx, esi
mov ebx, dword [ebp + 0x38]
jbe 0x100a8e0c
mov esi, ecx
push ecx
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100a8f10
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x70], eax
mov edx, dword [ebp + 0x3c]
lea ecx, [ebp - 0x14]
push edx
mov dword [ebp - 0x94], ebx
push ebx
mov dword [ebp - 0x8c], esi
push esi
push ecx
mov dword [ebp - 0x80], eax
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x7c]
mov esi, dword [ebp + 8]
push dword [esi + 4]
call sym.nss3.dll_PK11_Encrypt
add esp, 0x20
mov ebx, eax
jmp 0x100a909c
test al, al
je 0x100a8f01
mov dword [ebp - 0x8c], edx
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x70]
mov dword [ecx], eax
mov ebx, dword [ebp - 0x78]
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
lea edx, [eax*8]
mov dword [ecx + 8], edx
mov edx, dword [ebp + 0x1c]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp + 0x20]
mov dword [ecx + 0x10], edx
mov edx, dword [ebx + 0x14]
mov dword [ecx + 0x14], edx
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x84], ecx
add edx, 7
shr edx, 3
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x30], 0x18
cmp byte [ebp - 0x88], 0
je 0x100a914a
mov ecx, dword [ebp + 0x3c]
mov edi, dword [ebp + 0x38]
lea eax, [edi + ecx]
mov edx, dword [ebp - 0x74]
add ecx, edx
cmp dword [ebp - 0x84], eax
mov dword [ebp - 0x80], ecx
je 0x100a905d
mov dword [ebp - 0x74], edx
push ecx
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100a8f10
mov ebx, eax
mov eax, dword [ebp + 0x3c]
push eax
push edi
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, ebx
add eax, dword [ebp + 0x3c]
push dword [ebp - 0x74]
push dword [ebp - 0x84]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x70], ebx
mov edi, ebx
jmp 0x100a9064
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, ebx
add esp, 0x88
pop esi
pop edi
pop ebx
pop ebp
ret
lea edi, [ebp - 0x50]
mov eax, dword [ebp + 0x2c]
mov dword [edi], eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0x14e]
jmp 0x100a8f90
lea edi, [ebp - 0x50]
mov eax, dword [ebp + 0x2c]
mov dword [edi], eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0x13a]
call dword [section..00cfg]
push edi
push dword [ebp + 0x24]
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push esi
call ecx
add esp, 0x24
jmp 0x100a8fac
mov edi, dword [ebp + 0x2c]
mov dword [ebp - 0x50], edi
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0x162]
call dword [section..00cfg]
push edi
push dword [ebp + 0x24]
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push esi
call ecx
add esp, 0x1c
test eax, eax
mov esi, dword [ebp + 8]
je 0x100a8fcc
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
jmp 0x100a8fd6
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
xor ebx, ebx
cmp dword [esi + 0x18], 0
je 0x100a8fe1
mov eax, dword [esi + 0xc]
jmp 0x100a900e
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 0x100a9019
cmp dword [eax + 0x30], 0
je 0x100a9019
push dword [esi + 0x14]
jmp 0x100a901c
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100a8f13
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 0x100a904d
cmp dword [eax + 0x30], 0
je 0x100a904d
push dword [esi + 0x14]
jmp 0x100a9050
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100a8f10
mov dword [ebp - 0x70], 0
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x38]
push dword [ebp - 0x80]
mov dword [ebp - 0x94], edi
push edi
push dword [ebp + 0x2c]
push eax
mov edi, dword [ebp + 0x24]
push edi
push ecx
push dword [ebp - 0x7c]
push dword [esi + 4]
call sym.nss3.dll_PK11_Decrypt
add esp, 0x20
mov ebx, eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x80], edi
mov edi, dword [ebp + 0x28]
test ebx, ebx
mov eax, dword [ebp - 0x88]
je 0x100a919e
cmp dword [ebp - 0x7c], 0x1087
jne 0x100a920b
cmp dword [0x101f2f50], 0
je 0x100a925a
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100a923f
cmp dword [eax + 0x28], 0xffffe002
mov eax, dword [ebp - 0x88]
jne 0x100a920b
mov ebx, eax
mov edx, dword [ebp - 0x78]
mov eax, dword [edx]
lea ecx, [ebp - 0x4c]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x20]
mov dword [ecx + 0xc], eax
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x10], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], 0x14
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x38]
test bl, bl
je 0x100a916d
push dword [ebp - 0x90]
push dword [ebp - 0x94]
push dword [ebp - 0x8c]
push ecx
push dword [ebp - 0x80]
push edx
push 0x1087
push eax
call sym.nss3.dll_PK11_Decrypt
jmp 0x100a918f
mov edx, dword [ebx + 0xc]
mov ecx, esi
push eax
push dword [ebp - 0x70]
push dword [ebx + 8]
call fcn.100a9270
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x100a8f13
jmp 0x100a8dcb
push dword [ebp - 0x90]
push dword [ebp - 0x94]
push dword [ebp - 0x8c]
push ecx
push dword [ebp - 0x80]
push edx
push 0x1087
push eax
call sym.nss3.dll_PK11_Encrypt
add esp, 0x20
mov ebx, eax
test eax, eax
mov eax, dword [ebp - 0x88]
jne 0x100a920b
test al, al
jne 0x100a91f0
mov eax, dword [ebp - 0x14]
mov esi, eax
mov edx, dword [ebp - 0x74]
sub esi, edx
jb 0x100a91f9
mov ecx, dword [ebp - 0x90]
add ecx, edx
cmp eax, ecx
ja 0x100a91f9
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x100a91d1
push esi
push eax
push dword [ebp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x80]
add ecx, esi
cmp dword [ebp - 0x84], ecx
je 0x100a91f0
push dword [ebp - 0x74]
push ecx
push dword [ebp - 0x84]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
xor ebx, ebx
jmp 0x100a920b
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x100a8f13
push eax
call dword [sym.imp.mozglue.dll_free]
jmp 0x100a9021
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov edi, eax
jmp 0x100a8c48
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x100a90d8
call fcn.100029d0
jmp 0x100a90c4