Function at 0x100ac920
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov ecx, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [ecx + 0x13c]
push dword [ebp + 0xc]
call fcn.100ac8b0
add esp, 4
xor ebx, ebx
test eax, eax
je 0x100acbd4
mov edi, eax
mov dword [ebp - 0x1c], esi
push eax
call sym.nss3.dll_PK11_MakeIDFromPubKey
add esp, 4
mov esi, eax
push 1
push edi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
je 0x100acbd4
cmp dword [ebp - 0x1c], 0
je 0x100ac9ec
xor ecx, ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
mov ebx, dword [ebp - 0x18]
je 0x100ac9a0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x118]
test eax, eax
je 0x100ac9a0
xor ecx, ecx
cmp byte [eax], 0
cmovne ecx, eax
mov dword [ebp - 0x24], ecx
mov esi, dword [0x101dec48]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100acc77
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 0x15c]
push dword [0x101dec48]
call sym.nss3.dll_PR_Unlock
add esp, 4
test edi, edi
je 0x100aca03
mov dword [ebp - 0x14], edi
jmp 0x100aca19
push 0
push 0xffffe041
call sym.nss3.dll_PR_SetError
add esp, 8
mov ebx, dword [ebp - 0x18]
jmp 0x100acbd4
push esi
call fcn.100a2170
add esp, 4
mov edi, eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100acbd4
lea eax, [edi + 0x28]
push dword [ebx + 4]
push dword [ebx + 8]
push eax
push dword [edi]
call fcn.1009b0b0
add esp, 0x10
cmp dword [edi + 0x28], 0
je 0x100acbd4
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100aca95
mov edi, eax
push 0x10
push 0
call fcn.1009a460
add esp, 8
test eax, eax
je 0x100ac9fb
mov ebx, eax
mov eax, dword [ebp - 0x1c]
lock inc dword [eax + 8]
mov dword [ebx + 4], eax
mov dword [ebx], edi
mov dword [ebx + 8], 1
mov edi, dword [ebp - 0x14]
lea eax, [edi + 0x40]
lea ecx, [edi + 0x28]
push eax
push ecx
push esi
push 0
push ebx
call fcn.1009c500
add esp, 0x14
mov dword [ebp - 0x20], eax
push ebx
call fcn.1009ea70
add esp, 4
cmp dword [ebp - 0x20], 0
jne 0x100ac9fb
lea eax, [edi + 0x48]
mov dword [ebp - 0x28], eax
lea ecx, [edi + 0x40]
lea edx, [edi + 0x38]
lea ebx, [edi + 0x30]
lea eax, [edi + 0x28]
mov dword [ebp - 0x20], eax
xor eax, eax
inc eax
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push ecx
push edx
push ebx
push esi
push dword [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x1c]
call fcn.1009d3e0
add esp, 0x2c
test eax, eax
je 0x100acc30
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x100acb84
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100acc94
mov ebx, dword [ebp - 0x20]
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 8], eax
push edi
push dword [esi + 0x14]
call fcn.100a4710
add esp, 8
mov eax, dword [esi + 0x14]
push dword [eax + 8]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov dword [edi + 0x1c], 0
mov esi, dword [0x101dec48]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100accb2
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x150], 0
mov dword [eax + 0x14c], 1
push dword [0x101dec48]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
push edi
call fcn.100a2d30
add esp, 8
lock inc dword [edi + 4]
lea esi, [ebp - 0x14]
push 1
push esi
push dword [0x101decc8]
call fcn.100a5d20
add esp, 0xc
mov ecx, dword [esi]
cmp dword [ecx + 0x54], 0
je 0x100acbb9
xor edx, edx
inc edx
call fcn.100a1930
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
push ecx
call fcn.1009fed0
add esp, 4
push 1
push esi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
xor esi, esi
jmp 0x100acc1c
call fcn.1008a6f0
push 1
push ebx
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
cmp dword [0x101de200], 0
je 0x100acccf
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100acc5f
xor esi, esi
dec esi
cmp dword [eax + 0x28], 0xffffe09b
je 0x100acc1c
push 0
push 0xffffe018
call sym.nss3.dll_PR_SetError
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.1009ab60
cmp eax, 0x23
jne 0x100ac9fb
push 0
push 0xffffe08a
call sym.nss3.dll_PR_SetError
add esp, 8
push 1
push dword [ebp - 0x18]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
xor esi, esi
dec esi
jmp 0x100acc1c
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x100acc01
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov edi, eax
jmp 0x100ac9bf
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x1c], eax
jmp 0x100acaff
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov ebx, eax
jmp 0x100acb4f
call fcn.100745e0
jmp 0x100acbf1