Function at 0x10101d70
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 edi, dword [ebp + 0x14]
mov esi, edx
xor eax, ebp
test edx, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + 0x44]
jne 0x10101d99
mov esi, dword [ecx + 0x24]
test esi, esi
je 0x10101dbf
cmp dword [esi + 4], 0
je 0x10101dbf
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x68], eax
mov eax, 0x10
mov dword [ebp - 0x70], ecx
test ebx, ebx
cmovne eax, ebx
cmp eax, 0x10
mov dword [ebp - 0x60], eax
ja 0x10101dec
lea eax, [ebp - 0x50]
jmp 0x10101e06
mov edx, 0xb3
push edx
call fcn.100ffa40
add esp, 4
push 0x26
call fcn.100ffa40
add esp, 4
xor esi, esi
test edi, edi
je 0x10101ec4
mov dword [edi], 0xffffffff
jmp 0x10101ec4
lea eax, [eax*4]
push eax
push 0
call fcn.100ff2b0
add esp, 8
test eax, eax
je 0x10101fa8
mov edi, dword [esi]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], esi
test edi, edi
je 0x10101e38
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x101020a7
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov esi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x68]
mov edi, esi
mov esi, dword [esi + 4]
mov ecx, dword [eax + 0x6a]
call dword [section..00cfg]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call ecx
add esp, 0xc
test eax, eax
je 0x10101ed8
mov edx, eax
mov eax, dword [edi]
test eax, eax
je 0x10101e6e
push eax
mov esi, edx
call sym.nss3.dll_PR_Unlock
mov edx, esi
add esp, 4
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x50]
cmp ecx, eax
je 0x10101e88
push ecx
mov esi, edx
call fcn.100ff3c0
mov edx, esi
add esp, 4
lea eax, [edx - 0x12]
cmp eax, 0xf
ja 0x10101e9a
mov ecx, 0xc003
bt ecx, eax
jb 0x10101eae
lea eax, [edx - 0xd0]
cmp eax, 2
jb 0x10101eae
cmp edx, 0x54
jne 0x10101dc4
push 0x1b
call fcn.100ffa40
add esp, 4
xor esi, esi
test edi, edi
je 0x10101ec4
mov dword [edi], 0
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
mov esi, dword [ebp - 0x60]
mov edx, dword [ebp - 0x58]
test ebx, ebx
setne byte [ebp - 0x64]
xor ebx, ebx
mov eax, dword [ebp - 0x68]
mov edi, esi
mov dword [ebp - 0x58], edx
sub edi, ebx
mov ecx, dword [eax + 0x6e]
lea eax, [edx + ebx*4]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x6c], eax
call dword [section..00cfg]
lea eax, [ebp - 0x54]
push eax
push edi
push dword [ebp - 0x60]
push dword [ebp - 0x6c]
call ecx
add esp, 0x10
test eax, eax
jne 0x10101fb2
mov ecx, dword [ebp - 0x54]
lea edi, [ecx + ebx]
cmp edi, esi
setb al
or al, byte [ebp - 0x64]
jne 0x10101fbe
mov ecx, dword [ebp - 0x58]
lea edx, [ebp - 0x50]
lea eax, [esi*8]
cmp ecx, edx
je 0x10101f53
push eax
push ecx
call fcn.100ff760
add esp, 8
mov edx, eax
jmp 0x10101f78
push eax
push 0
call fcn.100ff2b0
add esp, 8
test eax, eax
je 0x10101f84
mov ebx, edi
mov edx, eax
mov edi, eax
mov eax, esi
mov ecx, 0x10
lea esi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
mov edi, ebx
mov esi, eax
add esi, esi
test edx, edx
mov ebx, edi
jne 0x10101ee6
mov eax, dword [ebp - 0x5c]
mov edx, 2
mov eax, dword [eax]
test eax, eax
je 0x10101fa0
push eax
call sym.nss3.dll_PR_Unlock
mov edx, 2
add esp, 4
mov edi, dword [ebp + 0x14]
jmp 0x10101dc4
mov edx, 2
jmp 0x10101dc4
mov edx, eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
jmp 0x10101e5d
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x60], edi
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x6c], ebx
mov ecx, dword [eax + 0x72]
mov esi, dword [edi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov edx, eax
mov eax, dword [edi]
mov ecx, dword [ebp - 0x58]
test eax, eax
je 0x10101ffb
push eax
mov esi, ecx
mov edi, edx
call sym.nss3.dll_PR_Unlock
mov edx, edi
mov ecx, esi
add esp, 4
mov edi, dword [ebp + 0x14]
test edx, edx
jne 0x10101e74
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x10102059
lea eax, [ebx*4 + 4]
push eax
push 0
call fcn.100ff2b0
add esp, 8
test eax, eax
je 0x10102089
mov ecx, dword [ebp - 0x58]
mov esi, eax
test ebx, ebx
jle 0x1010208e
mov ebx, dword [ebp - 0x64]
xor edi, edi
add ebx, dword [ebp - 0x6c]
push dword [ecx + edi*4]
push dword [ebp - 0x5c]
push dword [ebp - 0x70]
call fcn.10103630
add esp, 0xc
test eax, eax
mov dword [esi + edi*4], eax
je 0x10102065
mov ecx, dword [ebp - 0x58]
inc edi
cmp ebx, edi
jne 0x10102034
mov edi, dword [ebp + 0x14]
jmp 0x1010208e
push 0x1b
call fcn.100ffa40
add esp, 4
jmp 0x10102089
cmp edi, 2
jb 0x1010207d
inc edi
push dword [esi + edi*4 - 8]
call fcn.10103710
add esp, 4
dec edi
cmp edi, 2
jg 0x1010206b
push esi
call fcn.100ff3c0
add esp, 4
mov edi, dword [ebp + 0x14]
xor esi, esi
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x50]
cmp ecx, eax
je 0x10101eba
push ecx
call fcn.100ff3c0
add esp, 4
jmp 0x10101eba
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x10101e28