Function at 0x100dff40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov eax, dword [0x101d2014]
mov ebx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100e014d
cmp dword [ebx + 8], eax
jne 0x100e0112
mov dword [ebx + 8], 0
lea edx, [ebx + 0x1c]
cmp dword [ebx + 0x34], 0
jne 0x100dffa0
push edx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x60]
lea esi, [ebx + 0x34]
mov ecx, 0x14
mov edi, eax
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x80], ecx
cmp dword [eax], 0
jle 0x100dffdc
xor edi, edi
lea ecx, [edi + edi*2]
mov ebx, dword [eax + ecx*4 + 4]
mov esi, dword [ebx + 4]
test esi, esi
jne 0x100e0024
mov dword [eax + ecx*4 + 0xc], 0
inc edi
cmp edi, dword [eax]
jl 0x100dffc1
mov eax, dword [eax + 0x4c]
test eax, eax
jne 0x100dffba
lea esi, [ebp - 0x60]
push edx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov edx, esi
mov ebx, esi
mov eax, dword [ebx]
test eax, eax
jle 0x100e000d
xor edi, edi
lea ecx, [edi + edi*2]
mov ecx, dword [esi + ecx*4 + 0xc]
test ecx, ecx
jne 0x100e00ad
inc edi
cmp edi, eax
jl 0x100dfff9
mov ebx, dword [esi + 0x4c]
cmp edx, esi
jne 0x100e0169
test ebx, ebx
mov esi, ebx
je 0x100dff8a
jmp 0x100dfff1
mov dword [ebp - 0x64], esi
mov esi, dword [eax + ecx*4 + 8]
cmp esi, 0xffffffff
mov dword [ebp - 0x68], esi
je 0x100e011c
cmp dword [ebp - 0x68], 0
lea esi, [eax + ecx*4 + 8]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], esi
jle 0x100e00e5
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x64], esi
mov esi, dword [ebp - 0x64]
mov dword [esi + 0x104], 0
mov esi, dword [esi + 0x13c]
mov dword [ebp - 0x64], esi
mov esi, dword [ebp - 0x68]
cmp esi, 2
lea esi, [esi - 1]
mov dword [ebp - 0x68], esi
mov esi, dword [ebp - 0x64]
jl 0x100e007c
test esi, esi
jne 0x100e004e
mov ebx, dword [ebp - 0x6c]
test esi, esi
mov ebx, dword [ebx + 4]
mov dword [eax + ecx*4 + 0xc], ebx
mov ebx, dword [ebp - 0x6c]
mov dword [ebx + 4], esi
jne 0x100e017c
lea ecx, [ebx + 8]
mov dword [ecx], 0
mov ecx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x70]
sub ecx, dword [esi]
add dword [ebx + 0xc], ecx
jmp 0x100dffd7
mov edx, dword [ecx + 0x13c]
mov eax, dword [ecx + 0x100]
mov dword [ebp - 0x64], 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 - 0x64]
test ecx, ecx
jne 0x100e00ad
mov eax, dword [ebx]
lea edx, [ebp - 0x60]
jmp 0x100e0008
mov esi, dword [ebp - 0x64]
mov dword [eax + ecx*4 + 0xc], esi
mov dword [ebx + 4], esi
mov ecx, dword [esi + 0x138]
test ecx, ecx
je 0x100e0161
mov ebx, dword [ebp - 0x6c]
mov dword [ecx + 0x13c], 0
mov esi, 0x138
mov ecx, dword [ebx + 4]
add ecx, esi
jmp 0x100e0097
mov esi, 0xffffffff
jmp 0x100dff8c
mov esi, dword [ebp - 0x64]
mov dword [esi + 0x104], 0
mov esi, dword [esi + 0x13c]
test esi, esi
mov dword [ebp - 0x64], esi
jne 0x100e011c
mov esi, dword [ebx + 4]
mov dword [eax + ecx*4 + 0xc], esi
xor ecx, ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], ecx
jmp 0x100dffd7
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x100dff6a
mov ebx, dword [ebp - 0x6c]
jmp 0x100e009d
push esi
mov esi, edx
call dword [sym.imp.mozglue.dll_free]
mov edx, esi
add esp, 4
jmp 0x100e0018
mov esi, dword [ebp - 0x64]
jmp 0x100e00ef