Function at 0x100aa040
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 [0x101f1014]
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 0x100aa0d9
cmp edi, 0xce53436c
je 0x100aa0e8
mov esi, dword [ebp + 0x34]
cmp edi, 0x1087
je 0x100aa13f
cmp edi, 0x1088
jne 0x100aa2d9
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 0x100aa16d
add edi, 0xffffbfdf
cmp edi, 1
ja 0x100aa2d9
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 0x100aa132
mov ecx, esi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.100aa830
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x100aa4d3
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x78], edi
xor eax, eax
mov ebx, 0xc
jmp 0x100aa170
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x78], edi
xor eax, eax
jmp 0x100aa170
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 0x100aa4c1
mov dword [ebp - 0x7c], ebx
mov ebx, dword [ebp + 0x1c]
cmp dword [esi + 0x38], 0
je 0x100aa1db
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 0x100aa256
cmp ecx, 0x82000105
jne 0x100aa4c1
mov cl, 1
mov dword [ebp - 0x88], ecx
jmp 0x100aa260
cmp dword [esi + 0x18], 0
mov eax, dword [esi + 0xc]
je 0x100aa1ef
cmp dword [eax + 0x30], 0
je 0x100aa1ef
mov ebx, dword [esi + 0x14]
jmp 0x100aa1f2
mov ebx, dword [eax + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100aa7e2
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
cmp dword [esi + 0x18], 0
je 0x100aa2e5
mov eax, 0x91
mov ecx, 0x7dfffefc
add ecx, dword [esi]
cmp ecx, 6
ja case.0x100aa234.2
jmp dword [ecx*4 + 0x101bd388]
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 0x100aa518
mov dword [ebp - 0x88], 0
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0x4020
jg 0x100aa291
cmp ecx, 0xce53436c
je 0x100aa332
cmp ecx, 0x1087
je 0x100aa3ff
cmp ecx, 0x1088
je 0x100aa4c1
jmp 0x100aa2d9
lea eax, [ecx - 0x4021]
cmp eax, 1
ja 0x100aa2d9
cmp byte [ebp - 0x74], 0
je 0x100aa4c1
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 0x100aa371
push 0
push 0xffffe006
jmp 0x100aa4c8
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x100aa5e9
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 0x100aa21f
push eax
call fcn.100aaef0
add esp, 4
jmp 0x100aa5ee
cmp byte [ebp - 0x74], 0
je 0x100aa4c1
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 0x100aa463
mov edx, dword [ebp + 0x3c]
mov esi, dword [ebp + 0x2c]
cmp esi, edx
jl 0x100aa4c1
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 0x100aa3cc
mov esi, ecx
push ecx
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100aa4d0
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 0x100aa65c
test al, al
je 0x100aa4c1
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 0x100aa70a
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 0x100aa61d
mov dword [ebp - 0x74], edx
push ecx
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100aa4d0
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 0x100aa624
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.10157a00
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 0x100aa550
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 0x100aa56c
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 0x100aa58c
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
jmp 0x100aa596
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
xor ebx, ebx
cmp dword [esi + 0x18], 0
je 0x100aa5a1
mov eax, dword [esi + 0xc]
jmp 0x100aa5ce
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 0x100aa5d9
cmp dword [eax + 0x30], 0
je 0x100aa5d9
push dword [esi + 0x14]
jmp 0x100aa5dc
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100aa4d3
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 0x100aa60d
cmp dword [eax + 0x30], 0
je 0x100aa60d
push dword [esi + 0x14]
jmp 0x100aa610
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100aa4d0
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 0x100aa75e
cmp dword [ebp - 0x7c], 0x1087
jne 0x100aa7cb
cmp dword [0x101f4f80], 0
je 0x100aa81a
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100aa7ff
cmp dword [eax + 0x28], 0xffffe002
mov eax, dword [ebp - 0x88]
jne 0x100aa7cb
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 0x100aa72d
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 0x100aa74f
mov edx, dword [ebx + 0xc]
mov ecx, esi
push eax
push dword [ebp - 0x70]
push dword [ebx + 8]
call fcn.100aa830
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x100aa4d3
jmp 0x100aa38b
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 0x100aa7cb
test al, al
jne 0x100aa7b0
mov eax, dword [ebp - 0x14]
mov esi, eax
mov edx, dword [ebp - 0x74]
sub esi, edx
jb 0x100aa7b9
mov ecx, dword [ebp - 0x90]
add ecx, edx
cmp eax, ecx
ja 0x100aa7b9
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x100aa791
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 0x100aa7b0
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 0x100aa7cb
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 0x100aa4d3
push eax
call dword [sym.imp.mozglue.dll_free]
jmp 0x100aa5e1
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov edi, eax
jmp 0x100aa208
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x100aa698
call fcn.1001b2e0
jmp 0x100aa684