Function at 0x101032f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [0x101d2014]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor eax, ebp
test esi, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x14]
mov edx, dword [eax + 0x44]
jne 0x1010331a
mov esi, dword [ecx + 0x24]
test esi, esi
je 0x10103339
cmp dword [esi + 4], 0
je 0x10103339
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], edx
cmp eax, 1
jne 0x1010334d
mov dword [ebp - 0x28], 1
mov eax, 0x1019eed5
jmp 0x10103361
push 0
push 0xffffe041
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1010349c
and eax, 0xfffffffe
cmp eax, 2
jne 0x10103370
mov eax, 0x1019eed4
mov dword [ebp - 0x28], 1
lea edi, [ebp - 0x1c]
mov dword [edi - 8], eax
mov dword [edi - 4], 1
jmp 0x10103373
lea edi, [ebp - 0x28]
mov dword [edi], 0
mov dword [edi + 4], 0x1019eed8
mov dword [edi + 8], 4
call fcn.100ff230
test eax, eax
je 0x1010349c
mov ebx, eax
mov dword [ebp - 0x38], esi
push 0x40
push eax
call fcn.100ff2b0
add esp, 8
test eax, eax
je 0x10103493
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x40], ebx
neg eax
lea eax, [edi + eax + 0xc]
sar eax, 2
mov ebx, dword [ecx]
imul eax, eax, 0xaaaaaaab
mov dword [ebp - 0x34], eax
test ebx, ebx
je 0x101033f3
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x101035af
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x38]
mov ecx, dword [edi + 0x6a]
mov ebx, dword [esi + 4]
call dword [section..00cfg]
push dword [ebp - 0x34]
lea eax, [ebp - 0x28]
push eax
push ebx
call ecx
add esp, 0xc
test eax, eax
je 0x1010341a
mov eax, dword [esi]
jmp 0x10103483
mov eax, dword [ebp - 0x3c]
xor ebx, ebx
mov edi, 0x10
mov dword [ebp - 0x3c], eax
lea eax, [eax + ebx*4]
mov ecx, dword [ebp - 0x44]
mov esi, edi
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
sub esi, ebx
mov ecx, dword [ecx + 0x6e]
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
call dword [section..00cfg]
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call ecx
add esp, 0x10
test eax, eax
jne 0x1010347e
mov eax, dword [ebp - 0x2c]
lea esi, [eax + ebx]
cmp esi, edi
jb 0x101034b3
lea ebx, [edi + edi]
shl edi, 3
push edi
push dword [ebp - 0x3c]
call fcn.100ff760
add esp, 8
mov edi, ebx
test eax, eax
mov ebx, esi
jne 0x10103424
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov ebx, dword [ebp - 0x40]
test eax, eax
je 0x10103493
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
push ebx
call fcn.100ff520
add esp, 4
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ebx
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov ecx, dword [ecx + 0x72]
mov edi, dword [ebx + 4]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov edi, eax
mov eax, dword [ebx]
test eax, eax
je 0x101034e2
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
mov ebx, dword [ebp - 0x40]
test edi, edi
jne 0x10103493
test esi, esi
je 0x1010359f
lea eax, [esi*4 + 4]
push eax
push 0
call fcn.100ff2b0
add esp, 8
mov ecx, dword [ebp - 0x3c]
test eax, eax
je 0x1010359f
mov edi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 0x30], eax
jle 0x10103545
mov eax, dword [ebp - 0x34]
xor esi, esi
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
push dword [ecx + esi*4]
push dword [ebp - 0x38]
push edi
call fcn.10103630
add esp, 0xc
mov ecx, dword [ebp - 0x30]
test eax, eax
mov dword [ecx + esi*4], eax
je 0x1010357b
inc esi
mov ecx, dword [ebp - 0x3c]
cmp dword [ebp - 0x34], esi
jne 0x10103523
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x10103576
mov edi, dword [ebp - 0x30]
add edi, 4
mov dword [ebp - 0x3c], ecx
mov ecx, esi
call dword [section..00cfg]
push dword [ebp + 0x18]
push dword [ebp - 0x3c]
call esi
add esp, 8
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
jne 0x10103557
push dword [ebp - 0x30]
jmp 0x10103597
mov edi, dword [ebp - 0x30]
cmp esi, 2
jb 0x10103596
inc esi
push dword [edi + esi*4 - 8]
call fcn.10103710
add esp, 4
dec esi
cmp esi, 2
jg 0x10103584
push edi
call fcn.100ff3c0
add esp, 4
push ebx
call fcn.100ff520
add esp, 4
xor esi, esi
jmp 0x1010349f
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x101033e6