Function at 0x100a51d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov ecx, dword [ebp + 8]
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x100a52fd
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100a52fd
mov ebx, dword [0x101f50a0]
push ecx
call fcn.100cd0c0
add esp, 4
mov edi, eax
test eax, eax
je 0x100a5306
mov eax, dword [edi + 0x24]
test eax, eax
je 0x100a5306
push esi
push eax
push edi
call fcn.10098770
add esp, 0xc
mov esi, eax
push edi
call fcn.10096ae0
add esp, 4
test esi, esi
je 0x100a531e
xor eax, eax
push 2
push eax
mov dword [ebp - 0x2c], ebx
push ebx
push esi
push eax
call fcn.1009ca00
add esp, 0x14
test eax, eax
je 0x100a5334
mov ebx, eax
push eax
call fcn.10099bb0
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100a533f
mov esi, dword [esi + 0xc]
test esi, esi
je 0x100a53eb
mov edi, eax
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x30], eax
mov edi, dword [edi + 0x2c]
mov eax, dword [ebp + 8]
add eax, 0xf9
mov dword [ebp - 0x34], eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test ebx, ebx
je 0x100a534a
mov dword [ebp - 0x30], ebx
lea ecx, [eax + ebx]
add ecx, 2
push ecx
mov ebx, eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100a53eb
mov edi, eax
push ebx
push dword [ebp - 0x34]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [edi + ebx]
mov dword [ebp - 0x34], eax
lea eax, [edi + ebx]
inc eax
mov byte [edi + ebx], 0x3a
mov ebx, dword [ebp - 0x30]
push ebx
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov byte [ebx + eax + 1], 0
jmp 0x100a53ed
push 0
push 0xffffe005
jmp 0x100a5316
push edi
call fcn.10096ae0
add esp, 4
push 0
push 0xffffe041
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
call fcn.10098840
jmp 0x100a550f
push ebx
call fcn.1009cc00
jmp 0x100a550f
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100a5363
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x100a5363
mov esi, dword [ecx + 4]
jmp 0x100a52a9
test edi, edi
je 0x100a53dc
mov dword [ebp - 0x38], eax
lea edx, [edi - 4]
lea eax, [ebp - 0x1b]
mov dword [eax - 5], 0x20444920
mov dword [eax - 9], 0x74726543
xor ecx, ecx
test edx, edx
cmovg ecx, edx
cmp ecx, edi
jge 0x100a53c3
mov dl, byte [esi + ecx]
mov dh, dl
shr dh, 4
mov ebx, 0x30
cmp dl, 0xa0
jb 0x100a53a0
mov ebx, 0x57
add bl, dh
mov byte [eax], bl
and dl, 0xf
cmp dl, 0xa
mov ebx, 0x30
jb 0x100a53b6
mov ebx, 0x57
add bl, dl
mov byte [eax + 1], bl
add eax, 2
inc ecx
cmp edi, ecx
jne 0x100a5389
mov byte [eax], 0
lea esi, [ebp - 0x24]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x38]
jmp 0x100a52a9
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
mov eax, dword [ebp - 0x2c]
lea esi, [ebp - 0x28]
push 1
push esi
push eax
call fcn.1009fa10
add esp, 0xc
mov ebx, dword [esi]
mov ecx, ebx
xor edx, edx
call fcn.1009b6a0
test eax, eax
je 0x100a54ef
mov esi, eax
test edi, edi
je 0x100a5468
mov eax, dword [esi + 0x154]
test eax, eax
je 0x100a5428
mov dword [esi + 0x158], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
inc ebx
push ebx
push dword [ebp - 0x2c]
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
test eax, eax
je 0x100a5458
push ebx
push edi
push eax
mov ebx, eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, ebx
add esp, 0xc
mov dword [esi + 0x154], eax
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
cmp dword [esi + 0x17c], 0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
jne 0x100a549e
lock inc dword [edi + 0x48]
mov dword [esi + 0x17c], edi
mov dword [esi + 0x180], ebx
mov dword [esi + 0x184], 1
movzx eax, word [edi + 0x80]
mov dword [esi + 0x178], eax
push 0xc
push dword [esi]
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
test eax, eax
je 0x100a5509
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax], ecx
mov dword [eax + 8], ecx
mov dword [ebp - 0x2c], eax
push eax
push esi
push edi
call fcn.100bc240
add esp, 0xc
test eax, eax
je 0x100a5517
cmp dword [edi + 0x24], 0
je 0x100a54e3
push 0
push edi
call sym.nss3.dll_PK11_IsLoggedIn
add esp, 8
test eax, eax
je 0x100a5580
mov eax, 3
mov bl, 1
jmp 0x100a5587
push ebx
call fcn.10099ca0
add esp, 4
test edi, edi
je 0x100a531e
push edi
call dword [sym.imp.mozglue.dll_free]
jmp 0x100a550f
push esi
call sym.nss3.dll_CERT_DestroyCertificate
add esp, 4
jmp 0x100a531e
lea eax, [ebp - 0x28]
push eax
push esi
call sym.nss3.dll_CERT_IsCACert
add esp, 8
test eax, eax
je 0x100a54ca
mov eax, dword [0x101bd288]
lea ecx, [ebp - 0x24]
mov dword [ecx + 8], eax
movsd xmm0, qword [0x101bd280]
movsd qword [ecx], xmm0
push 1
push ecx
push ebx
push edi
push 0
call fcn.100bd430
add esp, 0x14
test eax, eax
jne 0x100a570e
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100a56c7
jle 0x100a56d7
xor edx, edx
cmp byte [eax + edx], 0
jne 0x100a56cb
inc edx
cmp ecx, edx
jne 0x100a556c
jmp 0x100a56db
mov eax, 2
xor ebx, ebx
push eax
push dword [ebp + 0xc]
push edi
call fcn.100c1050
add esp, 0xc
xor ecx, ecx
test eax, eax
setne cl
test bl, bl
jne 0x100a5674
test eax, eax
mov eax, dword [ebp - 0x2c]
jne 0x100a5677
mov ecx, esi
add ecx, 0xd4
call fcn.1008e690
xor ecx, ecx
test eax, eax
je 0x100a5674
mov edi, eax
mov eax, dword [eax + 4]
dec eax
cmp eax, 7
ja case.0x100a55d4.3
jmp dword [eax*4 + 0x101bd29c]
mov dword [ebp - 0x24], 0x120
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x20], eax
mov eax, edi
add eax, 0x1c
jmp 0x100a5629
mov dword [ebp - 0x24], 0x11
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x20], eax
mov eax, edi
add eax, 0x40
jmp 0x100a5629
mov dword [ebp - 0x24], 0x11
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x20], eax
mov eax, edi
add eax, 0x34
jmp 0x100a5629
mov dword [ebp - 0x24], 0x181
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x20], eax
mov eax, edi
add eax, 0x28
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
test eax, eax
je case.0x100a55d4.3
cmp dword [edi + 4], 6
je 0x100a5644
lea eax, [ebp - 0x24]
push eax
call fcn.100bd800
add esp, 4
lea eax, [ebp - 0x24]
push 1
push eax
push dword [ebp + 8]
call fcn.100c0d30
add esp, 0xc
mov ebx, eax
push edi
call sym.nss3.dll_SECKEY_DestroyPublicKey
add esp, 4
test ebx, ebx
je 0x100a5682
xor ecx, ecx
inc ecx
jmp 0x100a5674
push edi
call sym.nss3.dll_SECKEY_DestroyPublicKey
xor ecx, ecx
add esp, 4
mov eax, dword [ebp - 0x2c]
test ecx, ecx
je 0x100a5682
or byte [eax], 0x40
or byte [eax + 4], 0x40
mov edi, dword [0x101f501c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100a573c
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x160], eax
push dword [0x101f501c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100a5320
test eax, eax
je 0x100a570e
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x100a570e
test eax, eax
je 0x100a56e5
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
cmp dword [esi + 0x170], 0
je 0x100a570e
push 0x1011
push edi
call sym.nss3.dll_PK11_DoesMechanism
add esp, 8
mov ecx, 0x18
test eax, eax
je 0x100a5713
mov edx, dword [ebp - 0x2c]
or byte [edx + 8], 8
jmp 0x100a5716
mov ecx, 8
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
test al, 4
je 0x100a5722
or dword [edx], ecx
mov eax, dword [ebp - 0x28]
test al, 2
je 0x100a5729
or dword [edx + 4], ecx
test al, 1
je 0x100a54ca
mov eax, dword [ebp - 0x2c]
or dword [eax + 8], ecx
jmp 0x100a54ca
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov ebx, eax
jmp 0x100a569e