Function at 0x100d5860
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov ecx, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [ecx]
mov ecx, edi
call fcn.100d34a0
test eax, eax
je 0x100d588c
mov ebx, eax
mov al, 1
cmp dword [ebx], 0
jne 0x100d58b3
mov eax, dword [ebp + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp], edi
mov dword [esp + 4], 0
call sym.nss3.dll_PK11_GetAllTokens
xor ebx, ebx
test eax, eax
je 0x100d5c5c
mov ecx, eax
xor eax, eax
mov ebx, ecx
mov dword [ebp - 0x40], eax
mov esi, dword [ebp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], eax
call sym.nss3.dll_PR_SetError
test esi, esi
je 0x100d593a
mov eax, esi
neg eax
mov cl, 1
mov dword [ebp - 0x38], ecx
xor ecx, ecx
inc ecx
mov esi, dword [ebp + 8]
mov esi, dword [esi + ecx*4 - 4]
cmp esi, 0x21f
jg 0x100d5900
cmp esi, 0x80000efe
je 0x100d5925
cmp esi, 0x200
je 0x100d5925
cmp esi, 0x210
je 0x100d5925
jmp 0x100d5941
lea edi, [esi - 0x255]
cmp edi, 0x1b
ja 0x100d5915
mov edx, 0x8000801
bt edx, edi
jb 0x100d5925
cmp esi, 0x250
je 0x100d5925
cmp esi, 0x220
jne 0x100d5941
cmp ecx, dword [ebp + 0x14]
setb dl
mov dword [ebp - 0x38], edx
lea esi, [eax + ecx]
inc esi
inc ecx
cmp esi, 1
jne 0x100d58d7
jmp 0x100d5941
mov dword [ebp - 0x38], 0
mov esi, dword [ebx + 8]
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
test eax, eax
je 0x100d5d11
lea eax, [esi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [esi + 8], edi
mov esi, dword [ebx]
test esi, esi
je 0x100d5c11
inc dword [esi + 0xc]
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x3c], esi
mov ecx, dword [esi + 8]
call fcn.100d4740
test eax, eax
je 0x100d5beb
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp - 0x38]
je 0x100d5bb4
xor esi, esi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + esi*4]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
cmp ebx, 0x80000efe
mov dword [ebp - 0x24], ecx
jne 0x100d59ca
mov eax, dword [ecx + 0x28]
jmp 0x100d59ea
cmp ebx, 0x7ff
jae 0x100d5a37
movzx eax, bl
movsx ecx, byte [ecx + eax + 0x1e0]
mov edx, ebx
shr edx, 8
xor eax, eax
bt ecx, edx
setb al
test eax, eax
je 0x100d5beb
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100d5a0f
mov edx, dword [eax + esi*4]
test edx, edx
je 0x100d5a0f
mov eax, dword [ebp + 0x10]
test eax, eax
mov edi, dword [ebp - 0x24]
je 0x100d5a5f
mov eax, dword [eax + esi*4]
jmp 0x100d5a61
mov eax, dword [ebp + 0x10]
test eax, eax
mov edi, dword [ebp - 0x24]
je 0x100d5b8d
mov eax, dword [eax + esi*4]
test eax, eax
je 0x100d5b8d
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100d5a94
mov eax, dword [eax + esi*4]
jmp 0x100d5a96
mov eax, dword [ecx + 0x98]
test eax, eax
jle 0x100d5beb
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x94]
xor edx, edx
cmp dword [ecx + edx*4], ebx
je 0x100d59f2
inc edx
cmp eax, edx
jne 0x100d5a50
jmp 0x100d5beb
xor eax, eax
test eax, eax
sete cl
mov dword [ebp - 0x34], ecx
cmp ebx, 1
sete cl
jne 0x100d5a89
test eax, eax
jne 0x100d5a89
cmp dword [edi + 0x124], 0
je 0x100d5aa9
mov eax, dword [edi + 0x128]
jmp 0x100d5b87
mov byte [ebp - 0x1d], cl
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
jmp 0x100d5abc
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp ebx, 1
sete byte [ebp - 0x1d]
mov dword [ebp - 0x34], 0
jmp 0x100d5abc
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x1d], 1
mov al, 1
mov dword [ebp - 0x34], eax
cmp dword [edi + 0x30], 0
jne 0x100d5af9
mov edi, dword [edi + 0x3c]
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
je 0x100d5b9c
lea eax, [edi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov eax, dword [ebp - 0x44]
mov dword [edi + 8], eax
mov edi, dword [ebp - 0x24]
mov eax, dword [edi]
mov edi, dword [edi + 0x40]
mov ecx, dword [eax + 0x22]
call dword [section..00cfg]
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call ecx
mov ecx, dword [ebp - 0x24]
mov ebx, eax
cmp dword [ecx + 0x30], 0
jne 0x100d5b30
mov eax, dword [ecx + 0x3c]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
mov ecx, dword [ebp - 0x24]
test ebx, ebx
setne al
mov dl, byte [ebp - 0x1d]
xor dl, 1
or dl, al
jne 0x100d5b66
cmp dword [ecx + 0x124], 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
jne 0x100d5b70
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x128], eax
mov eax, dword [ebp - 0x28]
mov dword [ecx + 0x124], 1
jmp 0x100d5b70
test ebx, ebx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
jne 0x100d5beb
cmp byte [ebp - 0x34], 0
jne 0x100d5b80
cmp dword [ebp - 0x1c], eax
ja 0x100d5beb
cmp dword [ebp - 0x18], eax
jb 0x100d5beb
test edx, edx
je 0x100d5b8d
mov eax, dword [ebp - 0x14]
and eax, edx
cmp eax, edx
jne 0x100d5beb
inc esi
cmp esi, dword [ebp + 0x14]
mov eax, dword [ebp - 0x38]
jne 0x100d59ae
jmp 0x100d5bb4
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov dword [ebp - 0x44], eax
jmp 0x100d5ae1
test al, 1
je 0x100d5c75
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
cmp dword [eax + 0x24], 0
je 0x100d5c75
mov ecx, dword [ebp + 0x18]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], 1
call sym.nss3.dll_PK11_Authenticate
test eax, eax
je 0x100d5c75
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov ebx, dword [ebp - 0x30]
mov dword [esp], ebx
mov dword [esp + 8], 1
call sym.nss3.dll_PK11_GetNextSafe
mov esi, eax
test eax, eax
jne 0x100d598c
jmp 0x100d5c1c
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
cmp byte [ebp - 0x40], 0
jne 0x100d5c2a
mov dword [esp], ebx
call sym.nss3.dll_PK11_FreeSlotList
cmp dword [0x101de200], 0
je 0x100d5d55
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x100d5d28
xor ebx, ebx
cmp dword [eax + 0x28], 0
jne 0x100d5cfd
mov dword [esp + 4], 0
mov dword [esp], 0xffffe041
call sym.nss3.dll_PR_SetError
jmp 0x100d5cfd
mov edi, dword [ebp - 0x3c]
mov ebx, dword [edi + 8]
lock inc dword [ebx + 0x48]
mov eax, dword [ebp - 0x30]
mov esi, dword [eax + 8]
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
je 0x100d5d3d
lea eax, [esi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov eax, dword [ebp - 0x24]
mov dword [esi + 8], eax
mov esi, dword [edi + 0xc]
lea eax, [esi - 1]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
cmp esi, 1
jne 0x100d5cec
mov eax, dword [edi + 8]
lock dec dword [eax + 0x48]
jne 0x100d5ce3
mov dword [esp], eax
call fcn.100d1c70
mov dword [esp], edi
call dword [sym.imp.mozglue.dll_free]
cmp byte [ebp - 0x40], 0
jne 0x100d5cfd
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym.nss3.dll_PK11_FreeSlotList
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, ebx
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov edi, eax
jmp 0x100d595f
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x100d5c50
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov dword [ebp - 0x24], eax
jmp 0x100d5ca1
call fcn.100745e0
jmp 0x100d5c37