Function at 0x100e3da0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov eax, dword [0x101d2014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100e40c6
mov ebx, dword [ebp + 8]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100e40dc
lea eax, [ebx + 0x20]
mov dword [ebp - 0x6c], eax
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 0xc], edi
mov eax, dword [ebx + 0x194]
test eax, eax
je 0x100e412e
cmp dword [ebx + 0x88], esi
jne 0x100e412e
dec eax
mov dword [ebx + 0x194], eax
jne 0x100e3e74
mov dword [ebx + 0x88], 0
mov esi, dword [ebx + 0x198]
test esi, esi
jne 0x100e3f44
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100e4106
mov edi, dword [ebx + 0x8c]
cmp dword [edi + 8], eax
jne 0x100e3e74
mov ecx, dword [edi + 0x34]
lea edx, [ebx + 0x100]
add edi, 0x34
xor esi, esi
test ecx, ecx
jg 0x100e3f8e
lea eax, [esi + esi*2]
inc ecx
mov dword [edi + eax*4 + 8], 1
mov dword [edi + eax*4 + 4], edx
mov dword [edi], ecx
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100e40f2
xor esi, esi
cmp dword [ebx + 0xc], eax
jne 0x100e3ea5
mov dword [ebx + 0xc], 0
cmp dword [ebx + 0x38], 0
jne 0x100e3eb9
push dword [ebp - 0x6c]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x60]
lea esi, [ebx + 0x38]
mov ecx, 0x14
mov edi, eax
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x84], ecx
cmp dword [eax], 0
jle 0x100e3ef9
xor esi, esi
lea edx, [esi + esi*2]
mov edi, dword [eax + edx*4 + 4]
mov ebx, dword [edi + 4]
test ebx, ebx
jne 0x100e3fd8
mov dword [eax + edx*4 + 0xc], 0
inc esi
cmp esi, dword [eax]
jl 0x100e3eda
mov eax, dword [eax + 0x4c]
test eax, eax
jne 0x100e3ed3
lea esi, [ebp - 0x60]
push dword [ebp - 0x6c]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov edx, esi
mov ebx, esi
mov eax, dword [ebx]
test eax, eax
jle 0x100e3f2c
xor edi, edi
lea ecx, [edi + edi*2]
mov ecx, dword [esi + ecx*4 + 0xc]
test ecx, ecx
jne 0x100e403c
inc edi
cmp edi, eax
jl 0x100e3f18
mov ebx, dword [esi + 0x4c]
cmp edx, esi
jne 0x100e4156
test ebx, ebx
mov esi, ebx
jne 0x100e3f10
xor esi, esi
jmp 0x100e3ea5
cmp esi, 0xffffffff
jne 0x100e4169
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100e411a
mov ecx, dword [ebx + 0x110]
cmp dword [ecx + 8], eax
jne 0x100e3f7f
add ecx, 0x1c
lea eax, [ebx + 0x184]
push ecx
push eax
call sym.nss3.dll__PR_MD_NOTIFYALL_CV
add esp, 8
mov dword [ebx + 0x198], 0
jmp 0x100e3e2d
mov dword [ebp - 0x68], edx
xor edx, edx
mov eax, edi
inc edx
mov edi, eax
mov eax, edx
test ecx, ecx
cmovg eax, ecx
lea edx, [edi + 8]
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
cmp dword [eax - 4], edx
je 0x100e41a0
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x64], 0xc
dec eax
jne 0x100e3fa8
cmp ecx, 6
jge 0x100e41b9
mov esi, dword [ebp - 0x70]
mov edx, dword [ebp - 0x68]
jmp 0x100e3e62
mov ecx, dword [eax + edx*4 + 8]
cmp ecx, 0xffffffff
mov dword [ebp - 0x64], ecx
je 0x100e409b
lea ecx, [eax + edx*4 + 8]
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0x64]
test ecx, ecx
jle 0x100e4074
mov dword [ebx + 0x104], 0
cmp ecx, 2
lea ecx, [ecx - 1]
mov ebx, dword [ebx + 0x13c]
jl 0x100e4012
test ebx, ebx
jne 0x100e3ff6
mov dword [ebp - 0x64], ecx
mov ecx, dword [edi + 4]
test ebx, ebx
mov dword [eax + edx*4 + 0xc], ecx
mov dword [edi + 4], ebx
jne 0x100e407b
lea edx, [edi + 8]
mov dword [edx], 0
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x68]
sub ecx, dword [edx]
add dword [edi + 0xc], ecx
jmp 0x100e3ef4
mov edx, dword [ecx + 0x13c]
mov eax, dword [ecx + 0x100]
mov dword [ebp - 0x6c], edx
xor edx, edx
mov dword [ecx + 0x13c], edx
mov dword [ecx + 0x138], edx
push edx
push 1
push eax
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
jne 0x100e403c
mov eax, dword [ebx]
lea edx, [ebp - 0x60]
jmp 0x100e3f27
mov dword [eax + edx*4 + 0xc], ebx
mov dword [edi + 4], ebx
mov edx, dword [ebx + 0x138]
test edx, edx
je 0x100e402c
mov dword [edx + 0x13c], 0
mov ecx, 0x138
mov edx, dword [edi + 4]
add edx, ecx
jmp 0x100e4026
mov dword [ebx + 0x104], 0
mov ebx, dword [ebx + 0x13c]
test ebx, ebx
jne 0x100e409b
mov ebx, dword [edi + 4]
xor ecx, ecx
mov dword [eax + edx*4 + 0xc], ebx
mov dword [edi + 8], ecx
mov dword [edi + 4], ecx
mov dword [edi + 0xc], ecx
jmp 0x100e3ef4
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x100e3dc9
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov edi, eax
jmp 0x100e3de2
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x100e3e88
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x100e3e41
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x100e3f61
call fcn.100d5280
xor esi, esi
dec esi
cmp dword [ebx + 0xc], eax
jne 0x100e3ea5
mov dword [ebx + 0xc], 0
push dword [ebp - 0x6c]
call sym.nss3.dll__PR_MD_UNLOCK
add esp, 4
jmp 0x100e3ea5
push esi
mov esi, edx
call dword [sym.imp.mozglue.dll_free]
mov edx, esi
add esp, 4
jmp 0x100e3f37
test esi, esi
jle 0x100e3f7f
lea edi, [ebx + 0x184]
inc esi
call fcn.100d5280
mov ecx, dword [ebx + 0x110]
cmp dword [ecx + 8], eax
jne 0x100e4195
add ecx, 0x1c
push ecx
push edi
call sym.nss3.dll__PR_MD_NOTIFY_CV
add esp, 8
dec esi
cmp esi, 1
jg 0x100e4178
jmp 0x100e3f7f
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100e3e74
mov ecx, dword [ebp - 0x64]
inc eax
mov dword [ecx], eax
jmp 0x100e3e74
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x100e41d0
push 0x50
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
mov dword [edi + 0x4c], eax
mov ecx, dword [eax]
mov edx, 1
test ecx, ecx
jg 0x100e3f96
mov edi, eax
jmp 0x100e3fd0