Function at 0x100c06a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
cmp dword [ebx + 0x30], 0
jne 0x100c06e9
mov edi, dword [ebx + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c09be
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebx]
mov esi, dword [ebx + 0x40]
mov ecx, dword [eax + 0x32]
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push eax
push sym.nss3.dll_SECMOD_CanDeleteInternalModule
push ebx
push 4
push esi
call ecx
add esp, 0x14
mov edi, eax
test eax, eax
je 0x100c0715
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x14], eax
cmp dword [ebx + 0x30], 0
jne 0x100c0726
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x24], edi
test edi, edi
mov dword [ebp - 0x1c], esi
je 0x100c0760
mov esi, dword [ebx + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100c09a1
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
mov al, 1
mov esi, dword [ebp - 0x1c]
jmp 0x100c0768
cmp dword [ebx + 0x30], 0
je 0x100c0733
xor eax, eax
test esi, esi
je 0x100c0824
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x6a]
call dword [section..00cfg]
push esi
mov esi, dword [ebp - 0x1c]
push edi
push esi
call ecx
add esp, 0xc
mov edi, eax
mov eax, dword [ebp - 0x20]
test edi, edi
jne 0x100c0829
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
xor esi, esi
lea eax, [eax*4 + 0x28]
test esi, esi
je 0x100c07cf
mov ebx, 0xffffe013
test eax, eax
js 0x100c08d2
push eax
push esi
call dword [sym.imp.mozglue.dll_realloc]
add esp, 8
test eax, eax
jne 0x100c07e0
jmp 0x100c08d2
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100c08e7
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x6e]
mov esi, dword [ebp + 0x14]
mov edx, dword [esi]
lea ebx, [eax + edx*4]
mov edi, eax
call dword [section..00cfg]
lea eax, [ebp - 0x18]
push eax
push 0xa
push ebx
push dword [ebp - 0x1c]
call ecx
add esp, 0x10
test eax, eax
jne 0x100c08c5
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi]
add eax, ecx
mov dword [esi], eax
mov esi, edi
cmp ecx, 0xa
je 0x100c07a3
jmp 0x100c08e9
mov edi, 0xb3
test al, al
je 0x100c0838
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x24], 0
jne 0x100c0892
cmp dword [ebx + 0x30], 0
jne 0x100c0870
mov esi, dword [ebx + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100c09db
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
cmp dword [ebx + 0x30], 0
jne 0x100c0892
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
push edi
call fcn.100aaef0
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xffffffff
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call fcn.100aaef0
add esp, 4
mov ebx, eax
mov esi, edi
push 0
push ebx
call sym.nss3.dll_PR_SetError
add esp, 8
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor edi, edi
mov esi, edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x72]
call dword [section..00cfg]
push dword [ebp - 0x1c]
call ecx
add esp, 4
cmp byte [ebp - 0x20], 0
je 0x100c0912
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x24], 0
mov edi, dword [ebp + 0x14]
mov eax, esi
jne 0x100c0977
cmp dword [ebx + 0x30], 0
jne 0x100c094f
mov edi, dword [ebx + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100c09f8
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push dword [ebp - 0x1c]
call ecx
add esp, 4
cmp dword [ebx + 0x30], 0
mov eax, esi
jne 0x100c0977
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
mov eax, esi
add esp, 4
test eax, eax
je 0x100c0987
cmp dword [edi], 0
je 0x100c0992
mov esi, eax
jmp 0x100c08b1
mov dword [edi], 0xffffffff
jmp 0x100c08af
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x100c08af
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov edi, eax
jmp 0x100c074c
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x100c06dc
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov ebx, eax
jmp 0x100c085d
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov ebx, eax
jmp 0x100c093c