Function at 0x100c4ac0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x101db014]
xor edx, ebp
mov dword [ebp - 0x10], edx
mov ebx, dword [esi + 8]
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
test eax, eax
je 0x100c4afb
mov ecx, dword [eax + 4]
mov dword [ebp - 0x28], ecx
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x18]
test al, 1
jne 0x100c4b8a
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x11]
mov byte [eax], 0
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 1
mov edi, dword [ebx + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c4f02
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 + 0x38]
mov ecx, dword [eax + 0x62]
call dword [section..00cfg]
lea eax, [ebp - 0x20]
push 1
push eax
push dword [ebp - 0x38]
push esi
call ecx
add esp, 0x10
mov esi, eax
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
je 0x100c4b90
push esi
call fcn.100b1140
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
jmp 0x100c4ba2
test al, 2
jne 0x100c4b96
jmp 0x100c4ba5
cmp byte [ebp - 0x11], 0
je 0x100c4ba5
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
push ebx
call fcn.100aaa20
add esp, 8
cmp dword [ebx + 0x30], 0
jne 0x100c4bd1
mov edi, dword [ebx + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c4f1f
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 - 0x20]
push eax
push sym.nss3.dll_SECMOD_CanDeleteInternalModule
push ebx
push 4
push esi
call ecx
add esp, 0x14
mov esi, eax
test eax, eax
je 0x100c4bfd
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x20], eax
cmp dword [ebx + 0x30], 0
jne 0x100c4c0e
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x100c4c55
mov esi, dword [ebx + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100c4ee5
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
mov al, 1
mov dword [ebp - 0x34], eax
xor eax, eax
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], 0
jmp 0x100c4c6e
cmp dword [ebx + 0x30], 0
je 0x100c4c1b
mov dword [ebp - 0x44], 0
mov al, 1
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 0
mov eax, dword [ebx]
mov ecx, dword [eax + 0xaa]
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0xc]
call dword [section..00cfg]
lea eax, [ebp - 0x2c]
push esi
push eax
push dword [ebp - 0x38]
call ecx
add esp, 0xc
test eax, eax
je 0x100c4d17
mov esi, eax
cmp byte [ebp - 0x34], 0
je 0x100c4caa
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x30], 0
jne 0x100c4ea1
cmp dword [ebx + 0x30], 0
jne 0x100c4cea
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x34], eax
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x100c4f59
mov edi, dword [ebp - 0x34]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x30]
mov dword [edi + 8], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push dword [ebp - 0x38]
call ecx
add esp, 4
cmp dword [ebx + 0x30], 0
jne 0x100c4ea1
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100c4ea1
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov eax, dword [edi + 0x18]
test al, 1
jne 0x100c4dd2
mov ecx, dword [edi + 8]
mov edi, dword [edi + 0xc]
lea eax, [ebp - 0x11]
mov byte [eax], 0
mov dword [ebp - 0x20], 0x202
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 1
cmp byte [ebp - 0x3c], 0
mov dword [ebp - 0x40], ecx
je 0x100c4d7d
mov dword [ebp - 0x48], edi
mov esi, dword [ecx + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100c4f3c
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
mov ecx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x48]
mov eax, dword [ecx]
mov esi, dword [ecx + 0x38]
mov ecx, dword [eax + 0x62]
call dword [section..00cfg]
push 1
lea eax, [ebp - 0x20]
push eax
push edi
push esi
call ecx
add esp, 0x10
mov edi, eax
cmp byte [ebp - 0x3c], 0
je 0x100c4dae
mov eax, dword [ebp - 0x40]
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test edi, edi
mov esi, dword [ebp + 0x14]
je 0x100c4ed0
push edi
call fcn.100b1140
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
mov edx, dword [ebp + 0x18]
jmp 0x100c4df0
test al, 4
je 0x100c4df0
push 1
push dword [ebp - 0x44]
push dword [edi + 0x14]
push 0
push dword [ebp - 0x38]
push ebx
mov edi, edx
call fcn.100aad20
mov edx, edi
add esp, 0x18
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0xae]
mov esi, dword [esi + 4]
mov eax, dword [edx + 4]
mov dword [ebp - 0x3c], eax
mov edi, dword [edx + 8]
call dword [section..00cfg]
lea eax, [ebp - 0x20]
push eax
push esi
push edi
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
call ecx
add esp, 0x14
mov esi, eax
cmp byte [ebp - 0x34], 0
je 0x100c4e34
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x30], 0
jne 0x100c4e94
cmp dword [ebx + 0x30], 0
jne 0x100c4e70
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x34], eax
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x100c4f77
mov edi, dword [ebp - 0x34]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x30]
mov dword [edi + 8], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push dword [ebp - 0x38]
call ecx
add esp, 4
cmp dword [ebx + 0x30], 0
jne 0x100c4e94
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 8], eax
test esi, esi
je 0x100c4ecc
push esi
call fcn.100b1140
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x100c4eb8
cmp byte [ebp - 0x11], 0
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
jne 0x100c4dd6
jmp 0x100c4df0
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov edi, eax
jmp 0x100c4c34
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100c4b3c
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100c4bc4
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov edi, eax
jmp 0x100c4d6a
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x30], eax
jmp 0x100c4cd7
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x30], eax
jmp 0x100c4e5d