Function at 0x100a3c10
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 [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x100a3d3d
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100a3d3d
mov ebx, dword [0x101f3070]
push ecx
call fcn.100cbb00
add esp, 4
mov edi, eax
test eax, eax
je 0x100a3d46
mov eax, dword [edi + 0x24]
test eax, eax
je 0x100a3d46
push esi
push eax
push edi
call fcn.100971d0
add esp, 0xc
mov esi, eax
push edi
call fcn.10095540
add esp, 4
test esi, esi
je 0x100a3d5e
xor eax, eax
push 2
push eax
mov dword [ebp - 0x2c], ebx
push ebx
push esi
push eax
call fcn.1009b440
add esp, 0x14
test eax, eax
je 0x100a3d74
mov ebx, eax
push eax
call fcn.100985f0
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100a3d7f
mov esi, dword [esi + 0xc]
test esi, esi
je 0x100a3e2b
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 0x100a3d8a
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 0x100a3e2b
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 0x100a3e2d
push 0
push 0xffffe005
jmp 0x100a3d56
push edi
call fcn.10095540
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.10156ff0
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
call fcn.100972a0
jmp 0x100a3f4f
push ebx
call fcn.1009b640
jmp 0x100a3f4f
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100a3da3
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x100a3da3
mov esi, dword [ecx + 4]
jmp 0x100a3ce9
test edi, edi
je 0x100a3e1c
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 0x100a3e03
mov dl, byte [esi + ecx]
mov dh, dl
shr dh, 4
mov ebx, 0x30
cmp dl, 0xa0
jb 0x100a3de0
mov ebx, 0x57
add bl, dh
mov byte [eax], bl
and dl, 0xf
cmp dl, 0xa
mov ebx, 0x30
jb 0x100a3df6
mov ebx, 0x57
add bl, dl
mov byte [eax + 1], bl
add eax, 2
inc ecx
cmp edi, ecx
jne 0x100a3dc9
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 0x100a3ce9
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.1009e450
add esp, 0xc
mov ebx, dword [esi]
mov ecx, ebx
xor edx, edx
call fcn.1009a0e0
test eax, eax
je 0x100a3f2f
mov esi, eax
test edi, edi
je 0x100a3ea8
mov eax, dword [esi + 0x154]
test eax, eax
je 0x100a3e68
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 0x100a3e98
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 0x100a3ede
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 0x100a3f49
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.100bac80
add esp, 0xc
test eax, eax
je 0x100a3f57
cmp dword [edi + 0x24], 0
je 0x100a3f23
push 0
push edi
call sym.nss3.dll_PK11_IsLoggedIn
add esp, 8
test eax, eax
je 0x100a3fc0
mov eax, 3
mov bl, 1
jmp 0x100a3fc7
push ebx
call fcn.100986e0
add esp, 4
test edi, edi
je 0x100a3d5e
push edi
call dword [sym.imp.mozglue.dll_free]
jmp 0x100a3f4f
push esi
call sym.nss3.dll_CERT_DestroyCertificate
add esp, 4
jmp 0x100a3d5e
lea eax, [ebp - 0x28]
push eax
push esi
call sym.nss3.dll_CERT_IsCACert
add esp, 8
test eax, eax
je 0x100a3f0a
mov eax, dword [0x101bb0a8]
lea ecx, [ebp - 0x24]
mov dword [ecx + 8], eax
movsd xmm0, qword [0x101bb0a0]
movsd qword [ecx], xmm0
push 1
push ecx
push ebx
push edi
push 0
call fcn.100bbe70
add esp, 0x14
test eax, eax
jne 0x100a414e
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100a4107
jle 0x100a4117
xor edx, edx
cmp byte [eax + edx], 0
jne 0x100a410b
inc edx
cmp ecx, edx
jne 0x100a3fac
jmp 0x100a411b
mov eax, 2
xor ebx, ebx
push eax
push dword [ebp + 0xc]
push edi
call fcn.100bfaa0
add esp, 0xc
xor ecx, ecx
test eax, eax
setne cl
test bl, bl
jne 0x100a40b4
test eax, eax
mov eax, dword [ebp - 0x2c]
jne 0x100a40b7
mov ecx, esi
add ecx, 0xd4
call fcn.1008d0f0
xor ecx, ecx
test eax, eax
je 0x100a40b4
mov edi, eax
mov eax, dword [eax + 4]
dec eax
cmp eax, 7
ja case.0x100a4014.3
jmp dword [eax*4 + 0x101bb0bc]
mov dword [ebp - 0x24], 0x120
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x20], eax
mov eax, edi
add eax, 0x1c
jmp 0x100a4069
mov dword [ebp - 0x24], 0x11
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x20], eax
mov eax, edi
add eax, 0x40
jmp 0x100a4069
mov dword [ebp - 0x24], 0x11
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x20], eax
mov eax, edi
add eax, 0x34
jmp 0x100a4069
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.0x100a4014.3
cmp dword [edi + 4], 6
je 0x100a4084
lea eax, [ebp - 0x24]
push eax
call fcn.100bc240
add esp, 4
lea eax, [ebp - 0x24]
push 1
push eax
push dword [ebp + 8]
call fcn.100bf780
add esp, 0xc
mov ebx, eax
push edi
call sym.nss3.dll_SECKEY_DestroyPublicKey
add esp, 4
test ebx, ebx
je 0x100a40c2
xor ecx, ecx
inc ecx
jmp 0x100a40b4
push edi
call sym.nss3.dll_SECKEY_DestroyPublicKey
xor ecx, ecx
add esp, 4
mov eax, dword [ebp - 0x2c]
test ecx, ecx
je 0x100a40c2
or byte [eax], 0x40
or byte [eax + 4], 0x40
mov edi, dword [0x101f2fec]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100a417c
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 [0x101f2fec]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100a3d60
test eax, eax
je 0x100a414e
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x100a414e
test eax, eax
je 0x100a4125
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
cmp dword [esi + 0x170], 0
je 0x100a414e
push 0x1011
push edi
call sym.nss3.dll_PK11_DoesMechanism
add esp, 8
mov ecx, 0x18
test eax, eax
je 0x100a4153
mov edx, dword [ebp - 0x2c]
or byte [edx + 8], 8
jmp 0x100a4156
mov ecx, 8
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
test al, 4
je 0x100a4162
or dword [edx], ecx
mov eax, dword [ebp - 0x28]
test al, 2
je 0x100a4169
or dword [edx + 4], ecx
test al, 1
je 0x100a3f0a
mov eax, dword [ebp - 0x2c]
or dword [eax + 8], ecx
jmp 0x100a3f0a
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov ebx, eax
jmp 0x100a40de